Ignore:
Timestamp:
2012-03-15T20:29:01+01:00 (13 years ago)
Author:
donvip
Message:

opendata: Le Mans full data support

Location:
applications/editors/josm/plugins/opendata/modules/fr.lemans
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/modules/fr.lemans

    • Property svn:ignore set to
      build
  • applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/LeMansModule.java

    r28088 r28091  
    1919import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation;
    2020import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CantonsSartheHandler;
     21import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CirconscriptionsLegislativesHandler;
     22import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CodesPostauxHandler;
     23import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CommunesHandler;
     24import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.ConseilsQuartiersHandler;
     25import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.PointsApportVolontaireHandler;
    2126import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.ServicesCommunautairesMunicipauxHandler;
    2227
     
    2732                handlers.add(new ServicesCommunautairesMunicipauxHandler());
    2833                handlers.add(new CantonsSartheHandler());
     34                handlers.add(new CommunesHandler());
     35                handlers.add(new CodesPostauxHandler());
     36                handlers.add(new CirconscriptionsLegislativesHandler());
     37                handlers.add(new ConseilsQuartiersHandler());
     38                handlers.add(new PointsApportVolontaireHandler());
    2939    }
    3040}
  • applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/CantonsSartheHandler.java

    r28088 r28091  
    2424                super("F7D936DF-550EA533-37695DD8-29CFF55B");
    2525                setName("Cantons de la Sarthe");
    26                 setCsvKmzShpUuid("62DF4EEF-550EA533-7E7BB44A-45C66201", "62DFCA8F-550EA533-7E7BB44A-7D1AA2D4", "62E017CA-550EA533-7E7BB44A-23772121");
     26                setKmzShpUuid("62DFCA8F-550EA533-7E7BB44A-7D1AA2D4", "62E017CA-550EA533-7E7BB44A-23772121");
    2727        }
    2828
    2929        @Override
    3030        public boolean acceptsFilename(String filename) {
    31                 return acceptsCsvKmzShpFilename(filename, "CANTONS_72") || acceptsZipFilename(filename, "Les cantons de la Sarthe .*");
     31                return acceptsKmzShpFilename(filename, "CANTONS_72") || acceptsZipFilename(filename, "Les cantons de la Sarthe .*");
    3232        }
    3333
  • applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/LeMansDataSetHandler.java

    r28088 r28091  
    3030        private String uuid;
    3131       
    32         private String csvUuid;
    3332        private String kmzUuid;
    3433        private String shpUuid;
     
    6160                this.uuid = uuid;
    6261        }
    63        
    64         protected final void setCsvKmzShpUuid(String csvUuid, String kmzUuid, String shpUuid) {
    65                 this.csvUuid = csvUuid;
     62               
     63        protected final void setKmzShpUuid(String kmzUuid, String shpUuid) {
    6664                this.kmzUuid = kmzUuid;
    6765                this.shpUuid = shpUuid;
     
    107105                List<Pair<String, URL>> result = new ArrayList<Pair<String,URL>>();
    108106                try {
    109                         //if (csvUuid != null && !csvUuid.isEmpty()) result.add(new Pair<String, URL>("CSV", new URL(PORTAL + "download.do?uuid=" + csvUuid)));
    110107                        if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<String, URL>("KMZ", new URL(PORTAL + "download.do?uuid=" + kmzUuid)));
    111108                        if (shpUuid != null && !shpUuid.isEmpty()) result.add(new Pair<String, URL>("SHP", new URL(PORTAL + "download.do?uuid=" + shpUuid)));
  • applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/ServicesCommunautairesMunicipauxHandler.java

    r28088 r28091  
    2424                super("F7F65F15-550EA533-37695DD8-F7A74F05");
    2525                setName("Services communautaires et municipaux");
    26                 setCsvKmzShpUuid("66C8C51F-550EA533-7E7BB44A-B9216F89", "66C925DA-550EA533-7E7BB44A-BCF0B629", "66C972AD-550EA533-7E7BB44A-E842FFAD");
     26                setKmzShpUuid("66C925DA-550EA533-7E7BB44A-BCF0B629", "66C972AD-550EA533-7E7BB44A-E842FFAD");
    2727        }
    2828
    2929        @Override
    3030        public boolean acceptsFilename(String filename) {
    31                 return acceptsCsvKmzShpFilename(filename, "SERVICES_VDM_LMM") || acceptsZipFilename(filename, "Les services de le Mans Métropole et de la Ville du Mans .*");
     31                return acceptsKmzShpFilename(filename, "SERVICES_VDM_LMM") || acceptsZipFilename(filename, "Les services de le Mans Métropole et de la Ville du Mans .*");
    3232        }
    3333
Note: See TracChangeset for help on using the changeset viewer.