]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in PostGIS2GEOS_point
authorSandro Santilli <strk@keybit.net>
Tue, 28 Sep 2004 09:31:12 +0000 (09:31 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 28 Sep 2004 09:31:12 +0000 (09:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@905 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos_wrapper.cpp

index 29b86650acb8d2198b780e9a76fd6e798845e819..8b3cfb60b43536808102576fd6542781f4966f3e 100644 (file)
@@ -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)