[gdal-dev] Re: Problem with GEOTIFF
Hi Frank, Thanks for the reply. On 1/26/2011 11:16 PM, Frank Warmerdam wrote: On 11-01-25 03:09 PM, Fernando Cacciola wrote: Hello, I have a geotiff image which, according to its accompaning htm, uses the WGS_1984 Datum. However, when I call GDALGetProjectionRef() it fails, returning GCS tag not found, plus ENR_L01.tif (from ENR_L01.zip) Failed to setup Geographic Coordinate System FAILED with error: 2 ... What can I do? Fernando, It might be helpful to see a listgeo report on the tiff file. Listgeo is a utility associated with libgeotiff and might already be available on your system or easily installed. OK, I have it already so here is the information: Corner Coordinates: ... unable to transform points between pixel/line and PCS space Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: End_Of_Tags. Keyed_Information: End_Of_Keys. End_Of_Geotiff. I noticed that this dataset is made of 4 files: enr_p01.aux enr_p01.tfwx enr_p01.tif enr_p01.tif.aux.xml Oddly, the xml file contains this tag: WKTPROJCS[quot;Pac_chartquot;,GEOGCS[quot;GCS_WGS_1984quot;,DATUM[quot;D_WGS_1984quot;. so it seems like the data is there after all. I haven't been able to identify where the GCS tag not found error message is coming from. It does not seem to be part of the OGRSpatialReference, That is the content of the string returned by GDALGetProjectionRef() Best -- --- Fernando Cacciola SciSoft Consulting, Founder http://www.scisoft-consulting.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Re: Problem with GEOTIFF
On 11-01-26 10:26 PM, Fernando Cacciola wrote: OK, I have it already so here is the information: Corner Coordinates: ... unable to transform points between pixel/line and PCS space Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: End_Of_Tags. Keyed_Information: End_Of_Keys. End_Of_Geotiff. Fernando, The above tells us there is no coordinate system in the .tif itself. I noticed that this dataset is made of 4 files: enr_p01.aux enr_p01.tfwx enr_p01.tif enr_p01.tif.aux.xml Oddly, the xml file contains this tag: WKTPROJCS[quot;Pac_chartquot;,GEOGCS[quot;GCS_WGS_1984quot;,DATUM[quot;D_WGS_1984quot;. so it seems like the data is there after all. Ah. I suspect this is a problem with having both an .aux and .aux.xml file. I suppose the .aux file is being used and the .aux.xml file is ignored. Try moving the .aux file somewhere out of the way and see if things behave more properly. If you can make the dataset available I might be able to improve the robustness of the logic for the case with a .aux and .aux.xml file. 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] Re: Problem with GEOTIFF
Hi Frank, so it seems like the data is there after all. Ah. I suspect this is a problem with having both an .aux and .aux.xml file. I suppose the .aux file is being used and the .aux.xml file is ignored. Try moving the .aux file somewhere out of the way and see if things behave more properly. That was a very good guess, but unfortunately it didn't change anything :( If you can make the dataset available I might be able to improve the robustness of the logic for the case with a .aux and .aux.xml file. It'd be great if you can take a look at it. Though even zipped is too big for an attachment. Do I email it to you? Best regards -- --- Fernando Cacciola SciSoft Consulting, Founder http://www.scisoft-consulting.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] Re: Problem with GEOTIFF
Hi Frank, If you can make the dataset available I might be able to improve the robustness of the logic for the case with a .aux and .aux.xml file. Here's a link to the dataset from my dropbox account: http://dl.dropbox.com/u/938865/ENR_P01.zip Best regards, -- Fernando Cacciola SciSoft Consulting, Founder http://www.scisoft-consulting.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev