Search in sources :

Example 1 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class MyPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> taskFactories;
    taskFactories = new HashMap<String, TaskManagerFactory>();
    // Register a task under a new name.  We can use an existing task implementation for simplicity.
    taskFactories.put("my-plugin-task", new NullChangeWriterFactory());
    return taskFactories;
}
Also used : TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) NullChangeWriterFactory(org.openstreetmap.osmosis.core.misc.v0_6.NullChangeWriterFactory)

Example 2 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class XmlPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("read-xml", new XmlReaderFactory());
    factoryMap.put("fast-read-xml", new FastXmlReaderFactory());
    factoryMap.put("rx", new XmlReaderFactory());
    factoryMap.put("read-xml-change", new XmlChangeReaderFactory());
    factoryMap.put("upload-xml-change", new XmlChangeUploaderFactory());
    factoryMap.put("rxc", new XmlChangeReaderFactory());
    factoryMap.put("write-xml", new XmlWriterFactory());
    factoryMap.put("wx", new XmlWriterFactory());
    factoryMap.put("write-xml-change", new XmlChangeWriterFactory());
    factoryMap.put("wxc", new XmlChangeWriterFactory());
    factoryMap.put("read-api", new XmlDownloaderFactory());
    factoryMap.put("ra", new XmlDownloaderFactory());
    factoryMap.put("read-xml-0.6", new XmlReaderFactory());
    factoryMap.put("fast-read-xml-0.6", new FastXmlReaderFactory());
    factoryMap.put("read-xml-change-0.6", new XmlChangeReaderFactory());
    factoryMap.put("write-xml-0.6", new XmlWriterFactory());
    factoryMap.put("write-xml-change-0.6", new XmlChangeWriterFactory());
    factoryMap.put("read-api-0.6", new XmlDownloaderFactory());
    return factoryMap;
}
Also used : FastXmlReaderFactory(org.openstreetmap.osmosis.xml.v0_6.FastXmlReaderFactory) XmlReaderFactory(org.openstreetmap.osmosis.xml.v0_6.XmlReaderFactory) XmlWriterFactory(org.openstreetmap.osmosis.xml.v0_6.XmlWriterFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) XmlChangeUploaderFactory(org.openstreetmap.osmosis.xml.v0_6.XmlChangeUploaderFactory) XmlChangeReaderFactory(org.openstreetmap.osmosis.xml.v0_6.XmlChangeReaderFactory) FastXmlReaderFactory(org.openstreetmap.osmosis.xml.v0_6.FastXmlReaderFactory) XmlChangeWriterFactory(org.openstreetmap.osmosis.xml.v0_6.XmlChangeWriterFactory) XmlDownloaderFactory(org.openstreetmap.osmosis.xml.v0_6.XmlDownloaderFactory)

Example 3 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class TagFilterPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("used-node", new UsedNodeFilterFactory());
    factoryMap.put("un", new UsedNodeFilterFactory());
    factoryMap.put("used-way", new UsedWayFilterFactory());
    factoryMap.put("uw", new UsedWayFilterFactory());
    factoryMap.put("tag-filter", new TagFilterFactory());
    factoryMap.put("tf", new TagFilterFactory());
    factoryMap.put("node-key", new NodeKeyFilterFactory());
    factoryMap.put("nk", new NodeKeyFilterFactory());
    factoryMap.put("node-key-value", new NodeKeyValueFilterFactory());
    factoryMap.put("nkv", new NodeKeyValueFilterFactory());
    factoryMap.put("way-key", new WayKeyFilterFactory());
    factoryMap.put("wk", new WayKeyFilterFactory());
    factoryMap.put("way-key-value", new WayKeyValueFilterFactory());
    factoryMap.put("wkv", new WayKeyValueFilterFactory());
    factoryMap.put("used-node-0.6", new UsedNodeFilterFactory());
    factoryMap.put("used-way-0.6", new UsedWayFilterFactory());
    factoryMap.put("tag-filter-0.6", new TagFilterFactory());
    factoryMap.put("node-key-0.6", new NodeKeyFilterFactory());
    factoryMap.put("node-key-value-0.6", new NodeKeyValueFilterFactory());
    factoryMap.put("way-key-0.6", new WayKeyFilterFactory());
    factoryMap.put("way-key-value-0.6", new WayKeyValueFilterFactory());
    factoryMap.put("remove-tags-0.6", new TagRemoverFactory());
    return factoryMap;
}
Also used : TagRemoverFactory(org.openstreetmap.osmosis.tagfilter.v0_6.TagRemoverFactory) TagFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.TagFilterFactory) UsedWayFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.UsedWayFilterFactory) UsedNodeFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.UsedNodeFilterFactory) WayKeyValueFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.WayKeyValueFilterFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) WayKeyFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.WayKeyFilterFactory) NodeKeyValueFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.NodeKeyValueFilterFactory) NodeKeyFilterFactory(org.openstreetmap.osmosis.tagfilter.v0_6.NodeKeyFilterFactory)

