summaryrefslogtreecommitdiff
path: root/geography/geos/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-11-06 10:36:46 +0000
committerminskim <minskim@pkgsrc.org>2005-11-06 10:36:46 +0000
commit81648a72c19e8fc9ec5307d7a8f0b0de2683f05b (patch)
treefeaf36985a191ad99b2f886817c68023f7e3694a /geography/geos/patches
parent077b34890e28515f9be2f8774839ea0a2c6d98ce (diff)
downloadpkgsrc-81648a72c19e8fc9ec5307d7a8f0b0de2683f05b.tar.gz
Import geos from pkgsrc-wip. Packaged by David Price.
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS). It contain the complete functionality of JTS in C++. It includes all the OpenGIS "Simple Features for SQL" spatial predicate functions and spatial operators,and JTS topology functions like IsValid().
Diffstat (limited to 'geography/geos/patches')
-rw-r--r--geography/geos/patches/patch-aa17
-rw-r--r--geography/geos/patches/patch-ab26
-rw-r--r--geography/geos/patches/patch-ac17
3 files changed, 60 insertions, 0 deletions
diff --git a/geography/geos/patches/patch-aa b/geography/geos/patches/patch-aa
new file mode 100644
index 00000000000..7688b9040b5
--- /dev/null
+++ b/geography/geos/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/LineString.cpp.orig Thu Jul 22 10:45:50 2004
++++ source/geom/LineString.cpp Thu Apr 7 03:56:53 2005
+@@ -216,8 +216,8 @@ string LineString::getGeometryType() con
+
+ bool LineString::isSimple() const {
+ IsSimpleOp iso;
+- Geometry *in = toInternalGeometry(this);
+- bool issimple = iso.isSimple((LineString *)in);
++ LineString *in = dynamic_cast<LineString *>(toInternalGeometry(this));
++ bool issimple = iso.isSimple(in);
+ if ( in != this ) delete(in);
+ return issimple;
+ }
diff --git a/geography/geos/patches/patch-ab b/geography/geos/patches/patch-ab
new file mode 100644
index 00000000000..35525cfb7ad
--- /dev/null
+++ b/geography/geos/patches/patch-ab
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/MultiLineString.cpp.orig Thu Jul 22 10:45:50 2004
++++ source/geom/MultiLineString.cpp Thu Apr 7 03:45:20 2005
+@@ -127,8 +127,8 @@ bool MultiLineString::isClosed() const {
+
+ bool MultiLineString::isSimple() const {
+ IsSimpleOp iso;
+- Geometry *in = toInternalGeometry(this);
+- bool issimple = iso.isSimple((MultiLineString *)in);
++ MultiLineString *in = dynamic_cast<MultiLineString *>(toInternalGeometry(this));
++ bool issimple = iso.isSimple(in);
+ if ( in != this ) delete(in);
+ return issimple;
+ }
+@@ -137,7 +137,7 @@ Geometry* MultiLineString::getBoundary()
+ if (isEmpty()) {
+ return getFactory()->createGeometryCollection(NULL);
+ }
+- Geometry *in = toInternalGeometry(this);
++ MultiLineString *in = dynamic_cast<MultiLineString *>(toInternalGeometry(this));
+ GeometryGraph gg(0, in);
+ CoordinateSequence *pts=gg.getBoundaryPoints();
+ if ( in != this ) delete(in);
diff --git a/geography/geos/patches/patch-ac b/geography/geos/patches/patch-ac
new file mode 100644
index 00000000000..b5fb9f70465
--- /dev/null
+++ b/geography/geos/patches/patch-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/MultiPoint.cpp.orig Thu Jul 22 10:45:50 2004
++++ source/geom/MultiPoint.cpp Thu Apr 7 03:46:23 2005
+@@ -117,8 +117,8 @@ Geometry* MultiPoint::getBoundary() cons
+
+ bool MultiPoint::isSimple() const {
+ IsSimpleOp iso;
+- Geometry *in = toInternalGeometry(this);
+- bool issimple = iso.isSimple((MultiPoint *)in);
++ MultiPoint *in = dynamic_cast<MultiPoint *>(toInternalGeometry(this));
++ bool issimple = iso.isSimple(in);
+ if ( in != this ) delete(in);
+ return issimple;
+ }