public class RelationUtil extends Object
| Constructor and Description |
|---|
RelationUtil()
|
| Modifier and Type | Method and Description |
|---|---|
static List |
buildRings(MultiSet
Given a set of ways and their head's and tail's in the wayTailMap, construct valid rings by combining ways with same tail-ids.
|
static CountingMultiValMap |
buildWayTailMap(MultiSet
For all ways given, build a multivalmap from node-ids to ways.
|
static void |
checkRings(Collection
For each ring in this collection of rings, check whether it is closed.
|
static void |
closeUnclosedRingWithStraightLine(Collection
|
static void |
convertToSegmentChainsAndResolveNodeIntersections(List
|
static List |
convertToSegmentRings(List
|
public static List<ChainOfWays > buildRings(MultiSet <OsmWay > ways, CountingMultiValMap <Long ,OsmWay > wayTailMap)
public static CountingMultiValMap<Long ,OsmWay > buildWayTailMap(MultiSet <OsmWay > ways)
public static void checkRings(Collection<ChainOfWays > rings, OsmEntityProvider resolver, MissingEntitiesStrategy missingEntitiesStrategy) throws EntityNotFoundException
missingEntitiesStrategy -
EntityNotFoundException
public static List<ChainOfNodes > convertToSegmentRings(List <ChainOfWays > rings)
public static void closeUnclosedRingWithStraightLine(Collection<ChainOfWays > rings)
public static void convertToSegmentChainsAndResolveNodeIntersections(List<ChainOfWays > chains, List <ChainOfNodes > outRings, List <ChainOfNodes > outNonRings)