[geos-devel] BUG: getGeometryType() returns "Geometry" instead of
actual type
David Blasby
dblasby at refractions.net
Tue Nov 12 16:02:18 EST 2002
Actually, I think its the GeometryFactory constructor thats giving
problems. This works:
void pp()
{
WKTReader *r = new WKTReader(GeometryFactory(PrecisionModel(),10));
Geometry *g;
string s,ss;
char *c;
s = "POINT(0 0)";
g =r->read(s);
cout << g->toString();
cout << "\ntype: " << g->getGeometryType() << "\n";
}
More information about the geos-devel
mailing list