[gdal-dev] converting AAIGrid to SRTM

Even Rouault even.rouault at spatialys.com
Fri Oct 25 02:33:11 PDT 2019


> Is there a way to trim this to 36001x36001 before converting it to the
> 1201x1201 tiles?

the -srcwin switch of gdal_translate:
https://gdal.org/programs/gdal_translate.html

like -srcwin 11 11 36001 36001

> 
> When I run this conversion, I need an exact 1201x1201 image.  I'm also not
> sure how to verify this is correct.  My concern is if I'm a pixel off that
> is up to 90m, and now it would appear I'm 23 pixels off, or up to 2.07km.

the SRTMHGT driver should emit a warning if the extent of the input dataset 
has not the expected extent.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list