
crosby.binary.osmosis.BinaryPluginLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of osmosis-pbf Show documentation
Show all versions of osmosis-pbf Show documentation
Osmosis is a Java application and library for processing OSM data.
// This software is released into the Public Domain. See copying.txt for details.
package crosby.binary.osmosis;
import java.util.HashMap;
import java.util.Map;
import org.openstreetmap.osmosis.core.plugin.PluginLoader;
import org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory;
/** Register the binary reading and writing functions. */
public class BinaryPluginLoader implements PluginLoader {
@Override
public Map loadTaskFactories() {
Map factoryMap;
OsmosisReaderFactory reader = new OsmosisReaderFactory();
OsmosisSerializerFactory writer = new OsmosisSerializerFactory();
factoryMap = new HashMap();
factoryMap.put("read-pbf", reader);
factoryMap.put("read-bin", reader);
factoryMap.put("rb", reader);
factoryMap.put("write-pbf", writer);
factoryMap.put("write-bin", writer);
factoryMap.put("wb", writer);
factoryMap.put("read-pbf-0.6", reader);
factoryMap.put("write-pbf-0.6", writer);
return factoryMap;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy