Added names to nautical locks

This commit is contained in:
PaulStets 2018-01-11 15:41:28 +02:00
parent 4dac033eae
commit cc09923870
2 changed files with 4 additions and 0 deletions

View file

@ -41,6 +41,9 @@ public class EntityParser {
if (mo.getName().length() == 0) {
mo.setName(mo.getEnName(false));
}
if (mo.getName().length() == 0 && tags.containsKey(OSMTagKey.LOCK_NAME.getValue())) {
mo.setName(tags.get(OSMTagKey.LOCK_NAME.getValue()));
}
if (mo.getLocation() == null) {
LatLon l = null;
if (mo instanceof Building) {

View file

@ -5,6 +5,7 @@ public class OSMSettings {
public enum OSMTagKey {
NAME("name"), //$NON-NLS-1$
NAME_EN("name:en"), //$NON-NLS-1$
LOCK_NAME("lock_name"), //$NON-NLS-1$
// ways
HIGHWAY("highway"), //$NON-NLS-1$