[geos-commits] r2639 - trunk/tests/xmltester/tests

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Sep 30 15:18:21 EDT 2009


Author: strk
Date: 2009-09-30 15:18:20 -0400 (Wed, 30 Sep 2009)
New Revision: 2639

Modified:
   trunk/tests/xmltester/tests/singlesidedbuffer.xml
Log:
Another simple test for single-sided buffer (horizontal line, both directions)


Modified: trunk/tests/xmltester/tests/singlesidedbuffer.xml
===================================================================
--- trunk/tests/xmltester/tests/singlesidedbuffer.xml	2009-09-30 19:07:29 UTC (rev 2638)
+++ trunk/tests/xmltester/tests/singlesidedbuffer.xml	2009-09-30 19:18:20 UTC (rev 2639)
@@ -34,11 +34,44 @@
 </test>
 </case>
 
-<case><desc>Single-sided buffers</desc>
+<case><desc>Single-sided buffer on horizontal line (left-right)</desc>
 <a>
+LINESTRING (0 0, 5 0)
+</a>
+<test>
+<op name="buffersinglesided" arg1="a" arg2="2" arg3="4" arg4="right">
+MULTILINESTRING ((0 -2, 5 -2))
+</op>
+</test>
+<test>
+<op name="buffersinglesided" arg1="a" arg2="2" arg3="4" arg4="left">
+MULTILINESTRING ((0 2, 5 2))
+</op>
+</test>
+</case>
+
+<case><desc>Single-sided buffer on horizontal line (right-left)</desc>
+<a>
+LINESTRING (5 0, 0 0)
+</a>
+<test>
+<op name="buffersinglesided" arg1="a" arg2="2" arg3="4" arg4="right">
+MULTILINESTRING ((0 2, 5 2))
+</op>
+</test>
+<test>
+<op name="buffersinglesided" arg1="a" arg2="2" arg3="4" arg4="left">
+MULTILINESTRING ((0 -2, 5 -2))
+</op>
+</test>
+</case>
+
+
+<case><desc>Single-sided buffers on sharpe edged line</desc>
+<a>
 LINESTRING (5 5,1 1,1.5 3)
 </a>
-<!--
+<!-- right-side returns with empty geometry !
 <test>
 <op name="buffersinglesided" arg1="a" arg2="1.6" arg3="4" arg4="right">
 MULTILINESTRING ((0.889806640162438 3.15254833995939,3.86862915010152 6.13137084989848))



More information about the geos-commits mailing list