[gdal-dev] image header UL,LL,UR,LR
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/LATD-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) Thanks, Shawn ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] image header UL,LL,UR,LR
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/LATD-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) Thanks, Shawn ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
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/LATD-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, warmer...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
RE: [gdal-dev] image header UL,LL,UR,LR
Thank you, Frank. Shawn From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam [warmer...@pobox.com] Sent: Thursday, February 24, 2011 4:31 PM To: gdal-dev@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/LATD-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, warmer...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev