From: Sandro Santilli Date: Wed, 11 Oct 2006 10:00:24 +0000 (+0000) Subject: Fixed a bug in InsertLineStringWKT, also fixed some typos X-Git-Tag: 1.1.5~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40750750a85eff43454ef246ed22c84e5e2b819d;p=postgis Fixed a bug in InsertLineStringWKT, also fixed some typos git-svn-id: http://svn.osgeo.org/postgis/trunk@2504 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 973a1f4c2..7cb4db9fe 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -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); }