]> granicus.if.org Git - postgis/commitdiff
Oops - forgot to bump the array indices on the last commit :(
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 22 Sep 2009 11:53:47 +0000 (11:53 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 22 Sep 2009 11:53:47 +0000 (11:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4524 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/g_util.c

index dbcad8e545cb97cd3a2d148beb4aec49110addb2..d8e4926be3f1ff6afcf0173ef16f76c1abcdcc5e 100644 (file)
@@ -27,7 +27,7 @@ struct geomtype_struct
    before it. Otherwise if we search for "POINT" at the top of the
    list we would also match MULTIPOINT, for example. */
 
-struct geomtype_struct geomtype_struct_array[28] = 
+struct geomtype_struct geomtype_struct_array[32] = 
 {
        { "GEOMETRYCOLLECTIONZM", COLLECTIONTYPE, 1, 1 },
        { "GEOMETRYCOLLECTIONZ", COLLECTIONTYPE, 1, 0 },
@@ -128,7 +128,7 @@ int geometry_type_from_string(char *str, int *type, int *z, int *m)
        tmpstr[i - tmpstartpos] = '\0';
 
        /* Now check for the type */
-       for (i = 0; i < 28; i++)
+       for (i = 0; i < 32; i++)
        {
                if (!strcmp(tmpstr, geomtype_struct_array[i].typename))
                {