]> granicus.if.org Git - postgis/commitdiff
bbox only bother about external ring. add the related cunit test
authorOlivier Courtin <olivier.courtin@camptocamp.com>
Mon, 22 Feb 2010 15:37:09 +0000 (15:37 +0000)
committerOlivier Courtin <olivier.courtin@camptocamp.com>
Mon, 22 Feb 2010 15:37:09 +0000 (15:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5285 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_out_geojson.c

index 0c28786cd92ac062181f8f149bb38781b7d9a72b..3cce6fe12d2b0dd48254f202907ccaaabb6e2e0d 100644 (file)
@@ -211,13 +211,11 @@ void out_geojson_test_bbox(void)
            "{\"type\":\"Polygon\",\"bbox\":[0,1,4,5],\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]]]}",
            NULL, 0, 1);
 
-#if 0
        /* Polygon - with internal ring */
        do_geojson_test(
            "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
-           "{\"type\":\"Polygon\",\"bbox\":[0,1,10,11],\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]],[[6,7],[8,9],[10,11],[6,7]]]}",
+           "{\"type\":\"Polygon\",\"bbox\":[0,1,4,5],\"coordinates\":[[[0,1],[2,3],[4,5],[0,1]],[[6,7],[8,9],[10,11],[6,7]]]}",
            NULL, 0, 1);
-#endif
 
        /* Multiline */
        do_geojson_test(