-
Notifications
You must be signed in to change notification settings - Fork 523
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
ENH: Add rasterio.vrt.BuildVRT #2573
Comments
Users want something like this. Myself, I have a hard time getting over how terrible the GDALBuildVRT API is. It's got a score of optional arguments that are passed as key=value strings. We get all the downsides of a strongly typed language, but without the upsides. These arguments can't be type-checked at compile time. Trying to use GDALWarp was no fun. |
I second this. It'd be extremely useful. |
@gboeing can you say more? How would you use it? What are you doing now as a workaround? Generating XML using Python? Calling gdalbuildvrt in a subprocess? |
@sgillies a common use case for OSMnx would be something like taking a bunch of SRTM elevation rasters, building a VRT, then attaching elevation to street network nodes. Currently OSMnx uses GDAL to build VRTs here. That means that this module imports both
However, it works so far. But this seems pretty suboptimal. It would be wonderful if rasterio had a |
I have a draft implementation in #2698 I have been working on. |
Thanks all. Yes this proposed solution looks like it would be straightforward enough. |
Instead of GDALBuildVRT Resolves #2573
Alternate solution in #2699. |
Related: #2498 |
Instead of GDALBuildVRT Resolves #2573
https://gdal.org/api/gdal_utils.html#_CPPv412GDALBuildVRTPKciP12GDALDatasetHPPCKcPK19GDALBuildVRTOptionsPi
Thoughts about adding a python interface to
GDALBuildVRT
?The text was updated successfully, but these errors were encountered: