ogr2ogr bug!
Gabriel Cloutier
gabriel.cloutier at RNCAN.GC.CA
Thu Jul 7 09:19:48 PDT 2005
Hi list,
I use ogr2ogr for the reprojection of my shapefile.
With this command:
find -name "*.shp" -exec ogr2ogr -t_srs EPSG:42304 layer {} \;
My root folder contain 465 shapefiles
After the creation of 339 shapefiles in the folder layer I got this error
message:
Try setting the GDAL_DATA environment variable to point to the
directory containing EPSG csv files.
Failed to process SRS definition: EPSG:42304
I try to generate manually another shapefile with:
ogr2ogr -t_srs EPSG:42304 layer AGGLOMERATION_0_250k_041H.shp
I got this error:
ERROR 4: Failed to open Shapefile `layer/AGGLOMERATION_0_250k_041H.shp'.
ERROR 1: Terminating translation prematurely after failed
translation of layer AGGLOMERATION_0_250k_041H
But if I redirect the output in another folder with :
ogr2ogr -t_srs EPSG:42304 layer222 AGGLOMERATION_0_250k_041H.shp
The ShapeFile are created successfully...
I delete one ShapeFile in the folder layer and do:
ogr2ogr -t_srs EPSG:42304 layer AGGLOMERATION_0_250k_041H.shp
The ShapeFile are created successfully...
There is a limit of files created by this tool in a folder ?
-Gab
More information about the MapServer-users
mailing list