[Proj] prj to xml

Gennady Khokhorin gok at aerometric-ak.com
Tue Dec 18 16:41:29 EST 2007

Did search a bit for prj<-->xml conversion tools and wonder if OGR
supports OpenGIS GeospatialXML standard:
Any plans to adopt it?
Thank you.

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: Tuesday, December 11, 2007 7:09 PM
To: PROJ.4 and general Projections Discussions
Subject: Re: [Proj] prj to xml

Gennady Khokhorin wrote:
> Hello, Frank.
> If you building gml tree what api I can use to translate it to xml?
> What routine/class can handle gml<-->prj conversion?
> Happy programming!


The C++ class used for this is OGRSpatialReference and it is part of my
GDAL/OGR library (http://www.gdal.org).  The OGRSpatialReference class
supports translating between a variety of coordinate system formats,
including WKT (it's internal representaton), PROJ.4, GML (weak really),
and a few other esoteric options.  A reasonable primer on the services
is available at:


Incidentally, this is the class uses to generate the PROJ.4 "epsg" init

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    | President OSGeo,

Proj mailing list
Proj at lists.maptools.org

More information about the Proj mailing list