[gdal-dev] GDALOpen failed on GRC grid

mladen-g at distributel.net mladen-g at distributel.net
Wed Mar 14 10:53:14 EDT 2012


Hi,

I did some more research, and compared a working grid against the one  
that fails to open.  Here is the working grid, which is almost exactly  
the same as the failing one (~50K difference in file sizes):

http://dl.dropbox.com/u/53500018/WorkingGdalOpen.zip

Comparing the two in a binary editor, I see differences in bytes 10  
and 26 of the header... not sure exactly what that means without the  
GRC spec (would anyone have a link for that, by the way?).

However, as I said in my original mail, the failing grid does open  
correctly in other software (MapInfo and Global Mapper 13), so I  
suspect that there may be a bug in the GDAL GRC driver.  I guess that  
opening a ticket is appropriate here, unless someone has other ideas?

Regards,
Mladen

Quoting mladen-g at distributel.net:
> Hello all,
>
> I'm experiencing an error when trying to open a GRC grid (Northwood  
> VerticalMapper Classified Grid) with gdal_translate.  The command  
> and error is:
>
> C:\>gdal_translate -of vrt  
> "C:\temp\ClassficationGrid-UK-Technologies_1.grc"  
> "C:\temp\ClassficationGrid-UK-Technologies_1.vrt"
> ERROR 4: `C:\temp\ClassficationGrid-UK-Technologies_1.grc' not  
> recognised as a supported file format.
>
> GDALOpen failed - 4
>
> This seems like it could be a problem with the file, but I can open  
> it in MapInfo, as well as Global Mapper 13, so I think the file is OK.
>
> Is there a way to explicitly specify to gdal_translate the format of  
> the input file?  I don't see an option for this in the list of  
> command line switches.
>
> I put the .grc/.tab file pair in a zip (~5.3 Mb) at  
> http://dl.dropbox.com/u/53500018/GdalOpenFailedGrid.zip if it helps.  
>  This is in version 1.9.0 of GDAL, by the way.
>
> Regards,
> Mladen

----------------------------------------------------------------
This message was sent using Distributel Webmail.
Ce message a été envoyé à partir de la Messagerie Web Distributel.




More information about the gdal-dev mailing list