Comments (4)
Possible solution
Here are a few steps you can take to troubleshoot this issue:
-
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.
-
Confirm Bounds: Ensure that the bounding coordinates (left, bottom, right, top) are correctly defined and consistent with the coordinate system used.
-
Transformation Information: Double-check the transformation or georeferencing information associated with your raster datasets. Ensure they are accurate and consistent.
-
Data Integrity: Check the integrity of your raster data files. Sometimes corrupt or incomplete files can cause issues with their transformation information.
from geotile.
This might be an issue from rasterio library: rasterio/rasterio#2976
from geotile.
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.
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)
- Mask function generating RGB image instead of single band image. HOT 1
- Need to implement data augmentation technique HOT 1
- Data normalization HOT 1
- Need to write function to create the numpy array
- Need function to construct the single prediction raster from tiles HOT 1
- Need function to get the info about tiles
- Auto API document is not working! HOT 1
- naming the tiles based on custom format
- Rasterization issue: ValueError: Given nodata value, nan, is beyond the valid range of its data type, uint8.
- MemoryError: Unable to allocate ... GiB for an array with shape (num_features, 256, 256, 4) and data type `float64` HOT 1
- `gt.merge_tiles` method is not working as expected! HOT 3
- Fiona is not defined error in vectorize
- Need to optimize the generate_tiles function.
- gt.save_tile have issue
- Filter the vectorize values based on the filter conditon
- `gt.save_tiles` issue: TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
- Data normalization based on z-score HOT 1
- Given nodata value, -32768.0, is beyond the valid range of its data type, uint8.
- Need function to Convert no data value to zero values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geotile.