So I now changed the code to just use the geos library and it works:
Point* kdTreeMgmtServer::process_polygon(string line, string path) {
WKTReader* wkt_reader = new WKTReader();
Geometry* geom = wkt_reader->read(line);
if(!geom->isValid()) {
log_error("no
Hey,
I checked gdal out from the svn repos and build it with:
./configure --libdir=/usr/lib --with-geos=yes
make -j3
make install
Installed geos stuff:
dpkg -l | grep geos
ii libgeos-3.2.0 3.2.0-1
Geometry engine for Geographic Information S
Hey guys,
I just started using gdal/ogr and am running into a lot of problems. The
main one right now comes up when I'm trying to create a geometry from a
string that I read from a file. The line I'm reading looks like this:
MULTIPOLYGON(((1 1,5 1,5 5,1 5,1 1),(2 2,2 3,3 3,3 2,2 2)),((6 3,9 2,9 4