[geos-commits] r3175 - trunk/src/geom

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Feb 3 03:15:08 EST 2011


Author: strk
Date: 2011-02-03 00:15:08 -0800 (Thu, 03 Feb 2011)
New Revision: 3175

Modified:
   trunk/src/geom/GeometryFactory.cpp
Log:
Oops.. fix the newly added interface to create MultiPoint from a vector of coordinates

Modified: trunk/src/geom/GeometryFactory.cpp
===================================================================
--- trunk/src/geom/GeometryFactory.cpp	2011-02-02 19:24:03 UTC (rev 3174)
+++ trunk/src/geom/GeometryFactory.cpp	2011-02-03 08:15:08 UTC (rev 3175)
@@ -482,11 +482,11 @@
 MultiPoint*
 GeometryFactory::createMultiPoint(const std::vector<Coordinate> &fromCoords) const
 {
-	size_t npts=fromCoords.getSize();
+	size_t npts=fromCoords.size();
 	vector<Geometry *> *pts=new vector<Geometry *>;
 	pts->reserve(npts);
 	for (size_t i=0; i<npts; ++i) {
-		Point *pt=createPoint(fromCoords.getAt(i));
+		Point *pt=createPoint(fromCoords[i]);
 		pts->push_back(pt);
 	}
 	MultiPoint *mp = NULL;



More information about the geos-commits mailing list