[Proj] prj to xml

Frank Warmerdam warmerdam at pobox.com
Tue Dec 11 23:09:11 EST 2007

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, http://osgeo.org

More information about the Proj mailing list