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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations