Giter Club home page Giter Club logo

Comments (6)

mattiagiupponi avatar mattiagiupponi commented on July 19, 2024 1

Hi @ridoo
This is not yet fully ready. I am going to merge #203 which refactors the handler. We also need to fix the geoserver-restconfig lib before the merge.

What is your opinion on an early integration? Would it make sense only, after the geonode part has been improved?

If you want to upload XML and SLD files via API and track their status, it is possible to use it even if the front-end part is not yet ready. The API accepts the same parameters as the ones sent by the front end. the dataset_title in the request.data is necessary to identify the dataset.

However, if you intend to allow the user to upload data through the user interface, it's better to wait until the front-end issue is resolved before proceeding. This is because even if the handlers are triggered, the user won't receive any feedback on their completion.

@mattiagiupponi as this issue is quite important for thuenen, would it be possible to create a patch release which includes this fix?

I'll sync with @giohappy when everything is ready and i'll let you know

from geonode-importer.

mattiagiupponi avatar mattiagiupponi commented on July 19, 2024 1

Hi @ridoo
Both handlers (xml and sld) are merged, i refactored them a bit since they have a common structure.
The UI is not planned for the short time i guess, but they can be used via the upload API mimic the actual XML/SLD upload

from geonode-importer.

ridoo avatar ridoo commented on July 19, 2024

@mattiagiupponi as this issue is quite important for thuenen, would it be possible to create a patch release which includes this fix?

What is your opinion on an early integration? Would it make sense only, after the geonode part have been improved?

from geonode-importer.

ridoo avatar ridoo commented on July 19, 2024

Thanks @mattiagiupponi for the clarification!

from geonode-importer.

gannebamm avatar gannebamm commented on July 19, 2024

@mattiagiupponi thanks for the info. Will the xml be used if I upload a dataset with xml file? The planned UI is for the metadata xml upload for an already existing dataset?

from geonode-importer.

mattiagiupponi avatar mattiagiupponi commented on July 19, 2024

@mattiagiupponi thanks for the info. Will the xml be used if I upload a dataset with xml file?

If spatial files are uploaded along with other files, the spatial handler will handle both the files.
For example in the BaseVectorFileHandler during the resource creation in geonode

self.handle_xml_file(saved_dataset, _exec)
self.handle_sld_file(saved_dataset, _exec)

The handler check if the files exists and use them

The planned UI is for the metadata xml upload for an already existing dataset?

Yes, thats why we had to create this two handlers, are used only during the upload for a pre-existing dataset.

Let me know if is clear or some additional detail are needed :)

from geonode-importer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.