]> granicus.if.org Git - postgis/commitdiff
Use NULL value as default for id on ST_AsGML cunit tests. Related to #1823
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 22 May 2012 12:23:35 +0000 (12:23 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Tue, 22 May 2012 12:23:35 +0000 (12:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9778 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_out_gml.c

index d00c560a6580d70d899ef13ddf619f1b3073376b..3e9ab801501c4e0afd10d318947cfd13c9e457d1 100644 (file)
@@ -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",