[geos-devel] BUG: getGeometryType() returns "Geometry" instead of actual type

David Blasby dblasby at refractions.net
Tue Nov 12 15:50:11 EST 2002


int main(int argc, char** argv)
{
 Coordinate *c = new Coordinate(0,0,0);
  Geometry result;
   string s,ss;
 GeometryFactory   * geomFactory = new GeometryFactory();

     result =  geomFactory->createPoint(*c);

      s = result.getGeometryType();   //### HERE

cout << s << "\n";
     cout << "done\n";
}

This prints out "Geometry", it should print out "POINT".

dave





More information about the geos-devel mailing list