[postgis-tickets] r15892 - ST_AsMVTGeom use lwgeom_grid_in_place

bjorn at wololo.org bjorn at wololo.org
Thu Oct 5 03:44:50 PDT 2017


Author: bjornharrtell
Date: 2017-10-05 03:44:49 -0700 (Thu, 05 Oct 2017)
New Revision: 15892

Modified:
   trunk/postgis/lwgeom_out_mvt.c
   trunk/postgis/mvt.c
Log:
ST_AsMVTGeom use lwgeom_grid_in_place

Modified: trunk/postgis/lwgeom_out_mvt.c
===================================================================
--- trunk/postgis/lwgeom_out_mvt.c	2017-10-04 22:40:18 UTC (rev 15891)
+++ trunk/postgis/lwgeom_out_mvt.c	2017-10-05 10:44:49 UTC (rev 15892)
@@ -65,7 +65,6 @@
 	if (lwgeom_out == NULL)
 		PG_RETURN_NULL();
 	geom_out = geometry_serialize(lwgeom_out);
-	lwgeom_free(lwgeom_out);
 	PG_FREE_IF_COPY(geom_in, 0);
 	PG_RETURN_POINTER(geom_out);
 #endif

Modified: trunk/postgis/mvt.c
===================================================================
--- trunk/postgis/mvt.c	2017-10-04 22:40:18 UTC (rev 15891)
+++ trunk/postgis/mvt.c	2017-10-05 10:44:49 UTC (rev 15892)
@@ -725,7 +725,7 @@
 	grid.ipy = 0;
 	grid.xsize = 1;
 	grid.ysize = 1;
-	lwgeom = lwgeom_grid(lwgeom, &grid);
+	lwgeom_grid_in_place(lwgeom, &grid);
 
 	if (lwgeom == NULL || lwgeom_is_empty(lwgeom))
 		return NULL;



More information about the postgis-tickets mailing list