Coder Social home page Coder Social logo

Comments (5)

kylebarron avatar kylebarron commented on May 29, 2024

Can you create an minimal example of using demquery directly? E.g. try using query_points(points) directly and find the point where it fails?

from demquery.

craigxchen avatar craigxchen commented on May 29, 2024

Hi Kyle,

Thanks for responding.

I tried it using a minimal query and it's failing on every single point of the graph.

It seems like the assertion error doesn't have anything to do with the specific points right? It's coming from the _check_bounds method. My best guess is that somehow the TIFs aren't getting tiled together correctly?

from demquery.

kylebarron avatar kylebarron commented on May 29, 2024

I think it's likely your DEM is not in the same projection as your input points. This package won't do any automatic reprojection of the raster file, and if the raster data is in some local projection, it won't work and _check_bounds will fail.

from demquery.

craigxchen avatar craigxchen commented on May 29, 2024

Do you have any suggestions on how I can fix the projection issue? Do you think there's a quick fix or is it something more involved?

from demquery.

kylebarron avatar kylebarron commented on May 29, 2024

You can look into GDAL/rasterio for reprojecting your data. https://gdal.org/programs/gdalwarp.html

from demquery.

Related Issues (3)

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.