[geos-devel] GEOSGetCoordinates() and performance (postgis bug
fix)
strk
strk at keybit.net
Fri Oct 24 17:27:47 EDT 2003
dblasby wrote:
> You mean in converting from GEOS->PostGIS geometries? If you add
> a GEOS function (or to Postgis_geos_wrapper.cpp) that returns an integer
> instead of a string for geometrytype you'll be able to remove them.
I've added the following:
enum geos::GeometryTypeId {
GEOS_POINT,
GEOS_LINESTRING,
GEOS_POLYGON,
GEOS_MULTIPOINT,
GEOS_MULTILINESTRING,
GEOS_MULTIPOLYGON,
GEOS_GEOMETRYCOLLECTION
};
GeometryTypeId Geometry::getGeometryTypeId() const;
PS: I've declared and defined the functions in geom.h for quick review.
--strk;
More information about the geos-devel
mailing list