[gdal-dev] image header UL,LL,UR,LR
Frank Warmerdam
warmerdam at pobox.com
Thu Feb 24 16:31:20 EST 2011
On 11-02-24 04:16 PM, Shawn Gong wrote:
> Hi list,
>
> I have a flat binary image "HH.img" and a HH.aux header
>
> The header file looks like:
> AuxiliaryTarget: HH.img
> RawDefinition: 1492 1680 1
> ChanDefinition-1: 32R 0 4 5968 Unswapped
> ChanDesc-1: HH intensity
> SegDesc-1-0: Contents Not Specified
> MapUnits: LONG/LAT D-04
> UpLeftX: -5.601451
> UpLeftY: 36.098471
> UpRightX: -5.305277
> UpRightY: 36.148817
> LoLeftX: -5.522707
> LoLeftY: 35.800948
> LoRightX: -5.227759
> LoRightY: 35.851245
> ProjParms: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4
>
> gdalinfo does not give the right corner coordinates.
> what changes do I have to make for gdal to ingest?
> (I can use gdal_translate, but try to avoid that route)
Shawn,
The PCI .aux file is only intended to be used with "north up"
images. I see your corner coordinates are not regular. For instance
the longitude of the upper left and lower left corner are not the same.
You could wrap the same dataset in a "raw" VRT and associate GCPs
with it to identify the corner coordinates instead of trying to set
a geotransform. Scan down to the raw file part of:
http://www.gdal.org/gdal_vrttut.html
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list