public class InMemoryMapDataSet extends Object implements OsmEntityProvider
Constructor and Description |
---|
InMemoryMapDataSet() |
Modifier and Type | Method and Description |
---|---|
OsmBounds |
getBounds() |
OsmNode |
getNode(long id)
Get the node with the given id.
|
TLongObjectMap<OsmNode> |
getNodes() |
OsmRelation |
getRelation(long id)
Get the relation with the given id.
|
TLongObjectMap<OsmRelation> |
getRelations() |
OsmWay |
getWay(long id)
Get the way with the given id.
|
TLongObjectMap<OsmWay> |
getWays() |
boolean |
hasBounds() |
void |
setBounds(OsmBounds bounds) |
void |
setNodes(TLongObjectMap<OsmNode> nodes) |
void |
setRelations(TLongObjectMap<OsmRelation> relations) |
void |
setWays(TLongObjectMap<OsmWay> ways) |
public boolean hasBounds()
public OsmBounds getBounds()
public void setBounds(OsmBounds bounds)
public TLongObjectMap<OsmNode> getNodes()
public TLongObjectMap<OsmWay> getWays()
public TLongObjectMap<OsmRelation> getRelations()
public void setNodes(TLongObjectMap<OsmNode> nodes)
nodes
- set the nodes of this dataset to be these.public void setWays(TLongObjectMap<OsmWay> ways)
ways
- set the ways of this dataset to be these.public void setRelations(TLongObjectMap<OsmRelation> relations)
relations
- set the relations of this dataset to be these.public OsmNode getNode(long id) throws EntityNotFoundException
OsmEntityProvider
getNode
in interface OsmEntityProvider
id
- the node's id.EntityNotFoundException
- if the implementation cannot return this entity.public OsmWay getWay(long id) throws EntityNotFoundException
OsmEntityProvider
getWay
in interface OsmEntityProvider
id
- the way's idEntityNotFoundException
- if the implementation cannot return this entity.public OsmRelation getRelation(long id) throws EntityNotFoundException
OsmEntityProvider
getRelation
in interface OsmEntityProvider
id
- the relation's id.EntityNotFoundException
- if the implementation cannot return this entity.