[geos-commits] r2325 - trunk/source/headers/geos/noding
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed Apr 8 09:02:06 EDT 2009
Author: strk
Date: 2009-04-08 09:02:06 -0400 (Wed, 08 Apr 2009)
New Revision: 2325
Modified:
trunk/source/headers/geos/noding/SegmentStringUtil.h
Log:
Improve documentation about memory usage for SegmentStringUtil class
Modified: trunk/source/headers/geos/noding/SegmentStringUtil.h
===================================================================
--- trunk/source/headers/geos/noding/SegmentStringUtil.h 2009-04-08 12:58:31 UTC (rev 2324)
+++ trunk/source/headers/geos/noding/SegmentStringUtil.h 2009-04-08 13:02:06 UTC (rev 2325)
@@ -47,7 +47,14 @@
* @param geom the geometry to extract from
* @param segStr a List of SegmentStrings (output parameter).
* Ownership of elements pushed to the vector
- * is transferred to caller.
+ * is transferred to caller. Note that the
+ * CoordinateSequence associated with the
+ * returned SegmentString elements are allocated
+ * by this function, so must also be destroyed
+ * by caller.
+ * TODO: check if this can be optimized by leaving
+ * ownership of actual CoordinateSequence
+ * to the passed Geometry.
*/
static void extractSegmentStrings(const geom::Geometry * g,
SegmentString::ConstVect& segStr)
More information about the geos-commits
mailing list