-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to define a transform alongside a CRS, similar to geotiff? #186
Comments
Unless I'm missing something about what you are trying to do here, it should be this: gdf = gpd.GeoDataFrame(
[(v, shape(g)) for g, v in rasterio.features.shapes(layer)],
columns=["value", "geometry"],
crs=src.crs
) The shapes extracted from the GeoTIFF are in the same CRS as the GeoTIFF. From your Feature coordinates don't have a concept of |
You can store a per-row geotransform by storing an Arrow FixedSizeList with 6 float numbers per row. |
Let's say I have a geotiff with a well defined crs+transform. I then extract features from this raster.
I would like to save this data in the (pixel) coordinates that align directly to the geotiff. This has the nice property of keeping geometries specified in an integer coordinate system and means far lower likelihood of numerical issues in later processing that are otherwise introduced by round-tripping with floating point transforms.
e.g.
The raster profile might contain something like
How would you put this into geoparquet? Is it even possible?
The text was updated successfully, but these errors were encountered: