public class OSMClassification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
classFile |
(package private) java.lang.String |
classificationSpec |
(package private) OSMFilterFileParser |
filterFileParser |
private java.util.List<OSMFilter> |
filters |
(package private) java.lang.String |
outputDir |
private java.util.Set<java.lang.String> |
tags |
Constructor and Description |
---|
OSMClassification(java.lang.String classSpec,
java.lang.String outDir)
Constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply()
Applies the user-specified filters over OSM tags and creates an intermediate CSV file with the resulting classification
|
java.util.List<OSMFilter> |
getFilters()
Return all filters that will be used to assign categories to OSM elements (nodes, ways, relations).
|
java.util.Set<java.lang.String> |
getTags()
Return all OSM tags specifying the filters
|
OSMFilterFileParser filterFileParser
private java.util.List<OSMFilter> filters
private java.util.Set<java.lang.String> tags
java.lang.String classificationSpec
java.lang.String outputDir
java.lang.String classFile
public OSMClassification(java.lang.String classSpec, java.lang.String outDir)
classSpec
- Path to the YAML file containing the classification.outDir
- Directory that will hold the intermediate representation of the classification scheme, as will be used during transformation.public java.lang.String apply()
public java.util.Set<java.lang.String> getTags()
public java.util.List<OSMFilter> getFilters()