[geos-commits] [SCM] GEOS branch main updated. 09885badcb2f933767577c762ddb6a97b90515a8

git at osgeo.org git at osgeo.org
Wed Nov 29 11:46:15 PST 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  09885badcb2f933767577c762ddb6a97b90515a8 (commit)
      from  bb1a02679949868419baf73c6c11ee6179a21627 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 09885badcb2f933767577c762ddb6a97b90515a8
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Wed Nov 29 11:45:39 2023 -0800

    Add InteriorPoint tests with empty elements

diff --git a/tests/xmltester/tests/general/TestInteriorPoint.xml b/tests/xmltester/tests/general/TestInteriorPoint.xml
index 23b4a8705..ce315cb8e 100644
--- a/tests/xmltester/tests/general/TestInteriorPoint.xml
+++ b/tests/xmltester/tests/general/TestInteriorPoint.xml
@@ -1,5 +1,4 @@
 <run>
-  <precisionModel scale="1.0" offsetx="0.0" offsety="0.0"/>
 
 <case>
   <desc>P - empty</desc>
@@ -23,15 +22,22 @@
 <case>
   <desc>P - multipoint with EMPTY</desc>
   <a>    MULTIPOINT((0 0), EMPTY)
-	</a>
+  </a>
 <test><op name="getInteriorPoint" arg1="A" >    POINT (0 0)   </op></test>
 </case>
 
+<case>
+  <desc>L - empty</desc>
+  <a>    LINESTRING EMPTY
+  </a>
+<test><op name="getInteriorPoint" arg1="A" >   POINT EMPTY   </op></test>
+</case>
+
 <case>
   <desc>L - linestring with single segment</desc>
   <a>    LINESTRING (0 0, 7 14)
-	</a>
-<test><op name="getInteriorPoint" arg1="A" >   POINT (7 14)   </op></test>
+  </a>
+<test><op name="getInteriorPoint" arg1="A" >   POINT (0 0)   </op></test>
 </case>
 
 <case>
@@ -61,6 +67,13 @@
 <test><op name="getInteriorPoint" arg1="A" >    POINT (180 200)   </op></test>
 </case>
 
+<case>
+  <desc>mL - multilinestring with empty</desc>
+  <a>    MULTILINESTRING ((0 0, 1 1), EMPTY)
+  </a>
+<test><op name="getInteriorPoint" arg1="A" >    POINT (0 0)   </op></test>
+</case>
+
 <case>
   <desc>A - box</desc>
   <a>    POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))
@@ -86,7 +99,7 @@
   <desc>A - polygon with horizontal segment at centre (narrower L shape)</desc>
   <a>    POLYGON ((0 2, 0 4, 3 4, 3 0, 2 0, 2 2, 0 2))
 	</a>
-<test><op name="getInteriorPoint" arg1="A" >    POINT (2 3)   </op></test>
+<test><op name="getInteriorPoint" arg1="A" >    POINT (1.5 3)   </op></test>
 </case>
 
 <case>
@@ -96,6 +109,14 @@
 <test><op name="getInteriorPoint" arg1="A" >    POINT (115 200)  </op></test>
 </case>
 
+
+<case>
+  <desc>mA - multipolygon with empty</desc>
+  <a>    MULTIPOLYGON (((0 2, 0 4, 3 4, 3 0, 2 0, 2 2, 0 2)), EMPTY)
+  </a>
+<test><op name="getInteriorPoint" arg1="A" >    POINT (1.5 3)  </op></test>
+</case>
+
 <case>
   <desc>GC - collection of polygons, lines, points</desc>
   <a>    GEOMETRYCOLLECTION (POLYGON ((0 40, 40 40, 40 0, 0 0, 0 40)), 
@@ -126,10 +147,8 @@
   <a>    GEOMETRYCOLLECTION (POLYGON ((10 10, 10 10, 10 10, 10 10)), 
   LINESTRING (20 20, 20 20),
   MULTIPOINT ((20 10), (10 20)) )
-	</a>
+  </a>
 <test><op name="getInteriorPoint" arg1="A" >    POINT (10 10)   </op></test>
 </case>
 
-
-
 </run>

-----------------------------------------------------------------------

Summary of changes:
 .../xmltester/tests/general/TestInteriorPoint.xml  | 35 +++++++++++++++++-----
 1 file changed, 27 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list