Ignore:
Timestamp:
2012-09-17T10:38:31+02:00 (12 years ago)
Author:
larry0ua
Message:

'RelToolbox: update validations for boundary fixer - label role'

Location:
applications/editors/josm/plugins/reltoolbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/build.xml

    r28710 r28720  
    3030<project name="reltoolbox" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="RelToolbox: update validations for associatedStreet"/>
     32    <property name="commit.message" value="RelToolbox: update validations for boundary fixer - label role"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3434    <property name="plugin.main.version" value="5018"/>
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/BoundaryFixer.java

    r28703 r28720  
    7878                Node n = (Node)m.getMember();
    7979                if( !n.isIncomplete() ) {
    80                     if( n.hasKey("place") )
    81                         role = "admin_centre";
    82                     else
     80                    if( n.hasKey("place") ) {
     81                        String place = n.get("place");
     82                        if (place.equals("state") || place.equals("country") ||
     83                                place.equals("county") || place.equals("region")) {
     84                            role = "label";
     85                        } else {
     86                            role = "admin_centre";
     87                        }
     88                    } else
    8389                        role = "label";
    8490                }
Note: See TracChangeset for help on using the changeset viewer.