|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatasetContext
Provides access to data within a Dataset. Every thread must access a Dataset through its own reader. A reader must be released after use. It must be completed in order to ensure changes are committed.
Method Summary | |
---|---|
Node |
getNode(long id)
Deprecated. The node manager should be used instead. |
EntityManager<Node> |
getNodeManager()
Returns the manager for manipulating node instances. |
Relation |
getRelation(long id)
Deprecated. The node manager should be used instead. |
EntityManager<Relation> |
getRelationManager()
Returns the manager for manipulating relation instances. |
Way |
getWay(long id)
Deprecated. The node manager should be used instead. |
EntityManager<Way> |
getWayManager()
Returns the manager for manipulating way instances. |
ReleasableIterator<EntityContainer> |
iterate()
Allows the entire dataset to be iterated across. |
ReleasableIterator<EntityContainer> |
iterateBoundingBox(double left,
double right,
double top,
double bottom,
boolean completeWays)
Allows all data within a bounding box to be iterated across. |
Methods inherited from interface org.openstreetmap.osmosis.core.lifecycle.Completable |
---|
complete |
Methods inherited from interface org.openstreetmap.osmosis.core.lifecycle.Releasable |
---|
release |
Method Detail |
---|
EntityManager<Node> getNodeManager()
EntityManager<Way> getWayManager()
EntityManager<Relation> getRelationManager()
@Deprecated Node getNode(long id)
id
- The id of the node.
@Deprecated Way getWay(long id)
id
- The id of the way.
@Deprecated Relation getRelation(long id)
id
- The id of the relation.
ReleasableIterator<EntityContainer> iterate()
ReleasableIterator<EntityContainer> iterateBoundingBox(double left, double right, double top, double bottom, boolean completeWays)
left
- The longitude marking the left edge of the bounding box.right
- The longitude marking the right edge of the bounding box.top
- The latitude marking the top edge of the bounding box.bottom
- The latitude marking the bottom edge of the bounding box.completeWays
- If true, all nodes within the ways will be returned even if
they lie outside the box.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |