Hi, Great, allowing to override all automatically captured parameters is probably a good feature. I believe that some users will find this new option useful.
Next challenge could be to burn vertical and horizontal gridlines for warping and resampling tests. -Jukka- Even Rouault-2 wrote > On mardi 1 décembre 2020 13:23:58 CET Rahkonen Jukka (MML) wrote: >> Hi, >> >> Every now and then people would like to rasterize vectors into raster >> that >> matches exactly with some existing raster. There are a few possible ways >> for creating an empty copy from a raster with GDAL tools >> https://gis.stackexchange.com/questions/220753/how-do-i-create-blank-geotif >> f-with-same-spatial-properties-as-existing-geotiff . The gdal_merge way >> with >> -createonly does the job and is fast, but who remembers that gdal_merge >> exists and can be used for such purpose? How about to add an option like >> "-if" (input file) into gdal_create program, with the same effect? >> Options >> -outsize, -a_srs, -a_ullr would have no effect if used together with >> input >> template file. Options -of, -bands, -ot, -a_nodata, -co could override if >> given. Not sure about metadata, but probably it is never worth copying >> from >> the template file. > > I've mostly followed your suggestion in > https://github.com/OSGeo/gdal/pull/3255 > > Not sure if it will be useful, but to avoid too many exceptions, -outsize, > -a- > srs, -a_ullr can actually override the settings of the input file > > Even > > -- > Spatialys - Geospatial professional services > http://www.spatialys.com > _______________________________________________ > gdal-dev mailing list > gdal-dev@.osgeo > https://lists.osgeo.org/mailman/listinfo/gdal-dev -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev