Changeset 30701 in osm for applications/editors/josm/plugins/opendata/modules/fr.datagouvfr
- Timestamp:
- 2014-10-04T17:28:45+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/administration/GeoFlaHandler.java
r30340 r30701 178 178 179 179 private Pair<String, URL> getGeoflaURL(String name, String urlSuffix) throws MalformedURLException { 180 return new Pair< String, URL>(name, new URL("http://professionnels.ign.fr/sites/default/files/"+urlSuffix));180 return new Pair<>(name, new URL("http://professionnels.ign.fr/sites/default/files/"+urlSuffix)); 181 181 } 182 182 183 183 @Override 184 184 public List<Pair<String, URL>> getDataURLs() { 185 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();185 List<Pair<String, URL>> result = new ArrayList<>(); 186 186 try { 187 187 result.add(getGeoflaURL("Départements France métropolitaine et Corse", "GEOFLADept_FR_Corse_AV_L93.zip")); -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/agriculture/RegistreParcellaireHandler.java
r30340 r30701 117 117 118 118 private Pair<String, URL> getRpgURL(String number, String name) throws MalformedURLException { 119 return new Pair< String, URL>(number+" - "+name, new URL("http://www.data.gouv.fr/var/download/ign/RPG_2010_"+number+".ZIP"));119 return new Pair<>(number+" - "+name, new URL("http://www.data.gouv.fr/var/download/ign/RPG_2010_"+number+".ZIP")); 120 120 } 121 121 122 122 @Override 123 123 public List<Pair<String, URL>> getDataURLs() { 124 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();124 List<Pair<String, URL>> result = new ArrayList<>(); 125 125 try { 126 126 for (FrenchAdministrativeUnit dpt : FrenchAdministrativeUnit.allDepartments) { -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/ecologie/AssainissementHandler.java
r30340 r30701 38 38 @Override 39 39 public List<Pair<String, URL>> getDataURLs() { 40 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();40 List<Pair<String, URL>> result = new ArrayList<>(); 41 41 try { 42 result.add(new Pair< String, URL>("Données 2009", new URL("http://www.assainissement.developpement-durable.gouv.fr/telecharger2.php")));43 result.add(new Pair< String, URL>("Données 2010", new URL("http://www.assainissement.developpement-durable.gouv.fr/telecharger2_2010.php")));44 result.add(new Pair< String, URL>("Données 2011", new URL("http://www.assainissement.developpement-durable.gouv.fr/telecharger2_2011.php")));42 result.add(new Pair<>("Données 2009", new URL("http://www.assainissement.developpement-durable.gouv.fr/telecharger2.php"))); 43 result.add(new Pair<>("Données 2010", new URL("http://www.assainissement.developpement-durable.gouv.fr/telecharger2_2010.php"))); 44 result.add(new Pair<>("Données 2011", new URL("http://www.assainissement.developpement-durable.gouv.fr/telecharger2_2011.php"))); 45 45 } catch (MalformedURLException e) { 46 46 e.printStackTrace(); … … 53 53 private Node nodeWithKeys; 54 54 55 private final Set<String> interestingKeys = new HashSet< String>();55 private final Set<String> interestingKeys = new HashSet<>(); 56 56 57 57 public InternalOdsHandler() { -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/ecologie/ForetsPubliquesHandler.java
r30340 r30701 109 109 @Override 110 110 public List<Pair<String, URL>> getDataURLs() { 111 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();111 List<Pair<String, URL>> result = new ArrayList<>(); 112 112 try { 113 113 for (FrenchAdministrativeUnit region : FrenchAdministrativeUnit.allRegions) { … … 123 123 124 124 private Pair<String, URL> getForetURL(String code, String regionName) throws MalformedURLException { 125 return new Pair< String, URL>("PublicForests_"+regionName, new URL(FRENCH_PORTAL+"var/download/"+"for_publ_v2011_reg"+code+".zip"));125 return new Pair<>("PublicForests_"+regionName, new URL(FRENCH_PORTAL+"var/download/"+"for_publ_v2011_reg"+code+".zip")); 126 126 } 127 127 } -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/ecologie/InventaireForestierNationalHandler.java
r30340 r30701 81 81 @Override 82 82 public List<Pair<String, URL>> getDataURLs() { 83 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();83 List<Pair<String, URL>> result = new ArrayList<>(); 84 84 try { 85 85 for (int year = 2010; year >= 2005; year--) { … … 94 94 95 95 private Pair<String, URL> getIfnURL(int year, String name, String type) throws MalformedURLException { 96 return new Pair< String, URL>(name+" "+year, new URL("http://www.ifn.fr/spip/IMG/csv/placettes_"+type+"_"+year+".csv"));96 return new Pair<>(name+" "+year, new URL("http://www.ifn.fr/spip/IMG/csv/placettes_"+type+"_"+year+".csv")); 97 97 } 98 98 } -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/hydrologie/EauxDeSurfaceHandler.java
r30340 r30701 94 94 @Override 95 95 public List<Pair<String, URL>> getDataURLs() { 96 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();96 List<Pair<String, URL>> result = new ArrayList<>(); 97 97 try { 98 98 for (WaterAgency wa : waterAgencies) { … … 106 106 107 107 private Pair<String, URL> getDownloadURL(WaterAgency a) throws MalformedURLException { 108 return new Pair< String, URL>("SurfaceWater_"+a.name, new URL("http://www.rapportage.eaufrance.fr/sites/default/files/SIG/FR"+a.code+"_SW.zip"));108 return new Pair<>("SurfaceWater_"+a.name, new URL("http://www.rapportage.eaufrance.fr/sites/default/files/SIG/FR"+a.code+"_SW.zip")); 109 109 } 110 110 -
applications/editors/josm/plugins/opendata/modules/fr.datagouvfr/src/org/openstreetmap/josm/plugins/opendata/modules/fr/datagouvfr/datasets/transport/Route500Handler.java
r30340 r30701 44 44 @Override 45 45 public List<Pair<String, URL>> getDataURLs() { 46 List<Pair<String, URL>> result = new ArrayList< Pair<String,URL>>();46 List<Pair<String, URL>> result = new ArrayList<>(); 47 47 try { 48 48 for (FrenchAdministrativeUnit dpt : FrenchAdministrativeUnit.allDepartments) { … … 58 58 59 59 private Pair<String, URL> getRoute500URL(String code, String name) throws MalformedURLException { 60 return new Pair< String, URL>(name, new URL(OSMFR_PORTAL+"ROUTE500_1-1_SHP_LAMB93_D"+code+"_2012-11-21.7z"));60 return new Pair<>(name, new URL(OSMFR_PORTAL+"ROUTE500_1-1_SHP_LAMB93_D"+code+"_2012-11-21.7z")); 61 61 } 62 62 }
Note:
See TracChangeset
for help on using the changeset viewer.