[postgis-tickets] r15380 - Readd homogenize and expect empty output on collapsed polygon
bjorn at wololo.org
bjorn at wololo.org
Sun Apr 30 14:36:48 PDT 2017
Author: bjornharrtell
Date: 2017-04-30 14:36:48 -0700 (Sun, 30 Apr 2017)
New Revision: 15380
Modified:
trunk/postgis/mvt.c
trunk/regress/mvt_expected
Log:
Readd homogenize and expect empty output on collapsed polygon
Modified: trunk/postgis/mvt.c
===================================================================
--- trunk/postgis/mvt.c 2017-04-30 21:36:42 UTC (rev 15379)
+++ trunk/postgis/mvt.c 2017-04-30 21:36:48 UTC (rev 15380)
@@ -561,7 +561,7 @@
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?
}
Modified: trunk/regress/mvt_expected
===================================================================
--- trunk/regress/mvt_expected 2017-04-30 21:36:42 UTC (rev 15379)
+++ trunk/regress/mvt_expected 2017-04-30 21:36:48 UTC (rev 15380)
@@ -2,7 +2,7 @@
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)))
More information about the postgis-tickets
mailing list