Giter Club home page Giter Club logo

Comments (4)

iamtekson avatar iamtekson commented on May 23, 2024

Possible solution

Here are a few steps you can take to troubleshoot this issue:

  1. Check Coordinate Systems: Verify that all the datasets or images involved in the mosaic operation share the same coordinate system. Even a slight difference could cause inconsistency.

  2. Confirm Bounds: Ensure that the bounding coordinates (left, bottom, right, top) are correctly defined and consistent with the coordinate system used.

  3. Transformation Information: Double-check the transformation or georeferencing information associated with your raster datasets. Ensure they are accurate and consistent.

  4. Data Integrity: Check the integrity of your raster data files. Sometimes corrupt or incomplete files can cause issues with their transformation information.

from geotile.

iamtekson avatar iamtekson commented on May 23, 2024

This might be an issue from rasterio library: rasterio/rasterio#2976

from geotile.

iamtekson avatar iamtekson commented on May 23, 2024

The workaround for this issue would be manually remove below if condition in rasterio.windows.py file,

if (right - left) / transform.a < 0:
    raise WindowError("Bounds and transform are inconsistent")
if (bottom - top) / transform.e < 0:
    raise WindowError("Bounds and transform are inconsistent")

from geotile.

iamtekson avatar iamtekson commented on May 23, 2024

By doing so many tests, I found that if the raster have float64 dtype, it create the problem. When I check, I found that, in float64 dtype raster, generate_tiles start creating the tiles from bottom left of the raster moving in the top and right direction while for other dtype raster, it start creating the tiles from top left moving in the bottom and right direction. It is still kind of strange.

from geotile.

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.