public class GeneralisedSection extends ResultLine
ResultLine.Tags
Modifier and Type | Field and Description |
---|---|
(package private) NodeMatch |
currentMatch |
(package private) SourceNode |
currentNode1 |
(package private) SourceNode |
currentNode2 |
(package private) static double |
MIN_LENGTH |
LinkedList<SourceNode> |
originalNodes |
LinkedList<SourceSegment> |
originalSegments |
(package private) HighwayType |
osmHighway |
(package private) String |
osmRef |
(package private) SourceSegment |
segment1 |
(package private) boolean |
segment1Aligned |
(package private) SourceSegment |
segment2 |
(package private) boolean |
segment2Aligned |
valid
highwayRef, highwayType, tags
modCount
Constructor and Description |
---|
GeneralisedSection(NodeGraph graph,
NodeMatch startMatch,
SourceNode startNode) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
advance1(SourceNode nextNode1) |
(package private) void |
advance2(SourceNode nextNode2) |
protected void |
relocateGeneralisedNodes()
Fix topology after generalisation.
|
id, length, valid
add, addFirst, addLast, coordinates, dataset, end, get, mutable, ref, remove, set, set, size, start, tags, type
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
static double MIN_LENGTH
public LinkedList<SourceSegment> originalSegments
public LinkedList<SourceNode> originalNodes
HighwayType osmHighway
String osmRef
SourceSegment segment1
SourceSegment segment2
boolean segment1Aligned
boolean segment2Aligned
SourceNode currentNode1
SourceNode currentNode2
NodeMatch currentMatch
GeneralisedSection(NodeGraph graph, NodeMatch startMatch, SourceNode startNode)
void advance1(SourceNode nextNode1)
void advance2(SourceNode nextNode2)
protected void relocateGeneralisedNodes()
ResultLine
Note that this method is possibly a misnomer: The nodes relocated are those that were previously affected by a generalisation process insofar as some of the lines that were using these nodes have been generalised. Nodes created in the generalisation process are not relocated.
relocateGeneralisedNodes
in class ResultLine