Replies: 1 comment 2 replies
-
|
@drwelby I don't have much experience with OGR VRTs. A programmable abstraction for them could be handy. One big difference between raster and vector datasets (and rasterio and fiona) is that raster windows (slices) are kinda arbitrary, while a vector dataset's records (thinking in terms of rows) are not. Reading a feature, and then reprojecting it, is the finest grained operation. OGR's VRT driver does exactly the same thing. I guess what I'm saying is that I'm not sure that with fiona.open("file.shp") as shp, fiona.VRT(shp, crs="EPSG:1234") as vrt:
list(vrt)is radically better than with fiona.open("file.shp") as shp:
[transform_geom(shp.crs, "EPSG:1234", f["geometry"]) for f in shp]I could be convinced otherwise! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
rasterio'sWarpedVRTobjects are lovely things - could Fiona behave similarly and have objects that emit reprojected data?t_srs='EPSG:1234'kwargWarpedVRTthat takes a Fiona readerIs there some pitfall to letting GDAL do the reprojection work a la
ogr2ogr?Beta Was this translation helpful? Give feedback.
All reactions