Add additional tags
This commit is contained in:
parent
f62a349b47
commit
4d91f9b451
3 changed files with 5 additions and 8 deletions
|
@ -290,7 +290,8 @@ public class RenderingRuleProperty {
|
|||
return false;
|
||||
}
|
||||
String val2 = req.getStorage().getStringValue(vl);
|
||||
return val != null && val.equals(val2);
|
||||
return val != null && (val.equals(val2) ||
|
||||
(val2.indexOf(';') != -1 && val2.contains(val+';')));
|
||||
}
|
||||
|
||||
int k = val.indexOf('=');
|
||||
|
|
|
@ -613,7 +613,7 @@ public class RouteResultPreparation {
|
|||
println(msg);
|
||||
|
||||
|
||||
//calculateStatistics(result);
|
||||
// calculateStatistics(result);
|
||||
}
|
||||
|
||||
private void calculateStatistics(List<RouteSegmentResult> result) {
|
||||
|
|
|
@ -352,7 +352,7 @@ public class RouteStatisticsHelper {
|
|||
//String additional = attrName + "=" + attribute;
|
||||
RouteDataObject obj = segment.obj;
|
||||
int[] tps = obj.getTypes();
|
||||
String additional = slopeClass != null ? slopeClass : "";
|
||||
String additional = slopeClass != null ? (slopeClass + ";") : "";
|
||||
for (int k = 0; k < tps.length; k++) {
|
||||
BinaryMapRouteReaderAdapter.RouteTypeRule tp = obj.region.quickGetEncodingRule(tps[k]);
|
||||
if (tp.getTag().equals("highway") || tp.getTag().equals("route") ||
|
||||
|
@ -360,11 +360,7 @@ public class RouteStatisticsHelper {
|
|||
req.setStringFilter(rrs.PROPS.R_TAG, tp.getTag());
|
||||
req.setStringFilter(rrs.PROPS.R_VALUE, tp.getValue());
|
||||
} else {
|
||||
// TODO
|
||||
// if (additional.length() > 0) {
|
||||
// additional += ";";
|
||||
// }
|
||||
// additional += tp.getTag() + "=" + tp.getValue();
|
||||
additional += tp.getTag() + "=" + tp.getValue() + ";";
|
||||
}
|
||||
}
|
||||
req.setStringFilter(rrs.PROPS.R_ADDITIONAL, additional);
|
||||
|
|
Loading…
Reference in a new issue