[gdal-dev] ESRI arcgis 9.x

Frank Warmerdam warmerdam at pobox.com
Thu Dec 17 17:10:47 EST 2009


Donnet , Sebastien wrote:
> Hi,
>  
> sorry in advance if it's a stupid (or already well covered) question,
> but today I tried to read a shapefile coming from, I believe, ArcGIS 9.2 
> and run out into trouble:
>  
> ERROR 4: Unable to open Bedrock.shx or Bedrock.SHX.
> FAILURE:
> Unable to open datasource `Bedrock.shp' with the following drivers.
>  
> instead of an shx I have an sbn and an sbx 
>  
> My version of ogr/gdal: from FWTools226.exe
> (I'm on windows)
>  
> thanks in advance for any hints.

Sebastien,

OGR cannot currently read shapefiles without a .shx file.  The .sbn and
.sbx files are spatial indexes, and not used by GDAL. The .shx file is
basically a "shape id to file offset" index.

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



More information about the gdal-dev mailing list