Changeset 30211 in osm for applications/editors/josm/plugins/opendata/modules
- Timestamp:
- 2014-01-19T01:17:29+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/ecologie/ForetsPubliquesHandler.java
r28054 r30211 121 121 } 122 122 123 /* (non-Javadoc)124 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getDataURLs()125 */126 123 @Override 127 124 public List<Pair<String, URL>> getDataURLs() { … … 139 136 } 140 137 141 private Pair<String, URL> getForetURL(String code, String name) throws MalformedURLException {142 return new Pair<String, URL>( name, new URL(FRENCH_PORTAL+"var/download/"+"for_publ_v2011_reg"+code+".zip"));138 private Pair<String, URL> getForetURL(String code, String regionName) throws MalformedURLException { 139 return new Pair<String, URL>("PublicForests_"+regionName, new URL(FRENCH_PORTAL+"var/download/"+"for_publ_v2011_reg"+code+".zip")); 143 140 } 144 141 } -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/hydrologie/EauxDeSurfaceHandler.java
r29679 r30211 53 53 new WaterAgency("B1", "Meuse", "Meuse-30381855"), 54 54 new WaterAgency("B2", "Sambre", "Sambre-30381857"), 55 new WaterAgency("C", "Rhin", "Rhin-30381951"), 55 new WaterAgency("C", "Rhin", "Rhin-30381951"), 56 56 new WaterAgency("D", "Rhône Méditerranée", "Rhône-Méditerranée-30382014"), 57 57 new WaterAgency("E", "Corse", "Corse-30381905"), … … 106 106 } 107 107 108 /* (non-Javadoc)109 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getDataURLs()110 */111 108 @Override 112 109 public List<Pair<String, URL>> getDataURLs() { 113 110 List<Pair<String, URL>> result = new ArrayList<Pair<String,URL>>(); 114 111 try { 115 for ( int i =0; i<waterAgencies.length; i++) {116 result.add(getDownloadURL(wa terAgencies[i]));112 for (WaterAgency wa : waterAgencies) { 113 result.add(getDownloadURL(wa)); 117 114 } 118 115 } catch (MalformedURLException e) { … … 123 120 124 121 private Pair<String, URL> getDownloadURL(WaterAgency a) throws MalformedURLException { 125 return new Pair<String, URL>(a.name, new URL("http://www.rapportage.eaufrance.fr/sites/default/files/SIG/FR"+a.code+"_SW.zip")); 122 return new Pair<String, URL>("SurfaceWater_"+a.name, new URL("http://www.rapportage.eaufrance.fr/sites/default/files/SIG/FR"+a.code+"_SW.zip")); 126 123 } 127 124 -
applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/LeMansDataSetHandler.java
r28113 r30211 72 72 } 73 73 74 /* (non-Javadoc)75 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getSource()76 */77 74 @Override 78 75 public String getSource() { … … 80 77 } 81 78 82 /* (non-Javadoc)83 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getLicenseURL()84 */85 79 /*@Override 86 80 public URL getLicenseURL() { … … 93 87 }*/ 94 88 95 /* (non-Javadoc)96 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getDataURLs()97 */98 89 @Override 99 90 public List<Pair<String, URL>> getDataURLs() { 100 91 List<Pair<String, URL>> result = new ArrayList<Pair<String,URL>>(); 101 92 try { 102 if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<String, URL>( "KMZ", new URL(PORTAL + "download.do?uuid=" + kmzUuid)));103 if (shpUuid != null && !shpUuid.isEmpty()) result.add(new Pair<String, URL>( "SHP", new URL(PORTAL + "download.do?uuid=" + shpUuid)));93 if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<String, URL>(getName() + " (KMZ)", new URL(PORTAL + "download.do?uuid=" + kmzUuid))); 94 if (shpUuid != null && !shpUuid.isEmpty()) result.add(new Pair<String, URL>(getName() + " (SHP)", new URL(PORTAL + "download.do?uuid=" + shpUuid))); 104 95 } catch (MalformedURLException e) { 105 96 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.