Hi all,
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:
source/headers/geos/geom/CoordinateArraySequence.h
If this is the case am I misunderstanding what GEOSGeom_getDimensions_r
is
On Fri, Dec 11, 2009 at 07:51:37AM -0500, Alex Trofast wrote:
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,
It's the number of ordinates used in the geometry
Alex Trofast wrote:
Hi all,
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:
source/headers/geos/geom/CoordinateArraySequence.h
If this is the case am I misunderstanding what
Hi Frank,
The reason I said that is because the fact is I get a 3 no matter which
type I use (Point, Polygon, or Linestring) and looking at the
implementation of GEOSGeom_getDimensions_r it is returned as this:
dim = ls-getCoordinatesRO()-getDimension();
It does not call the Linestring's
Alex Trofast wrote:
Hi Frank,
The reason I said that is because the fact is I get a 3 no matter which
type I use (Point, Polygon, or Linestring) and looking at the
implementation of GEOSGeom_getDimensions_r it is returned as this:
dim = ls-getCoordinatesRO()-getDimension();
It does not call