Hi, my very simple sample code (below) crashes when i call isValid(). Can anybody reproduce the problem or know what the problem might be ?
Thanks in advance. Yücel #include "geos/geom/Coordinate.h" #include "geos/geom/CoordinateArraySequence.h" #include "geos/geom/LineString.h" #include "geos/geom/LinearRing.h" #include "geos/geom/GeometryFactory.h" using namespace geos::geom; int main(int argc, char *argv[]) { CoordinateArraySequence* coords = new CoordinateArraySequence(); //Simple rectangle coords->add(Coordinate(-1, 1)); coords->add(Coordinate( 1, 1)); coords->add(Coordinate( 1,-1)); coords->add(Coordinate(-1,-1)); coords->add(Coordinate(-1, 1)); GeometryFactory factory; LinearRing* linearRing = factory.createLinearRing(coords); bool yes = linearRing->isValid(); // <---- Crashes here !!! return 0; } _______________________________________________ geos-devel mailing list geos-devel@geos.refractions.net http://geos.refractions.net/mailman/listinfo/geos-devel