Class LineStringPairAverage
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.algo.line.LineStringPairAverage
-
public class LineStringPairAverage extends Object
Build a line representing the average of two lines. This can be usefull when both lines are very similar and an aggregated version is needed. It is simpler than computing a squeletton based central line. The line similarity can be found with the hausdorf distance or (if both have same initial/final points) with surface elongation measure (Elongation.getWidthApproximation).- Author:
- julien Gaffuri
-
-
Constructor Summary
Constructors Constructor Description LineStringPairAverage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.Coordinate[]
get(org.locationtech.jts.geom.Coordinate[] cs1, double d1, org.locationtech.jts.geom.Coordinate[] cs2, double d2, double weight)
static org.locationtech.jts.geom.LineString
get(org.locationtech.jts.geom.LineString ls1, org.locationtech.jts.geom.LineString ls2)
static org.locationtech.jts.geom.LineString
get(org.locationtech.jts.geom.LineString ls1, org.locationtech.jts.geom.LineString ls2, double weight)
-
-
-
Method Detail
-
get
public static org.locationtech.jts.geom.LineString get(org.locationtech.jts.geom.LineString ls1, org.locationtech.jts.geom.LineString ls2)
-
get
public static org.locationtech.jts.geom.LineString get(org.locationtech.jts.geom.LineString ls1, org.locationtech.jts.geom.LineString ls2, double weight)
-
get
public static org.locationtech.jts.geom.Coordinate[] get(org.locationtech.jts.geom.Coordinate[] cs1, double d1, org.locationtech.jts.geom.Coordinate[] cs2, double d2, double weight)
-
-