[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha2-43-gb89a6f0

git at osgeo.org git at osgeo.org
Mon Aug 3 13:41:48 PDT 2020


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 "PostGIS".

The branch, master has been updated
       via  b89a6f04ab68ebb21df2b35350ba73d3e8c568ae (commit)
      from  98c1cb2a0de604f60af6f044237d300883de8057 (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 b89a6f04ab68ebb21df2b35350ba73d3e8c568ae
Author: Regina Obe <lr at pcorp.us>
Date:   Mon Aug 3 16:41:41 2020 -0400

    Get rid of unused wkt function and const  - quieting more gittie complaints. References #4734 for PostGIS 3.1.0

diff --git a/raster/test/cunit/cu_gdal.c b/raster/test/cunit/cu_gdal.c
index 680c262..becb9e1 100644
--- a/raster/test/cunit/cu_gdal.c
+++ b/raster/test/cunit/cu_gdal.c
@@ -98,16 +98,6 @@ static void test_gdal_rasterize() {
 	cu_free_raster(raster);
 }
 
-static char *
-lwgeom_to_text(const LWGEOM *lwgeom) {
-	char *wkt;
-	size_t wkt_size;
-
-	wkt = lwgeom_to_wkt(lwgeom, WKT_ISO, DBL_DIG, &wkt_size);
-
-	return wkt;
-}
-
 static rt_raster fillRasterToPolygonize(int hasnodata, double nodataval) {
 	rt_band band = NULL;
 	rt_pixtype pixtype = PT_32BF;
@@ -189,12 +179,12 @@ static void test_gdal_polygonize() {
 	CU_ASSERT_DOUBLE_EQUAL(lwgeom_area(gobserved), lwgeom_area(gexpected), FLT_EPSILON );
 
 	CU_ASSERT_DOUBLE_EQUAL(gv[2].val, 2.8, FLT_EPSILON);
-	gobserved = (const LWGEOM *)gv[2].geom;
+	gobserved = (LWGEOM *)gv[2].geom;
 	gexpected = lwgeom_from_wkt("POLYGON((5 1,5 3,6 3,6 6,5 6,5 8,6 8,6 7,7 7,7 6,8 6,8 3,7 3,7 2,6 2,6 1,5 1))",
 				    LW_PARSER_CHECK_NONE);
 	CU_ASSERT_DOUBLE_EQUAL(lwgeom_area(gobserved), lwgeom_area(gexpected), FLT_EPSILON);
 
-	gobserved = (const LWGEOM *)gv[3].geom;
+	gobserved = (LWGEOM *)gv[3].geom;
 	gexpected = lwgeom_from_wkt(
 	    "POLYGON((0 0,0 9,9 9,9 0,0 0),(6 7,6 8,3 8,3 7,2 7,2 6,1 6,1 3,2 3,2 2,3 2,3 1,6 1,6 2,7 2,7 3,8 3,8 6,7 6,7 7,6 7))",
 	    LW_PARSER_CHECK_NONE);
@@ -231,7 +221,7 @@ static void test_gdal_polygonize() {
 	//rtdealloc(wkt);
 
 	CU_ASSERT_DOUBLE_EQUAL(gv[2].val, 2.8, FLT_EPSILON);
-	gobserved = (const LWGEOM *)gv[2].geom;
+	gobserved = (LWGEOM *)gv[2].geom;
 	gexpected = lwgeom_from_wkt("POLYGON((5 1,5 3,6 3,6 6,5 6,5 8,6 8,6 7,7 7,7 6,8 6,8 3,7 3,7 2,6 2,6 1,5 1))",
 				    LW_PARSER_CHECK_NONE);
 	CU_ASSERT_DOUBLE_EQUAL(lwgeom_area(gobserved), lwgeom_area(gexpected), FLT_EPSILON);
@@ -240,7 +230,7 @@ static void test_gdal_polygonize() {
 	//rtdealloc(wkt);
 
 	CU_ASSERT_DOUBLE_EQUAL(gv[3].val, 0.0, FLT_EPSILON);
-	gobserved = (const LWGEOM *)gv[3].geom;
+	gobserved = (LWGEOM *)gv[3].geom;
 	gexpected = lwgeom_from_wkt(
 	    "POLYGON((0 0,0 9,9 9,9 0,0 0),(6 7,6 8,3 8,3 7,2 7,2 6,1 6,1 3,2 3,2 2,3 2,3 1,6 1,6 2,7 2,7 3,8 3,8 6,7 6,7 7,6 7))",
 	    LW_PARSER_CHECK_NONE);

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

Summary of changes:
 raster/test/cunit/cu_gdal.c | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list