]> granicus.if.org Git - postgis/commitdiff
Readd homogenize and expect empty output on collapsed polygon
authorBjörn Harrtell <bjorn@wololo.org>
Sun, 30 Apr 2017 21:36:48 +0000 (21:36 +0000)
committerBjörn Harrtell <bjorn@wololo.org>
Sun, 30 Apr 2017 21:36:48 +0000 (21:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15380 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/mvt.c
regress/mvt_expected

index 107d76bdf9ff8bd83e277db2459b82f844c9e02c..5544aaed36263331418fa30457a82c2c1d077a44 100644 (file)
@@ -561,7 +561,7 @@ LWGEOM *mvt_geom(LWGEOM *lwgeom, GBOX *gbox, uint32_t extent, uint32_t buffer,
                LWCOLLECTION *lwcoll = lwgeom_as_lwcollection(lwgeom_out);
                lwgeom_out = lwcollection_as_lwgeom(
                        lwcollection_extract(lwcoll, max_type(lwcoll)));
-               //lwgeom_out = lwgeom_homogenize(lwgeom_out);
+               lwgeom_out = lwgeom_homogenize(lwgeom_out);
                // TODO: might not be valid here... may want to union?
        }
 
index 2f20a13877ca04307fa736e6afd32a5cfb6fd47f..50f1163fff4fdc7af61c5742d13a190996b7af99 100644 (file)
@@ -2,7 +2,7 @@ PG1|POINT(1 4094)
 PG2|POINT(0 4095)
 PG3|POINT(2 4092)
 PG4|MULTIPOLYGON(((5 4096,10 4096,10 4091,5 4096)),((0 4096,0 4101,5 4096,0 4096)))
-PG5|POINT(0 4096)
+PG5|
 PG6|POLYGON((894 2704,2791 594,600 594,894 2704))
 PG7|POLYGON((1252 1904,1251 1904,1252 1905,1253 1906,1253 1905,1252 1904))
 PG8|MULTIPOLYGON(((5 4096,10 4096,10 4091,5 4096)),((0 4096,0 4101,5 4096,0 4096)))