[geos-devel] Re: Return value of GEOSGeom_getDimensions_r
alex.trofast at ingres.com
Fri Dec 11 07:51:37 EST 2009
After reading the source and if I did it right, it seems like that
GEOSGeom_getDimensions_r would always return a 3, judging by
getDimensions in this file:
If this is the case am I misunderstanding what GEOSGeom_getDimensions_r
is actually supposed to do: return 0 for point, 1 for curve, 2 for surface?
Any help is greatly appreciated,
On 12/10/2009 03:41 PM, Alex Trofast wrote:
> I'm using the GEOS C API and calling GEOSGeom_getDimensions_r on a
> GEOSGeometry. However it always seems to return the number 3, no
> matter what kind of Geometry I pass to it the return value is the
> same. It doesn't seem like GEOS is giving off any kind of error. The
> Geometry is created using a WKBReader from a binary format.
> Any help is greatly appreciated.
> Thank you!
More information about the geos-devel