On 03/01/2011 03:12 PM, Justin Bronn wrote:
On 3/1/11 2:45 AM, Marc wrote:
Why is my third coord ignored ? I can see that the 'coords' attribute
has the 3rd value, but it looks like it's being ignored by some routine
(for example, printing or exporting to wkt). The '_ndim' is correctly
set to 3, so as I understand, the 3rd value should be used... ?

The WKT writer in GEOS does not serialize 3D coordinates by default:

http://trac.osgeo.org/geos/browser/trunk/src/io/WKTWriter.cpp#L118

If you're adventurous, you can try enabling the PRINT_Z macro. GEOS only
supports exporting 3D information as EWKB/HEXEWKB.

Thanks for your answer :)

Strange thing is that with stock Debian sid, it works as expected without doing anything. I'll try to find what is causing this difference in behavior (haven't seen any ref to PRINT_Z macro in debian package).

Cheers,
Marc
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to