public class ChainOfWays extends Object
Constructor and Description |
---|
ChainOfWays(OsmWay way) |
Modifier and Type | Method and Description |
---|---|
void |
addWay(OsmWay way) |
long |
getFirst() |
long |
getLast() |
int |
getLength() |
List<WaySegment> |
getSegments() |
Set<OsmWay> |
getWaySet() |
boolean |
isClosed() |
boolean |
isValidRing() |
LinearRing |
toLinearRing(OsmEntityProvider resolver) |
LineString |
toLineString(OsmEntityProvider resolver) |
ChainOfNodes |
toSegmentRing() |
public ChainOfWays(OsmWay way)
public boolean isValidRing()
public void addWay(OsmWay way)
public long getFirst()
public long getLast()
public boolean isClosed()
public List<WaySegment> getSegments()
public LineString toLineString(OsmEntityProvider resolver) throws EntityNotFoundException
EntityNotFoundException
public LinearRing toLinearRing(OsmEntityProvider resolver) throws EntityNotFoundException
EntityNotFoundException
public int getLength()
public ChainOfNodes toSegmentRing()