Changeset 28091 in osm for applications/editors/josm/plugins/opendata/modules/fr.lemans/src
- Timestamp:
- 2012-03-15T20:29:01+01:00 (13 years ago)
- 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
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/LeMansModule.java
r28088 r28091 19 19 import org.openstreetmap.josm.plugins.opendata.core.modules.ModuleInformation; 20 20 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CantonsSartheHandler; 21 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CirconscriptionsLegislativesHandler; 22 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CodesPostauxHandler; 23 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.CommunesHandler; 24 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.ConseilsQuartiersHandler; 25 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.PointsApportVolontaireHandler; 21 26 import org.openstreetmap.josm.plugins.opendata.modules.fr.lemans.datasets.ServicesCommunautairesMunicipauxHandler; 22 27 … … 27 32 handlers.add(new ServicesCommunautairesMunicipauxHandler()); 28 33 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()); 29 39 } 30 40 } -
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/CantonsSartheHandler.java
r28088 r28091 24 24 super("F7D936DF-550EA533-37695DD8-29CFF55B"); 25 25 setName("Cantons de la Sarthe"); 26 set CsvKmzShpUuid("62DF4EEF-550EA533-7E7BB44A-45C66201","62DFCA8F-550EA533-7E7BB44A-7D1AA2D4", "62E017CA-550EA533-7E7BB44A-23772121");26 setKmzShpUuid("62DFCA8F-550EA533-7E7BB44A-7D1AA2D4", "62E017CA-550EA533-7E7BB44A-23772121"); 27 27 } 28 28 29 29 @Override 30 30 public boolean acceptsFilename(String filename) { 31 return accepts CsvKmzShpFilename(filename, "CANTONS_72") || acceptsZipFilename(filename, "Les cantons de la Sarthe .*");31 return acceptsKmzShpFilename(filename, "CANTONS_72") || acceptsZipFilename(filename, "Les cantons de la Sarthe .*"); 32 32 } 33 33 -
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/LeMansDataSetHandler.java
r28088 r28091 30 30 private String uuid; 31 31 32 private String csvUuid;33 32 private String kmzUuid; 34 33 private String shpUuid; … … 61 60 this.uuid = uuid; 62 61 } 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) { 66 64 this.kmzUuid = kmzUuid; 67 65 this.shpUuid = shpUuid; … … 107 105 List<Pair<String, URL>> result = new ArrayList<Pair<String,URL>>(); 108 106 try { 109 //if (csvUuid != null && !csvUuid.isEmpty()) result.add(new Pair<String, URL>("CSV", new URL(PORTAL + "download.do?uuid=" + csvUuid)));110 107 if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<String, URL>("KMZ", new URL(PORTAL + "download.do?uuid=" + kmzUuid))); 111 108 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 24 24 super("F7F65F15-550EA533-37695DD8-F7A74F05"); 25 25 setName("Services communautaires et municipaux"); 26 set CsvKmzShpUuid("66C8C51F-550EA533-7E7BB44A-B9216F89","66C925DA-550EA533-7E7BB44A-BCF0B629", "66C972AD-550EA533-7E7BB44A-E842FFAD");26 setKmzShpUuid("66C925DA-550EA533-7E7BB44A-BCF0B629", "66C972AD-550EA533-7E7BB44A-E842FFAD"); 27 27 } 28 28 29 29 @Override 30 30 public boolean acceptsFilename(String filename) { 31 return accepts CsvKmzShpFilename(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 .*"); 32 32 } 33 33
Note:
See TracChangeset
for help on using the changeset viewer.