[gdal-dev] image header UL,LL,UR,LR
Shawn Gong
SGONG at mdacorporation.com
Fri Feb 25 09:38:23 EST 2011
Thank you, Frank.
Shawn
________________________________________
From: gdal-dev-bounces at lists.osgeo.org [gdal-dev-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam [warmerdam at pobox.com]
Sent: Thursday, February 24, 2011 4:31 PM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] image header UL,LL,UR,LR
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
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list