org.geotools.geometry.iso.operation
Class Merger

java.lang.Object
  extended by org.geotools.geometry.iso.operation.Merger

public class Merger
extends java.lang.Object

Merges curves at end points

Author:
Sanjay Dominik Jena

Constructor Summary
Merger(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
           
 
Method Summary
 CurveImpl merge(CurveImpl curve1, CurveImpl curve2)
          Constructs a new Curve by merging this Curve with another Curve The two input curves will not be modified.
 CurveImpl merge(java.util.List<CurveImpl> curves)
          Merges a list of continuous curves into a new single curve.
 CurveImpl merge(java.util.Set<CurveImpl> curves)
          Merges a set of curves into a new single curve.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Merger

public Merger(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Method Detail

merge

public CurveImpl merge(java.util.List<CurveImpl> curves)
Merges a list of continuous curves into a new single curve. In order two neighboured curves are merged, their end and startpoint must be equal.

Parameters:
curves -
Returns:
null or tosses IllegalArgumentException

merge

public CurveImpl merge(java.util.Set<CurveImpl> curves)
Merges a set of curves into a new single curve. This method trys all combinations of curve“s start and end points.

Parameters:
curves -
Returns:
null

merge

public CurveImpl merge(CurveImpl curve1,
                       CurveImpl curve2)
Constructs a new Curve by merging this Curve with another Curve The two input curves will not be modified. There will be no more references to positions or lists of the input curves, all values are copied.

Parameters:
curve1 -
curve2 -
Returns:
new curve


Copyright © 1996-2010 Geotools. All Rights Reserved.