|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DatasetReader
Provides access to data within a Dataset. Every thread must access a Dataset through its own reader. A reader must be released after use.
| Method Summary | |
|---|---|
Node |
getNode(long id)
Retrieves a specific node by its identifier. |
Relation |
getRelation(long id)
Retrieves a specific relation by its identifier. |
Way |
getWay(long id)
Retrieves a specific way by its identifier. |
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.Releasable |
|---|
release |
| Method Detail |
|---|
Node getNode(long id)
id - The id of the node.
Way getWay(long id)
id - The id of the way.
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 | ||||||||