public class QueryUtil extends Object
Constructor and Description |
---|
QueryUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
anyMemberContainedIn(Collection<OsmRelation> relations,
TLongSet nodeIds,
TLongSet wayIds) |
static boolean |
anyMemberContainedIn(OsmRelation relation,
TLongSet nodeIds,
TLongSet wayIds) |
static boolean |
anyNodeContainedIn(OsmWay way,
TLongSet nodeIds) |
static void |
putNodes(OsmRelation relation,
TLongObjectMap<OsmNode> nodes,
OsmEntityProvider entityProvider)
Retrieve all nodes directly referenced by the specified relation from the
entityProvider and insert them into the map.
|
static void |
putNodes(OsmRelation relation,
TLongObjectMap<OsmNode> nodes,
OsmEntityProvider entityProvider,
TLongSet nodeIds,
MissingEntityCounter counter)
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 way,
TLongObjectMap<OsmNode> nodes,
OsmEntityProvider entityProvider)
Retrieve all nodes of the specified way from the entityProvider and
insert them into the map.
|
static void |
putNodes(OsmWay way,
TLongObjectMap<OsmNode> nodes,
OsmEntityProvider entityProvider,
TLongSet nodeIds)
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 relation,
TLongObjectMap<OsmWay> ways,
OsmEntityProvider entityProvider,
TLongSet wayIds)
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 relation,
TLongObjectMap<OsmNode> nodes,
TLongObjectMap<OsmWay> ways,
OsmEntityProvider entityProvider)
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 relation,
TLongObjectMap<OsmNode> nodes,
TLongObjectMap<OsmWay> ways,
OsmEntityProvider entityProvider,
TLongSet wayIds,
MissingEntityCounter counter)
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<OsmNode> map,
OsmOutputStream osmOutput) |
static void |
writeRelations(TLongObjectMap<OsmRelation> map,
OsmOutputStream osmOutput) |
static void |
writeWays(TLongObjectMap<OsmWay> map,
OsmOutputStream osmOutput) |
public static int putNodes(OsmWay way, 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(OsmWay way, 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(OsmRelation relation, 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(OsmRelation relation, 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(OsmRelation relation, 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(OsmRelation relation, 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(OsmRelation relation, 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(OsmRelation relation, TLongSet nodeIds, TLongSet wayIds)
public static boolean anyMemberContainedIn(Collection<OsmRelation> relations, TLongSet nodeIds, TLongSet wayIds)