|
|||||||||
| 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.AreaFilter
public abstract class AreaFilter
A base class for all tasks filter entities within an area.
| Constructor Summary | |
|---|---|
AreaFilter(IdTrackerType idTrackerType,
boolean completeWays,
boolean completeRelations)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
complete()
Ensures that all information is fully persisted. |
protected abstract boolean |
isNodeWithinArea(Node node)
Indicates if the node lies within the area required. |
void |
process(BoundContainer boundContainer)
Process the bound. |
void |
process(EntityContainer entityContainer)
Process the entity. |
void |
process(NodeContainer container)
Process the node. |
void |
process(RelationContainer container)
Process the relation. |
void |
process(WayContainer container)
Process the way. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
setSink(Sink sink)
Sets the osm sink to send data to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AreaFilter(IdTrackerType idTrackerType,
boolean completeWays,
boolean completeRelations)
idTrackerType - Defines the id tracker implementation to use.completeWays - Include all nodes for ways which have at least one node inside
the filtered area.completeRelations - Include all relations referenced by other relations which have
members inside the filtered area.| Method Detail |
|---|
public void process(EntityContainer entityContainer)
process in interface SinkentityContainer - The entity to be processed.public void process(BoundContainer boundContainer)
process in interface EntityProcessorboundContainer - The bound to be processed.protected abstract boolean isNodeWithinArea(Node node)
node - The node to be checked.
public void process(NodeContainer container)
process in interface EntityProcessorcontainer - The node to be processed.public void process(WayContainer container)
process in interface EntityProcessorcontainer - The way to be processed.public void process(RelationContainer container)
process in interface EntityProcessorcontainer - The relation to be processed.public void complete()
complete in interface Completablepublic void release()
release in interface Releasablepublic void setSink(Sink sink)
setSink in interface Sourcesink - The sink for receiving all produced data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||