[Gdal-dev] New user needs helps

Frank Warmerdam fwarmerdam at gmail.com
Wed Dec 1 09:28:18 EST 2004


On Tue, 30 Nov 2004 22:27:56 -0000, Martin Hodder
<mhodder at highermappingsolutions.com> wrote:
> I hope someone can help me. 
> 
> I am trying to convert some points in Long / lat format to World Equidistant
> Cylindrical projection 
> 
> I have the following information on the projection:- 

Martin,

The definition is in ESRI WKT format.  If you save it
to a text file called out.wkt you can do the following in 
a translation to reproject input latlong points to this
coordinate system. 

ogr2ogr  -s_srs WGS84 -t_srs ESRI::out.wkt  out_dir indatasource

Most comandline options for GDAL/OGR tools that accept a
coordinate system will allow you to give the name of a file 
containing WKT.  And if you prefix the filename with ESRI:: 
the library will interprete the WKT as being ESRI WKT and
convert to "standard" format accordingly. The -s_srs switch
is assigning a source coordinate system to your input data
(in case it didn't have this properly defined already), and the
-t_srs is defining a target coordinate system to reproject
to. 

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