From: Sandro Santilli Date: Tue, 28 Sep 2004 09:31:12 +0000 (+0000) Subject: Fixed a bug in PostGIS2GEOS_point X-Git-Tag: pgis_1_0_0RC1~367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3ce15d6f8c955f20b84dbf11f2ce7341b46fe88;p=postgis Fixed a bug in PostGIS2GEOS_point git-svn-id: http://svn.osgeo.org/postgis/trunk@905 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_geos_wrapper.cpp b/lwgeom/lwgeom_geos_wrapper.cpp index 29b86650a..8b3cfb60b 100644 --- a/lwgeom/lwgeom_geos_wrapper.cpp +++ b/lwgeom/lwgeom_geos_wrapper.cpp @@ -221,9 +221,9 @@ Geometry *PostGIS2GEOS_point(const LWPOINT *lwpoint) Coordinate *c; if (is3d) - c = new Coordinate(point->x, point->y); - else c = new Coordinate(point->x, point->y, point->z); + else + c = new Coordinate(point->x, point->y); Geometry *g = geomFactory->createPoint(*c); delete c; if (g==NULL)