|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.filter.v0_5.impl.BaseDatasetReader
public abstract class BaseDatasetReader
Provides common behaviour between dataset reader implementations.
| Constructor Summary | |
|---|---|
BaseDatasetReader()
|
|
| Method Summary | |
|---|---|
protected abstract ReleasableIterator<java.lang.Long> |
getNodeIdsForTileRange(int minimumTile,
int maximumTile)
Returns all nodes that are contained within the specified tile range. |
protected abstract ReleasableIterator<java.lang.Long> |
getRelationIdsOwningNode(long nodeId)
Returns all relations that contain the specified node. |
protected abstract ReleasableIterator<java.lang.Long> |
getRelationIdsOwningRelation(long relationId)
Returns all relations that contain the specified relation. |
protected abstract ReleasableIterator<java.lang.Long> |
getRelationIdsOwningWay(long wayId)
Returns all relations that contain the specified way. |
protected abstract ReleasableIterator<java.lang.Long> |
getWayIdsForTileRange(int minimumTile,
int maximumTile)
Returns all ways that are contained within the specified tile range. |
protected abstract ReleasableIterator<java.lang.Long> |
getWayIdsOwningNode(long nodeId)
Returns all ways that contain the specified node. |
protected abstract boolean |
isTileWayIndexAvailable()
Indicates if a tile index is available for ways or if a node to way index must be used instead. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openstreetmap.osmosis.core.container.v0_5.DatasetReader |
|---|
getNode, getRelation, getWay, iterate |
| Methods inherited from interface org.openstreetmap.osmosis.core.lifecycle.Releasable |
|---|
release |
| Constructor Detail |
|---|
public BaseDatasetReader()
| Method Detail |
|---|
protected abstract boolean isTileWayIndexAvailable()
protected abstract ReleasableIterator<java.lang.Long> getNodeIdsForTileRange(int minimumTile,
int maximumTile)
minimumTile - The minimum tile to match.maximumTile - The maximum tile to match.
protected abstract ReleasableIterator<java.lang.Long> getWayIdsForTileRange(int minimumTile,
int maximumTile)
minimumTile - The minimum tile to match.maximumTile - The maximum tile to match.
protected abstract ReleasableIterator<java.lang.Long> getWayIdsOwningNode(long nodeId)
nodeId - The node for which to retrieve parent ways.
protected abstract ReleasableIterator<java.lang.Long> getRelationIdsOwningNode(long nodeId)
nodeId - The node for which to retrieve parent relations.
protected abstract ReleasableIterator<java.lang.Long> getRelationIdsOwningWay(long wayId)
wayId - The way for which to retrieve parent relations.
protected abstract ReleasableIterator<java.lang.Long> getRelationIdsOwningRelation(long relationId)
relationId - The relation for which to retrieve parent relations.
public ReleasableIterator<EntityContainer> iterateBoundingBox(double left,
double right,
double top,
double bottom,
boolean completeWays)
iterateBoundingBox in interface DatasetReaderleft - 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 | ||||||||