Giter Club home page Giter Club logo

Comments (2)

mattiagiupponi avatar mattiagiupponi commented on July 18, 2024

@etj @giohappy
I'm thinking about the cloning of a resource coming from a geo package.
I implemented a clone() method inside the handler which will call an async task that takes care of the work.

There are few issues with the cloning since the actual resource_manager implementation uses the "concrete_manager" to create the geoserver resource and is actually something we cannot do because:

  • is not sure that the original file is still there since the option "store_spatial_file" can be set to FALSE and the file is deleted once the upload is finished
  • and even if the original file is there, geoserver is not able to load a geo package from the importer and it raises an exception in geonode since is not part of the accepted format

So, actually, we can easily ignore the existence of the gpkg since we can just copy the actual, but we should:

  • change the resource_manager so it can skip the call on the concrete manager and set up the resource and have a new alternate

once we have the alternate we can:

  • clone the dynamic_model Shema
  • clone the dynamic_model fields
  • write some SQL to clone the entire table and rename it with the new alternate provided by the creating

My only concern is, The community will accept that the calling of the concrete manager in the resource_manager.copy() will be optional? (activated by default)

from geonode-importer.

giohappy avatar giohappy commented on July 18, 2024

As agreed by chat, let's move forward with the proposed changes.

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.