public class QueryUtil extends Object
| Constructor and Description |
|---|
QueryUtil()
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
anyMemberContainedIn(Collection
|
static boolean |
anyMemberContainedIn(OsmRelation
|
static boolean |
anyNodeContainedIn(OsmWay
|
static void |
putNodes(OsmRelation
Retrieve all nodes directly referenced by the specified relation from the entityProvider and insert them into the map.
|
static void |
putNodes(OsmRelation
Retrieve all nodes directly referenced by the specified relation from the entityProvider and insert them into the map if they are not already present in the specified set of identifiers.
|
static int |
putNodes(OsmWay
Retrieve all nodes of the specified way from the entityProvider and insert them into the map.
|
static void |
putNodes(OsmWay
Retrieve all nodes of the specified way from the entityProvider and insert them into the map if they are not already present in the specified set of identifiers.
|
static void |
putWays(OsmRelation
Retrieve all ways directly referenced by the specified relation from the entityProvider and insert them into the map if they are not already present in the specified set of identifiers.
|
static void |
putWaysAndWayNodes(OsmRelation
Retrieve all ways directly referenced by the specified relation and the nodes referenced by those ways from the entityProvider and insert them into the maps.
|
static void |
putWaysAndWayNodes(OsmRelation
Retrieve all ways directly referenced by the specified relation and the nodes referenced by those ways from the entityProvider and insert them into the maps if they are not already present in the specified sets of identifiers.
|
static void |
writeNodes(TLongObjectMap
|
static void |
writeRelations(TLongObjectMap
|
static void |
writeWays(TLongObjectMap
|
public static int putNodes(OsmWayway, TLongObjectMap <OsmNode > nodes, OsmEntityProvider entityProvider)
way - the way to retrieve nodes for.
nodes - the map to put found nodes into.
entityProvider - the store to query for nodes.
public static void putNodes(OsmWayway, TLongObjectMap <OsmNode > nodes, OsmEntityProvider entityProvider, TLongSet nodeIds) throws EntityNotFoundException
way - the way to retrieve nodes for.
nodes - the map to put found nodes into.
entityProvider - the store to query for nodes.
nodeIds - the set of identifiers to check for existing nodes.
EntityNotFoundException -
public static void putNodes(OsmRelationrelation, TLongObjectMap <OsmNode > nodes, OsmEntityProvider entityProvider) throws EntityNotFoundException
relation - the relation to retrieve nodes for.
nodes - the map to put found nodes into.
entityProvider - the store to query for nodes.
EntityNotFoundException -
public static void putNodes(OsmRelationrelation, TLongObjectMap <OsmNode > nodes, OsmEntityProvider entityProvider, TLongSet nodeIds, MissingEntityCounter counter)
relation - the relation to retrieve nodes for.
nodes - the map to put found nodes into.
entityProvider - the store to query for nodes.
nodeIds - the set of identifiers to check for existing nodes.
counter -
public static void putWays(OsmRelationrelation, TLongObjectMap <OsmWay > ways, OsmEntityProvider entityProvider, TLongSet wayIds) throws EntityNotFoundException
relation - the relation to retrieve ways for.
ways - the map to put found ways into.
entityProvider - the store to query for ways.
wayIds - the set of identifiers to check for existing ways.
EntityNotFoundException -
public static void putWaysAndWayNodes(OsmRelationrelation, TLongObjectMap <OsmNode > nodes, TLongObjectMap <OsmWay > ways, OsmEntityProvider entityProvider) throws EntityNotFoundException
relation - the relation to retrieve ways and way-nodes for.
nodes - the map to put found way-nodes into.
ways - the map to put found ways into.
entityProvider - the store to query for ways and nodes.
EntityNotFoundException -
public static void putWaysAndWayNodes(OsmRelationrelation, TLongObjectMap <OsmNode > nodes, TLongObjectMap <OsmWay > ways, OsmEntityProvider entityProvider, TLongSet wayIds, MissingEntityCounter counter)
relation - the relation to retrieve ways and way-nodes for.
nodes - the map to put found way-nodes into.
ways - the map to put found ways into.
entityProvider - the store to query for ways and nodes.
wayIds - the set of identifiers to check for existing ways.
counter -
public static void writeNodes(TLongObjectMap<OsmNode > map, OsmOutputStream osmOutput) throws IOException
IOException
public static void writeWays(TLongObjectMap<OsmWay > map, OsmOutputStream osmOutput) throws IOException
IOException
public static void writeRelations(TLongObjectMap<OsmRelation > map, OsmOutputStream osmOutput) throws IOException
IOException
public static boolean anyMemberContainedIn(OsmRelationrelation, TLongSet nodeIds, TLongSet wayIds)
public static boolean anyMemberContainedIn(Collection<OsmRelation > relations, TLongSet nodeIds, TLongSet wayIds)