]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in InsertLineStringWKT, also fixed some typos
authorSandro Santilli <strk@keybit.net>
Wed, 11 Oct 2006 10:00:24 +0000 (10:00 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 11 Oct 2006 10:00:24 +0000 (10:00 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2504 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql.c

index 973a1f4c2177fc210885391c3fc6660e4462166e..7cb4db9fec4778230b2ce58f8fab2f45e4e1ee27 100644 (file)
@@ -863,13 +863,14 @@ InsertLineStringWKT(int id)
        if (simple_geometries==0) // We write MULTI geometries, so generate Header 
        {
                printf("MULTILINESTRING(");
-       } else if ((obj->nParts)==1)
+       }
+       else if ((obj->nParts)==1)
        {
-               printf("POLYGON");
+               printf("LINESTRING");
        }
        else // We write Non-MULTI geometries, but have several parts: 
        {
-               fprintf(stderr, "We have a Multipolygon with %d parts, can't use -S switch!\n", obj->nParts);
+               fprintf(stderr, "We have a Multilinestring with %d parts, can't use -S switch!\n", obj->nParts);
                exit(1);                
        }