public class CaseBasedBicycleSafetyFeatureConverter extends Object implements SimpleFeatureConverter<P2<Double>>
Constructor and Description |
---|
CaseBasedBicycleSafetyFeatureConverter() |
CaseBasedBicycleSafetyFeatureConverter(String safetyAttributeName,
String directionAttributeName) |
Modifier and Type | Method and Description |
---|---|
void |
addDirection(String attributeValue,
Integer direction) |
void |
addSafety(String attributeValue,
Double safety) |
P2<Double> |
convert(org.opengis.feature.simple.SimpleFeature feature) |
void |
setDirection(Map<String,String> directionValues)
Maps the direction value to a number representing the direction that the bike safety feature
goes.
|
void |
setDirectionAttributeName(String directionAttributeName) |
void |
setSafety(Map<String,String> safetyValues) |
void |
setSafetyAttributeName(String safetyAttributeName) |
public CaseBasedBicycleSafetyFeatureConverter(String safetyAttributeName, String directionAttributeName)
public CaseBasedBicycleSafetyFeatureConverter()
public P2<Double> convert(org.opengis.feature.simple.SimpleFeature feature)
convert
in interface SimpleFeatureConverter<P2<Double>>
public void setSafetyAttributeName(String safetyAttributeName)
safetyAttributeName
- The name of the attribute used when calculating the feature's safety.public void setDirectionAttributeName(String directionAttributeName)
directionAttributeName
- The name of the attribute used when calculating the direction of the
street/bikelane for which that the safety feature should apply.public void setDirection(Map<String,String> directionValues)
directionValues
- Copyright © 2018. All rights reserved.