diff options
author | minskim <minskim@pkgsrc.org> | 2005-11-06 10:36:46 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-11-06 10:36:46 +0000 |
commit | 81648a72c19e8fc9ec5307d7a8f0b0de2683f05b (patch) | |
tree | feaf36985a191ad99b2f886817c68023f7e3694a /geography | |
parent | 077b34890e28515f9be2f8774839ea0a2c6d98ce (diff) | |
download | pkgsrc-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')
-rw-r--r-- | geography/geos/DESCR | 5 | ||||
-rw-r--r-- | geography/geos/Makefile | 19 | ||||
-rw-r--r-- | geography/geos/PLIST | 33 | ||||
-rw-r--r-- | geography/geos/buildlink3.mk | 18 | ||||
-rw-r--r-- | geography/geos/distinfo | 8 | ||||
-rw-r--r-- | geography/geos/patches/patch-aa | 17 | ||||
-rw-r--r-- | geography/geos/patches/patch-ab | 26 | ||||
-rw-r--r-- | geography/geos/patches/patch-ac | 17 |
8 files changed, 143 insertions, 0 deletions
diff --git a/geography/geos/DESCR b/geography/geos/DESCR new file mode 100644 index 00000000000..887811c414d --- /dev/null +++ b/geography/geos/DESCR @@ -0,0 +1,5 @@ +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(). diff --git a/geography/geos/Makefile b/geography/geos/Makefile new file mode 100644 index 00000000000..097c53c9435 --- /dev/null +++ b/geography/geos/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $ +# + +DISTNAME= geos-2.0.0 +CATEGORIES= geography +MASTER_SITES= http://geos.refractions.net/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= mchittur@cs.nmsu.edu +HOMEPAGE= http://geos.refractions.net/ +COMMENT= C++ port of the Java Topology Suite (JTS) + +USE_PKGLOCALEDIR= yes +USE_LIBTOOL= yes +GNU_CONFIGURE= yes + +USE_LANGUAGES+= c++ + +.include "../../mk/bsd.pkg.mk" diff --git a/geography/geos/PLIST b/geography/geos/PLIST new file mode 100644 index 00000000000..e4f91de7e44 --- /dev/null +++ b/geography/geos/PLIST @@ -0,0 +1,33 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $ +bin/geos-config +include/geos.h +include/geos/geom.h +include/geos/geomUtil.h +include/geos/geomgraph.h +include/geos/geomgraphindex.h +include/geos/geosAlgorithm.h +include/geos/indexBintree.h +include/geos/indexChain.h +include/geos/indexQuadtree.h +include/geos/indexStrtree.h +include/geos/indexSweepline.h +include/geos/io.h +include/geos/noding.h +include/geos/nodingSnapround.h +include/geos/opBuffer.h +include/geos/opDistance.h +include/geos/opLinemerge.h +include/geos/opOverlay.h +include/geos/opPolygonize.h +include/geos/opRelate.h +include/geos/opValid.h +include/geos/operation.h +include/geos/planargraph.h +include/geos/platform.h +include/geos/precision.h +include/geos/spatialIndex.h +include/geos/unload.h +include/geos/util.h +include/geos/version.h +lib/libgeos.la +@dirrm include/geos diff --git a/geography/geos/buildlink3.mk b/geography/geos/buildlink3.mk new file mode 100644 index 00000000000..997746631b1 --- /dev/null +++ b/geography/geos/buildlink3.mk @@ -0,0 +1,18 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +GEOS_BUILDLINK3_MK:= ${GEOS_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= geos +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngeos} +BUILDLINK_PACKAGES+= geos + +.if !empty(GEOS_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.geos+= geos>=2.0.0 +BUILDLINK_PKGSRCDIR.geos?= ../../geography/geos +.endif # GEOS_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/geography/geos/distinfo b/geography/geos/distinfo new file mode 100644 index 00000000000..226a8909392 --- /dev/null +++ b/geography/geos/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $ + +SHA1 (geos-2.0.0.tar.bz2) = 68ebffa7e18f4edf932e98bd3cf20d58a439c22e +RMD160 (geos-2.0.0.tar.bz2) = b3873169d215beb3202870618fbefbe96593fa90 +Size (geos-2.0.0.tar.bz2) = 512262 bytes +SHA1 (patch-aa) = 7b05c8507f9f06ca0492ab8b219aad6922685a4e +SHA1 (patch-ab) = 2257c2a6bc5448486dcd1826138c1b16b1b78a4f +SHA1 (patch-ac) = e6fa156825bf9afb7324c63d5cc4c88a88cae96b 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; + } |