Added names to nautical locks
This commit is contained in:
parent
4dac033eae
commit
cc09923870
2 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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$
|
||||
|
|
Loading…
Reference in a new issue