[geos-commits] r2451 - in trunk/tests/xmltester: . tests/general
svn_geos at osgeo.org
svn_geos at osgeo.org
Sat May 2 05:17:23 EDT 2009
Author: strk
Date: 2009-05-02 05:17:23 -0400 (Sat, 02 May 2009)
New Revision: 2451
Added:
trunk/tests/xmltester/tests/general/TestBoundary.xml
Modified:
trunk/tests/xmltester/Makefile.am
Log:
Boundary test
Modified: trunk/tests/xmltester/Makefile.am
===================================================================
--- trunk/tests/xmltester/Makefile.am 2009-05-02 09:16:07 UTC (rev 2450)
+++ trunk/tests/xmltester/Makefile.am 2009-05-02 09:17:23 UTC (rev 2451)
@@ -15,9 +15,10 @@
$(srcdir)/tests/linemerge.xml \
$(srcdir)/tests/TestIsValid.xml \
$(srcdir)/tests/robustness.xml \
- $(srcdir)/tests/general/TestCentroid.xml \
+ $(srcdir)/tests/general/TestBoundary.xml \
$(srcdir)/tests/general/TestBuffer.xml \
$(srcdir)/tests/general/TestBufferMitredJoin.xml \
+ $(srcdir)/tests/general/TestCentroid.xml \
$(srcdir)/tests/general/TestConvexHull.xml \
$(srcdir)/tests/general/TestConvexHull-big.xml \
$(srcdir)/tests/general/TestInteriorPoint.xml \
Added: trunk/tests/xmltester/tests/general/TestBoundary.xml
===================================================================
--- trunk/tests/xmltester/tests/general/TestBoundary.xml (rev 0)
+++ trunk/tests/xmltester/tests/general/TestBoundary.xml 2009-05-02 09:17:23 UTC (rev 2451)
@@ -0,0 +1,165 @@
+<run>
+ <precisionModel scale="1.0" offsetx="0.0" offsety="0.0"/>
+
+<case>
+ <desc>P - point</desc>
+ <a>
+ POINT(10 10)
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ GEOMETRYCOLLECTION EMPTY
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>mP - MultiPoint</desc>
+ <a>
+ MULTIPOINT((10 10), (20 20))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ GEOMETRYCOLLECTION EMPTY
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>L - Line</desc>
+ <a>
+ LINESTRING(10 10, 20 20)
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((10 10), (20 20))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>L - closed</desc>
+ <a>
+ LINESTRING(10 10, 20 20, 20 10, 10 10)
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT EMPTY
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>L - self-intersecting with boundary</desc>
+ <a>
+ LINESTRING(40 40, 100 100, 180 100, 180 180, 100 180, 100 100)
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((40 40), (100 100))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>mL - 2 lines with common endpoint</desc>
+ <a>
+ MULTILINESTRING(
+ (10 10, 20 20),
+ (20 20, 30 30))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((10 10), (30 30))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>mL - 3 lines with common endpoint</desc>
+ <a>
+ MULTILINESTRING(
+ (10 10, 20 20),
+ (20 20, 30 20),
+ (20 20, 30 30))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((10 10), (20 20), (30 20), (30 30))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>mL - 4 lines with common endpoint</desc>
+ <a>
+ MULTILINESTRING(
+ (10 10, 20 20),
+ (20 20, 30 20),
+ (20 20, 30 30),
+ (20 20, 30 40))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((10 10), (30 20), (30 30), (30 40))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>mL - 2 lines, one closed, with common endpoint</desc>
+ <a>
+ MULTILINESTRING(
+ (10 10, 20 20),
+ (20 20, 20 30, 30 30, 30 20, 20 20))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((10 10), (20 20))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>L - 1 line, self-intersecting, topologically equal to prev case</desc>
+ <a>
+ MULTILINESTRING(
+ (10 10, 20 20, 20 30, 30 30, 30 20, 20 20))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTIPOINT((10 10), (20 20))
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>A - polygon with no holes</desc>
+ <a>
+ POLYGON(
+ (40 60, 420 60, 420 320, 40 320, 40 60))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ LINESTRING(40 60, 420 60, 420 320, 40 320, 40 60)
+ </op>
+</test>
+</case>
+
+<case>
+ <desc>A - polygon with 1 hole</desc>
+ <a>
+ POLYGON(
+ (40 60, 420 60, 420 320, 40 320, 40 60),
+ (200 140, 160 220, 260 200, 200 140))
+ </a>
+<test>
+ <op name="getboundary" arg1="A">
+ MULTILINESTRING(
+ (40 60, 420 60, 420 320, 40 320, 40 60),
+ (200 140, 160 220, 260 200, 200 140))
+ </op>
+</test>
+</case>
+
+</run>
More information about the geos-commits
mailing list