Package org.goplanit.osm.test
Class Osm2PlanitConversionTemplates
- java.lang.Object
-
- org.goplanit.osm.test.Osm2PlanitConversionTemplates
-
public class Osm2PlanitConversionTemplates extends Object
some example templates for converting OSM files to Planit network files with various predefined configurations- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description Osm2PlanitConversionTemplates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
osm2PlanitBasicIntermodalNoServices(String inputFile, String outputPath, String countryName)
Template for parsing intermodal road and rail infrastructure of OSM network to PLANit network for your typical assignment but without pedestrian or cyclist infrastructurestatic void
osm2PlanitCarSimple(String inputFile, String outputPath, String countryName, Long... excludedOsmWays)
Template for simple car centric conversion of OSM network to PLANit network, with only the main road types activestatic void
osm2PlanitIntermodalNoServices(OsmIntermodalReaderSettings settings, PlanitIntermodalWriterSettings writerSettings)
Template for parsing intermodal OSM network/infrastructure without any services based on provided settingsstatic void
osm2PlanitNetworkComprehensive(String inputFile, String outputPath, String countryName)
Template for parsing all road, pedestrian, bicycle, and rail infrastructure of OSM network to PLANit network
-
-
-
Method Detail
-
osm2PlanitCarSimple
public static void osm2PlanitCarSimple(String inputFile, String outputPath, String countryName, Long... excludedOsmWays) throws PlanItException
Template for simple car centric conversion of OSM network to PLANit network, with only the main road types active- Parameters:
inputFile
- the input fileoutputPath
- the output dircountryName
- the country nameexcludedOsmWays
- allow to exclude certain ways by id (if any)- Throws:
PlanItException
- thrown if error
-
osm2PlanitNetworkComprehensive
public static void osm2PlanitNetworkComprehensive(String inputFile, String outputPath, String countryName) throws PlanItException
Template for parsing all road, pedestrian, bicycle, and rail infrastructure of OSM network to PLANit network- Parameters:
inputFile
- the input fileoutputPath
- the output pathcountryName
- the country name- Throws:
PlanItException
- thrown if error
-
osm2PlanitBasicIntermodalNoServices
public static void osm2PlanitBasicIntermodalNoServices(String inputFile, String outputPath, String countryName) throws PlanItException
Template for parsing intermodal road and rail infrastructure of OSM network to PLANit network for your typical assignment but without pedestrian or cyclist infrastructure- Parameters:
inputFile
- the input fileoutputPath
- the output pathcountryName
- the country name- Throws:
PlanItException
- thrown if error
-
osm2PlanitIntermodalNoServices
public static void osm2PlanitIntermodalNoServices(OsmIntermodalReaderSettings settings, PlanitIntermodalWriterSettings writerSettings) throws PlanItException
Template for parsing intermodal OSM network/infrastructure without any services based on provided settings- Parameters:
settings
- to usewriterSettings
- to use- Throws:
PlanItException
- thrown if error
-
-