Giter Club home page Giter Club logo

Comments (3)

pchevali avatar pchevali commented on July 19, 2024

I think I found the issue :
For rasters "alternate" is computed this way ( when actually overwriting):

layer_name, alternate = layer_name, user_datasets.first().alternate

whereas for vector:

alternate = dataset_available.first().alternate.split(":")[-1]

I think that for rasters it fails to get the resource as the alternate is built with the workspace as prefix.

from geonode-importer.

mattiagiupponi avatar mattiagiupponi commented on July 19, 2024

I think I found the issue : For rasters "alternate" is computed this way ( when actually overwriting):

layer_name, alternate = layer_name, user_datasets.first().alternate

Ok this was a good hint, but was not the only point.
The TIF images in geoserver have their own store, while the _publisher.get_resource(alternate) was checking by default in the geonode store (which is fine for vector but not for raster)

I made some changes to let the store be dynamic based on the resource type.

I'm going to add also an end2end test for this

from geonode-importer.

mattiagiupponi avatar mattiagiupponi commented on July 19, 2024

Hi @pchevali
The fix is available on master. If you can try it and let me know how it works

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.