[gdal-dev] Re: Convert from CA83-VF (EPSG 2229) to WGS84 (EPSG 4326) using gdaltransform

Frank Warmerdam warmerdam at pobox.com
Tue May 31 16:51:42 EDT 2011


On 11-05-31 04:06 PM, kavinmehta wrote:
> Thanks Jean-Claude.
>
> I ran the following command:
>
>> ogr2ogr -f "ESRI Shapefile" -overwrite "C:/mapdata/ABC.shp"
> "C:/mapdata/ABC.shp" -T_SRS EPSG:4326
>
> and got similar error:
>
> ERROR 4: Unable to open EPSG support file gcs.csv.
> Try setting the GDAL_DATA environment variable to point to the
> directory containing EPSG csv files.
> Failed to process SRS definition: EPSG:4326
>
> How do i say this is my input and this is my output file? if i give an o/p
> file name in the above command then it says it does not exist, which is
> correct because i want it to create it. hence i gave the same file name with
> an overwrite command but it did not work either.

Kavin,

You cannot do update in place the way you want with ogr2ogr.  I'm afraid
you will need to transform your features into a new shapefile.

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