[gdal-dev] Detecting type of SDTS file?

Frank Warmerdam warmerdam at p...
Tue Aug 7 14:08:29 EDT 2001


Ben Discoe wrote:
> 
> When somebody does a drag-and-drop of an SDTS file (*catd.ddf) into my
> application, i need to quickly find out if it is a SDTS-DEM (in which case i
> will load it with GDAL) or an SDTS-DLG (in which case i will load it with
> OGR).
> 
> Is there any way to do this simply, short of the full process of attempting
> to load the file with both GDAL and OGR and testing which operation fails?
> 
> -Ben

Ben, 

If there is an XXXRSDF.DDF (or xxxxrsdf.ddf) file then it is a raster transfer, 
otherwise it is likely a vector transfer. 

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at p...
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