public final class MatchDistance extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
maxDistance(LineString a,
LineString b)
Computes the maximum distance apart between two linestrings.
|
static double |
nearnessFraction(LineString a,
LineString b,
double tolerance)
Computes the fraction of length of LineStrings which is within a given
tolerance value, after trimming.
|
static double |
nearnessFraction(LineString a,
LineString b,
double tolerance,
boolean trimLines)
Computes the fraction of length of LineStrings which is within a given
tolerance value, after trimming.
|
static double |
nearnessFraction(LineString a,
LineString b,
double maxDistance,
double tolerance,
boolean trimLines)
Computes the fraction of length of matched LineStrings which is nearer than
a given tolerance value (optionally after trimming).
|
static double |
trimmedDistance(LineString a,
LineString b)
Computes how far apart are two linestrings after trimming any unmatched
length at the ends.
|
public static double maxDistance(LineString a, LineString b)
a - b - public static double nearnessFraction(LineString a, LineString b, double tolerance)
a - a LineStringb - a LineStringfullDistance - the full distance between the lines (previously
computed)tolerance - the distance beyond which to total the lengthpublic static double nearnessFraction(LineString a, LineString b, double tolerance, boolean trimLines)
a - a LineStringb - a LineStringtolerance - the distance beyond which to total the lengthtrimLines - true if the computation should take the
trimmed lines into accountpublic static double nearnessFraction(LineString a, LineString b, double maxDistance, double tolerance, boolean trimLines)
a - a LineStringb - a LineStringmaxDistance - the maximum distance between the lines (if previously
computed)tolerance - the distance beyond which to total the lengthtrimLines - true if the computation should take the
trimmed lines into accountpublic static double trimmedDistance(LineString a, LineString b)
a - b - MaximalNearestSublineCopyright © 2015 Revolution Systems Inc.. All rights reserved.