Example 4 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class TransformPlugin method loadTaskFactories.

@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    TransformTaskFactory transformFactory = new org.openstreetmap.osmosis.tagtransform.v0_6.TransformTaskFactory();
    TransformChangeTaskFactory changeTransformFactory = new org.openstreetmap.osmosis.tagtransform.v0_6.TransformChangeTaskFactory();
    Map<String, TaskManagerFactory> tasks = new HashMap<String, TaskManagerFactory>();
    tasks.put("tag-transform-0.6", transformFactory);
    tasks.put("tag-transform", transformFactory);
    tasks.put("tt", transformFactory);
    tasks.put("tag-transform-change-0.6", changeTransformFactory);
    tasks.put("tag-transform-change", changeTransformFactory);
    tasks.put("ttc", changeTransformFactory);
    return tasks;
}
Also used : TransformChangeTaskFactory(org.openstreetmap.osmosis.tagtransform.v0_6.TransformChangeTaskFactory) HashMap(java.util.HashMap) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) TransformTaskFactory(org.openstreetmap.osmosis.tagtransform.v0_6.TransformTaskFactory)

Example 5 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class PbfPluginLoader method loadTaskFactories.

@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    PbfReaderFactory reader = new PbfReaderFactory();
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("read-pbf-fast", reader);
    factoryMap.put("rbf", reader);
    factoryMap.put("read-pbf-fast-0.6", reader);
    return factoryMap;
}
Also used : PbfReaderFactory(org.openstreetmap.osmosis.pbf2.v0_6.PbfReaderFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory)

Aggregations

TaskManagerFactory (org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory)15 NullChangeWriterFactory (org.openstreetmap.osmosis.core.misc.v0_6.NullChangeWriterFactory)2 HashMap (java.util.HashMap)1 ApidbChangeReaderFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbChangeReaderFactory)1 ApidbChangeWriterFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbChangeWriterFactory)1 ApidbCurrentReaderFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbCurrentReaderFactory)1 ApidbFileReplicatorFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicatorFactory)1 ApidbReaderFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbReaderFactory)1 ApidbTruncatorFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbTruncatorFactory)1 ApidbWriterFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbWriterFactory)1 BoundingBoxFilterFactory (org.openstreetmap.osmosis.areafilter.v0_6.BoundingBoxFilterFactory)1 PolygonFilterFactory (org.openstreetmap.osmosis.areafilter.v0_6.PolygonFilterFactory)1 BoundComputerFactory (org.openstreetmap.osmosis.core.bound.v0_6.BoundComputerFactory)1 BoundSetterFactory (org.openstreetmap.osmosis.core.bound.v0_6.BoundSetterFactory)1 ChangeBufferFactory (org.openstreetmap.osmosis.core.buffer.v0_6.ChangeBufferFactory)1 EntityBufferFactory (org.openstreetmap.osmosis.core.buffer.v0_6.EntityBufferFactory)1 EmptyChangeReaderFactory (org.openstreetmap.osmosis.core.misc.v0_6.EmptyChangeReaderFactory)1 EmptyReaderFactory (org.openstreetmap.osmosis.core.misc.v0_6.EmptyReaderFactory)1 NullWriterFactory (org.openstreetmap.osmosis.core.misc.v0_6.NullWriterFactory)1 PluginLoader (org.openstreetmap.osmosis.core.plugin.PluginLoader)1