Marc <[email protected]> writes:

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

> 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).

Hello again,

after some more digging, I've been able to find how to make things work.
First, I upgraded my python-gdal package from 1.6.3 (current Ubuntu) to
1.7.3 (current debian sid). I also upgraded all gdal-bin (1.7.3) and
created/installed libgdal1-1.7.0. This makes the .exportToWkt() method
correctly export the 3rd coord. But then, shapely.wkt.loads() does not
use this 3rd coord. So I recompiled the python-shapely from debian sid
(1.2.8) and now it works great.

I'm currently uploading these backported packages to my ppa, if it is of
any interest to anyone:

 https://launchpad.net/~marc-poulhies/+archive/ppa

(I've also created packages for rtree, geojson & spatialindex)

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

Reply via email to