Hi list,<br><br>I don&#39;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&#39;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">&lt;<a href="mailto:sgillies@frii.com">sgillies@frii.com</a>&gt;</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&#39;m finding that GEOSCoordSeq_getDimensions returns 3 no matter what<br>
<br>
 &nbsp;# Accessing libgeos_c via Python ctypes<br>
 &nbsp;&gt;&gt;&gt; s = lgeos.GEOSCoordSeq_create(2, 2)<br>
 &nbsp;&gt;&gt;&gt; ndim = c_int()<br>
 &nbsp;&gt;&gt;&gt; lgeos.GEOSCoordSeq_getDimensions(s, byref(ndim))<br>
 &nbsp;1<br>
 &nbsp;&gt;&gt;&gt; ndim<br>
 &nbsp;c_long(3)<br>
<br>
Is this a known bug? Looks like we&#39;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>