[Gdal-dev] 100 byte shx files

Ed McNierney ed at topozone.com
Tue Feb 20 16:51:15 EST 2007


Alex -

/media/shapefiles/ is a directory, not a list of files.  Did you try
/media/shapefiles/* instead?

     - Ed
-- 
Ed McNierney
President and Chief Mapmaker
Maps a la carte, Inc. / TopoZone.com
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: (978) 251-4242
Fax: (978) 251-1396
ed at topozone.com

> From: "Sorokine, Alexandre" <sorokina at ornl.gov>
> Date: Tue, 20 Feb 2007 16:29:28 -0500
> To: <dylan.beaudette at gmail.com>, <gdal-dev at lists.maptools.org>
> Conversation: [Gdal-dev] 100 byte shx files
> Subject: RE: [Gdal-dev] 100 byte shx files
> 
> See my comments below...
> 
>>> I was converting the projection of shapefiles from the same directoy
>>> using the command:
>>> 
>>> ogr2ogr -t_srs proj.wkt . /media/shapefiles/
>>> 
>>> What I found is that all resulting shape files were
>> corrupted having shx
>>> file just 100 bytes long (basically this is a header with
>> no content).
>>> Convereting shapefiles one by one works fine.  Is it a bug
>> or am I doing
>>> something wrong?  I am using gdal gdal-1.3.2.
>>> 
>>> --
>>> Alex
>> 
>> how about using a for loop?
>> 
>> for x in *.shp ; do ogr2ogr ... ; done
> 
> Yes, this is what I did to get the job done.  But I still wonder if the
> 100 byte shx files is an expected behavior or not.
> 
> --
> Alex
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list