[geos-commits] r3227 - in trunk: include/geos/operation/linemerge src/operation/linemerge

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Feb 21 11:14:18 EST 2011


Author: strk
Date: 2011-02-21 08:14:18 -0800 (Mon, 21 Feb 2011)
New Revision: 3227

Modified:
   trunk/include/geos/operation/linemerge/LineSequencer.h
   trunk/src/operation/linemerge/LineSequencer.cpp
Log:
Sync linemerge::LineSequencer to JTS-1.12

Modified: trunk/include/geos/operation/linemerge/LineSequencer.h
===================================================================
--- trunk/include/geos/operation/linemerge/LineSequencer.h	2011-02-21 14:02:42 UTC (rev 3226)
+++ trunk/include/geos/operation/linemerge/LineSequencer.h	2011-02-21 16:14:18 UTC (rev 3227)
@@ -13,7 +13,7 @@
  *
  **********************************************************************
  *
- * Last port: operation/linemerge/LineSequencer.java rev. 1.6 (JTS-1.10)
+ * Last port: operation/linemerge/LineSequencer.java r320 (JTS-1.12)
  *
  **********************************************************************/
 
@@ -60,7 +60,7 @@
  * The input linestrings may form one or more connected sets.
  * The input linestrings should be correctly noded, or the results may
  * not be what is expected.
- * The output of this method is a single MultiLineString containing the ordered
+ * The computed output is a single MultiLineString containing the ordered
  * linestrings in the sequence.
  * 
  * The sequencing employs the classic <b>Eulerian path</b> graph algorithm.
@@ -176,6 +176,13 @@
 
 public:
 
+	static geom::Geometry* sequence(const geom::Geometry& geom)
+	{
+		LineSequencer sequencer;
+		sequencer.add(geom);
+		return sequencer.getSequencedLineStrings();
+	}
+
 	LineSequencer()
 		:
 		factory(0),

Modified: trunk/src/operation/linemerge/LineSequencer.cpp
===================================================================
--- trunk/src/operation/linemerge/LineSequencer.cpp	2011-02-21 14:02:42 UTC (rev 3226)
+++ trunk/src/operation/linemerge/LineSequencer.cpp	2011-02-21 16:14:18 UTC (rev 3227)
@@ -13,7 +13,7 @@
  *
  **********************************************************************
  *
- * Last port: operation/linemerge/LineSequencer.java rev. 1.6 (JTS-1.10)
+ * Last port: operation/linemerge/LineSequencer.java r320 (JTS-1.12)
  *
  **********************************************************************/
 



More information about the geos-commits mailing list