Package org.mapsforge.poi.writer.osmosis
Class PoiWriterTask
- java.lang.Object
-
- org.mapsforge.poi.writer.osmosis.PoiWriterTask
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.openstreetmap.osmosis.core.lifecycle.Closeable,org.openstreetmap.osmosis.core.lifecycle.Completable,org.openstreetmap.osmosis.core.task.common.Task,org.openstreetmap.osmosis.core.task.v0_6.Initializable,org.openstreetmap.osmosis.core.task.v0_6.Sink
public class PoiWriterTask extends java.lang.Object implements org.openstreetmap.osmosis.core.task.v0_6.SinkThis task reads entities from an OSM stream and writes them to a SQLite database. Entities can be filtered and grouped by categories by using an XML definition.
-
-
Constructor Summary
Constructors Constructor Description PoiWriterTask(PoiWriterConfiguration configuration, ProgressManager progressManager)Writes all entities that can be mapped to a specific category and which category is in a given whitelist to a SQLite database.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcomplete()voidinitialize(java.util.Map<java.lang.String,java.lang.Object> metadata)voidprocess(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entityContainer)
-
-
-
Constructor Detail
-
PoiWriterTask
public PoiWriterTask(PoiWriterConfiguration configuration, ProgressManager progressManager)
Writes all entities that can be mapped to a specific category and which category is in a given whitelist to a SQLite database. The category tree and tag mappings are retrieved from an XML file.- Parameters:
configuration- Configuration for the POI writer.progressManager- Object that sends progress messages to a GUI.
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.openstreetmap.osmosis.core.lifecycle.Closeable
-
complete
public void complete()
- Specified by:
completein interfaceorg.openstreetmap.osmosis.core.lifecycle.Completable
-
initialize
public void initialize(java.util.Map<java.lang.String,java.lang.Object> metadata)
- Specified by:
initializein interfaceorg.openstreetmap.osmosis.core.task.v0_6.Initializable
-
process
public void process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entityContainer)
- Specified by:
processin interfaceorg.openstreetmap.osmosis.core.task.v0_6.Sink
-
-