[gdal-dev] converting AAIGrid to SRTM

Bryan Fields Bryan at bryanfields.net
Fri Oct 25 02:40:51 PDT 2019


On 10/25/19 5:33 AM, Even Rouault wrote:
>> 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

Thanks, I'll give it a try later today.

>> 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.

It doesn't :)

I get everything looking like it's working, then a row of final output tiles
of 23 x 1201 SRTM files.

I'll try it later I'm coming of a maintenance window and getting ready for bed.
-- 
Bryan Fields

727-409-1194 - Voice
http://bryanfields.net


More information about the gdal-dev mailing list