From: Björn Harrtell Date: Sun, 30 Apr 2017 21:36:48 +0000 (+0000) Subject: Readd homogenize and expect empty output on collapsed polygon X-Git-Tag: 2.4.0alpha~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98378966a70f2f3f52d8ea46dc40b6f90092c7d1;p=postgis Readd homogenize and expect empty output on collapsed polygon git-svn-id: http://svn.osgeo.org/postgis/trunk@15380 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/mvt.c b/postgis/mvt.c index 107d76bdf..5544aaed3 100644 --- a/postgis/mvt.c +++ b/postgis/mvt.c @@ -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? } diff --git a/regress/mvt_expected b/regress/mvt_expected index 2f20a1387..50f1163ff 100644 --- a/regress/mvt_expected +++ b/regress/mvt_expected @@ -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)))