Modifier and Type | Field and Description |
---|---|
static long |
ID_NONEXISTENT |
static long |
ID_UNKNOWN |
Collection<Segment[]> |
parallelFragments |
Constructor and Description |
---|
InputDataset() |
Modifier and Type | Method and Description |
---|---|
Collection<Node> |
allNodes() |
List<SourceSegment> |
allSegments() |
Highway |
createOsmWay(AttributeProvider tags,
int segmentCount)
Create a way in this dataset with no segments.
|
Highway |
createOsmWay(AttributeProvider tags,
List<SourceNode> nodes)
Create a way in this dataset with segments based on a list of nodes.
|
Highway |
createOsmWay(Line line)
Create a way in this dataset with segments based on an existing line.
|
Node |
getNode(Node newNode)
intern
|
Node |
getNodeAtEastingNorthing(double e,
double n)
intern (based on primitives to avoid requiring extra objects)
|
Collection<Segment[]> |
parallelFragments() |
List<Highway> |
ways() |
public static final long ID_UNKNOWN
public static final long ID_NONEXISTENT
public Collection<Segment[]> parallelFragments
public Highway createOsmWay(AttributeProvider tags, int segmentCount)
public Highway createOsmWay(AttributeProvider tags, List<SourceNode> nodes)
public Highway createOsmWay(Line line)
public Node getNodeAtEastingNorthing(double e, double n)
Dataset
getNodeAtEastingNorthing
in interface Dataset
public Collection<Node> allNodes()
public List<SourceSegment> allSegments()
allSegments
in interface Dataset
public Collection<Segment[]> parallelFragments()
parallelFragments
in interface Dataset