[gdal-dev] ecw - file: wrong extent/corner coordinates
Helmut Kudrnovsky
hellik at web.de
Fri Oct 23 11:27:07 PDT 2015
Even Rouault-2 wrote
>>
>> content of 6617-04.eww:
>>
>> 0.2
>> 0.0
>> 0.0
>> -0.2
>> 653750.1
>> 169999.9
>>
>> following geotransform item added to 6617-04.ecw.aux.xml:
>>
>>
> <PAMDataset>
>>
> <GeoTransform>
> 653750.1,0.2,0,169999.9,0,-0.2
> </GeoTransform>
> --> This is not the more accurate translation from worldfile convention to
> GDAL
> convention. The coordinates of the top-left pixel in worldfiles are the
> center
> of pixel. In GDAL convention, it is the top-left corner of the top-left
> pixel,
> hence a half-pixel shift. So in GDAL, the GeoTransform should be:
> <GeoTransform>
> 653750,0.2,0,170000,0,-0.2
> </GeoTransform>
thanks again for the hint about the center/top-left pixel issue.
-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ecw-file-wrong-extent-corner-coordinates-tp5232129p5232261.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list