From 3db83462ff5c6455d41be812e65db9e2dfb9491e Mon Sep 17 00:00:00 2001 From: Olivier Courtin Date: Tue, 22 May 2012 12:23:35 +0000 Subject: [PATCH] Use NULL value as default for id on ST_AsGML cunit tests. Related to #1823 git-svn-id: http://svn.osgeo.org/postgis/trunk@9778 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/cunit/cu_out_gml.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/liblwgeom/cunit/cu_out_gml.c b/liblwgeom/cunit/cu_out_gml.c index d00c560a6..3e9ab8015 100644 --- a/liblwgeom/cunit/cu_out_gml.c +++ b/liblwgeom/cunit/cu_out_gml.c @@ -59,7 +59,7 @@ static void do_gml3_test_opts(char * in, char * out, char * srs, int precision, char *h; g = lwgeom_from_wkt(in, LW_PARSER_CHECK_NONE); - h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", ""); + h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", NULL); if (strcmp(h, out)) fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out); @@ -78,7 +78,7 @@ static void do_gml3_test(char * in, char * out, char * srs, int precision, int i if ( is_geodetic ) opts |= LW_GML_IS_DEGREE; g = lwgeom_from_wkt(in, LW_PARSER_CHECK_NONE); - h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", ""); + h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", NULL); if (strcmp(h, out)) fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out); @@ -98,7 +98,7 @@ static void do_gml3_test_prefix(char * in, char * out, char * srs, int precision if ( is_geodetic ) opts |= LW_GML_IS_DEGREE; g = lwgeom_from_wkt(in, LW_PARSER_CHECK_NONE); - h = lwgeom_to_gml3(g, srs, precision, opts, prefix, ""); + h = lwgeom_to_gml3(g, srs, precision, opts, prefix, NULL); if (strcmp(h, out)) fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out); @@ -119,7 +119,7 @@ static void do_gml3_test_nodims(char * in, char * out, char * srs, int precision if ( is_dims ) opts |= LW_GML_IS_DIMS; g = lwgeom_from_wkt(in, LW_PARSER_CHECK_NONE); - h = lwgeom_to_gml3(g, srs, precision, opts, prefix, ""); + h = lwgeom_to_gml3(g, srs, precision, opts, prefix, NULL); if (strcmp(h, out)) fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out); @@ -155,7 +155,7 @@ static void do_gml3_unsupported(char * in, char * out) int opts = LW_GML_IS_DIMS; g = lwgeom_from_wkt(in, LW_PARSER_CHECK_NONE); - h = lwgeom_to_gml3(g, NULL, 0, opts, "", ""); + h = lwgeom_to_gml3(g, NULL, 0, opts, "", NULL); if (strcmp(cu_error_msg, out)) fprintf(stderr, "\nGML 3 - In: %s\nOut: %s\nTheo: %s\n", -- 2.40.0