From: Mark Cave-Ayland Date: Tue, 22 Sep 2009 11:53:47 +0000 (+0000) Subject: Oops - forgot to bump the array indices on the last commit :( X-Git-Tag: 1.5.0b1~484 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=991c2d233f9222577a41cd2420c457d008f29cc9;p=postgis Oops - forgot to bump the array indices on the last commit :( git-svn-id: http://svn.osgeo.org/postgis/trunk@4524 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/g_util.c b/liblwgeom/g_util.c index dbcad8e54..d8e4926be 100644 --- a/liblwgeom/g_util.c +++ b/liblwgeom/g_util.c @@ -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)) {