public class NewSink extends Object implements org.openstreetmap.osmosis.core.task.v0_6.Sink
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
NewSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
The complete method removes all Nodes which are not used within any imported way or relation.
|
Network |
getNetwork() |
void |
initialize(Map<String,Object> arg0) |
void |
process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entityContainer) |
void |
release() |
void |
setFilterKeys(List<String> keys)
Set/replace the filter keys.
The provided list is not copied; the caller should not modify the list afterwards. |
void |
setWantedTags(List<Tag> tags)
Set/replace the list of wanted tags.
This method makes a deep copy of the supplied list. |
public void initialize(Map<String,Object> arg0)
initialize in interface org.openstreetmap.osmosis.core.task.v0_6.Initializablepublic final void process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entityContainer)
process in interface org.openstreetmap.osmosis.core.task.v0_6.SinkentityContainer - Nodes: Initially in the process method all nodes are imported. Later on in the complete
method unused nodes are detected and deleted. Ways: All ways which contain the specified wanted Tags
are imported. The imported Tags for the Ways are filtered by the filterKeyspublic void release()
release in interface org.openstreetmap.osmosis.core.lifecycle.Releasablepublic final void complete()
complete in interface org.openstreetmap.osmosis.core.lifecycle.Completablepublic final Network getNetwork()
public final void setWantedTags(List<Tag> tags)
tags - List<Tag>; the list of wanted tagsCopyright © 2014–2015 Delft University of Technology. All rights reserved.