Hi list,<br><br>I don't know that this is a known bug, but CoordinateArraySequence.getDimension() method always return 3.<br><br>[trunk/source/headers/geos/geom/CoordinateArraySequence.h - line 88]<br>size_t getDimension() const { return 3; }<br>
<br><br>JTS(JTS Topology Suite) seems to be also the same.<br><br>[jts/src/com/vividsolutions/jts/geom/DefaultCoordinateSequence.java - line 95]<br>public int getDimension() { return 3; }<br><br>I don't know that this is a specification or not...<br>
<br>Regards,<br><br>Sanak.<br><br><div class="gmail_quote">2009/1/12 Sean Gillies <span dir="ltr"><<a href="mailto:sgillies@frii.com">sgillies@frii.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm finding that GEOSCoordSeq_getDimensions returns 3 no matter what<br>
<br>
# Accessing libgeos_c via Python ctypes<br>
>>> s = lgeos.GEOSCoordSeq_create(2, 2)<br>
>>> ndim = c_int()<br>
>>> lgeos.GEOSCoordSeq_getDimensions(s, byref(ndim))<br>
1<br>
>>> ndim<br>
c_long(3)<br>
<br>
Is this a known bug? Looks like we're only testing creation of 3D coordinate sequences in<br>
<br>
<a href="http://trac.osgeo.org/geos/browser/trunk/tests/unit/capi/GEOSCoordSeqTest.cpp" target="_blank">http://trac.osgeo.org/geos/browser/trunk/tests/unit/capi/GEOSCoordSeqTest.cpp</a><br><font color="#888888">
<br>
--<br>
Sean Gillies<br>
<a href="http://sgillies.net" target="_blank">http://sgillies.net</a><br>
<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</font></blockquote></div><br>