Skip to content

Commit

Permalink
Enable compilation using GEOS 3 as well as GEOS 2.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6416 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Jan 9, 2007
1 parent bbd36b1 commit 5a1386b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgeometry.cpp
Expand Up @@ -73,8 +73,8 @@ QgsGeometry::QgsGeometry( QgsGeometry const & rhs )

QgsGeometry* QgsGeometry::fromWkt(QString wkt)
{
geos::WKTReader reader(geosGeometryFactory);
geos::Geometry* geom = reader.read(wkt.toLocal8Bit().data());
GEOS_IO::WKTReader reader(geosGeometryFactory);
GEOS_GEOM::Geometry* geom = reader.read(wkt.toLocal8Bit().data());
QgsGeometry* g = new QgsGeometry;
g->setGeos(geom);
return g;
Expand Down
1 change: 1 addition & 0 deletions src/providers/wfs/qgswfsprovider.h
Expand Up @@ -22,6 +22,7 @@
#include "qgis.h"
#include "qgsrect.h"
#include "qgsvectordataprovider.h"
#include <geos.h>
#include <indexStrtree.h>
#if GEOS_VERSION_MAJOR < 3
#define GEOS_INDEX_STRTREE geos
Expand Down

0 comments on commit 5a1386b

Please sign in to comment.