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

2011-05-31 Thread kavinmehta
HI Frank,

thanks for your help, I did as per your reply but I still get the same error
message:

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



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Convert-from-CA83-VF-EPSG-2229-to-WGS84-EPSG-4326-using-gdaltransform-tp6424186p6425357.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2011-05-31 Thread Frank Warmerdam

On 11-05-31 05:51 PM, kavinmehta wrote:

Thanks Frank. Would you know how to do it? i.e. what command to use to
convert a shape file from (EPSG 2229) to (EPSG 4326). I am having a hard
time doing it thru ogr2ogr however i can easily do this in FME Desktop tool
which uses ogr2ogr internally.


Kavin,

Something like:

  ogr2ogr -t_srs EPSG:4326 -s_srs EPSG:2229 out.shp in.shp

If the in.shp has a properly defined in.prj it will not be necessary to
use the -s_srs switch to set the source coordinate system.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2011-05-31 Thread kavinmehta
Thanks Frank. Would you know how to do it? i.e. what command to use to
convert a shape file from (EPSG 2229) to (EPSG 4326). I am having a hard
time doing it thru ogr2ogr however i can easily do this in FME Desktop tool
which uses ogr2ogr internally.

Thanks,
kavin Mehta.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Convert-from-CA83-VF-EPSG-2229-to-WGS84-EPSG-4326-using-gdaltransform-tp6424186p6424722.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2011-05-31 Thread Frank Warmerdam

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, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2011-05-31 Thread kavinmehta
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.

Thanks for your help.
Kavin

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Convert-from-CA83-VF-EPSG-2229-to-WGS84-EPSG-4326-using-gdaltransform-tp6424186p6424310.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev