All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstreetmap.osmosis.dataset.DatasetPluginLoader Maven / Gradle / Ivy

There is a newer version: 0.49.2
Show newest version
// This software is released into the Public Domain.  See copying.txt for details.
package org.openstreetmap.osmosis.dataset;

import java.util.HashMap;
import java.util.Map;

import org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory;
import org.openstreetmap.osmosis.core.plugin.PluginLoader;
import org.openstreetmap.osmosis.dataset.v0_6.DatasetBoundingBoxFilterFactory;
import org.openstreetmap.osmosis.dataset.v0_6.DumpDatasetFactory;
import org.openstreetmap.osmosis.dataset.v0_6.ReadDatasetFactory;
import org.openstreetmap.osmosis.dataset.v0_6.WriteDatasetFactory;


/**
 * The plugin loader for the dataset tasks.
 * 
 * @author Brett Henderson
 */
public class DatasetPluginLoader implements PluginLoader {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Map loadTaskFactories() {
		Map factoryMap;
		
		factoryMap = new HashMap();
		
		factoryMap.put("write-customdb", new WriteDatasetFactory());
		factoryMap.put("wc", new WriteDatasetFactory());
		factoryMap.put("dataset-dump", new DumpDatasetFactory());
		factoryMap.put("dd", new DumpDatasetFactory());
		factoryMap.put("read-customdb", new ReadDatasetFactory());
		factoryMap.put("rc", new ReadDatasetFactory());
		factoryMap.put("dataset-bounding-box", new DatasetBoundingBoxFilterFactory());
		factoryMap.put("dbb", new DatasetBoundingBoxFilterFactory());
		
		factoryMap.put("write-customdb-0.6", new WriteDatasetFactory());
		factoryMap.put("dataset-dump-0.6", new DumpDatasetFactory());
		factoryMap.put("read-customdb-0.6", new ReadDatasetFactory());
		factoryMap.put("dataset-bounding-box-0.6", new DatasetBoundingBoxFilterFactory());
		
		return factoryMap;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy