From f3ce15d6f8c955f20b84dbf11f2ce7341b46fe88 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 28 Sep 2004 09:31:12 +0000 Subject: [PATCH] Fixed a bug in PostGIS2GEOS_point git-svn-id: http://svn.osgeo.org/postgis/trunk@905 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_geos_wrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.40.0