[gdal-dev] OGR 3D coordinates

Frank Warmerdam warmerdam at pobox.com
Thu Feb 7 17:34:54 EST 2008


Andrew T. Louis wrote:
> Hi all,
> Does the ogr2ogr tool handle composed WKT (datum + elevation=Z value)
> for CRS transformation?
> I tried with no success... 

Andrew,

Are you asking if GDAL/OGR supposed compound coordinate system
defining the Z axis in WKT?  The short answer is no.

> If it does, should the input coordinates only be 3D? Or will it ignore
> the Z value when transforming a 2D input?

The transform() method on OGRGeometries will assume a Z of zero before
calling the transformer which operates in 3D.  Reviewing the code quickly
it seems that in some cases (some types of geometry) the geometry may
be forced into 3D mode after the transform method.

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 gdal-dev mailing list