Ignore:
Timestamp:
2009-02-05T01:00:53+01:00 (17 years ago)
Author:
pieren
Message:

Add municipality boundary import from SVG data delivered by cadastre WMS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java

    r13497 r13545  
    6464 *                 - minor fixes due to changes in JOSM core classes
    6565 *                 - first draft of raster image support
    66  * 0.9 draft       - grab vectorized full commune bbox and save it in cache
     66 * 0.9 05-Feb-2009 - grab vectorized full commune bbox, save in file, convert to OSM way
     67 *                   and simplify
    6768 */
    6869public class CadastrePlugin extends Plugin {
     
    151152            JMenuItem menuLambertZone = new JMenuItem(new MenuActionLambertZone());
    152153            JMenuItem menuLoadFromCache = new JMenuItem(new MenuActionLoadFromCache());
     154            JMenuItem menuActionBoundaries = new JMenuItem(new MenuActionBoundaries());
    153155           
    154156            cadastreJMenu.add(menuGrab);
     
    158160            cadastreJMenu.add(menuLambertZone);
    159161            cadastreJMenu.add(menuLoadFromCache);
     162            cadastreJMenu.add(menuActionBoundaries);
    160163        }
    161164        setEnabledAll(menuEnabled);
     
    187190            JMenuItem item = cadastreJMenu.getItem(i);
    188191            if (item != null)
    189                 if (item.getText().equals(MenuActionGrab.name))
     192                if (item.getText().equals(MenuActionGrab.name) ||
     193                    item.getText().equals(MenuActionBoundaries.name)) {
    190194                    item.setEnabled(isEnabled);
    191                 else if (item.getText().equals(MenuActionLambertZone.name))
     195                } else if (item.getText().equals(MenuActionLambertZone.name)) {
    192196                    item.setEnabled(!isEnabled);
     197                }
    193198        }
    194199        menuEnabled = isEnabled;
Note: See TracChangeset for help on using the changeset viewer.