[geos-devel] C API coordinate sequence dimensions

Sean Gillies sgillies at frii.com
Sun Jan 11 22:56:01 EST 2009


I'm finding that GEOSCoordSeq_getDimensions returns 3 no matter what

   # Accessing libgeos_c via Python ctypes
   >>> s = lgeos.GEOSCoordSeq_create(2, 2)
   >>> ndim = c_int()
   >>> lgeos.GEOSCoordSeq_getDimensions(s, byref(ndim))
   1
   >>> ndim
   c_long(3)

Is this a known bug? Looks like we're only testing creation of 3D  
coordinate sequences in

http://trac.osgeo.org/geos/browser/trunk/tests/unit/capi/GEOSCoordSeqTest.cpp

--
Sean Gillies
http://sgillies.net



More information about the geos-devel mailing list