Changeset 28044 in osm for applications/editors/josm/plugins/opendata/modules/fr.toulouse/src
- Timestamp:
- 2012-03-11T17:50:51+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseConstants.java
r28022 r28044 16 16 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse; 17 17 18 import org.openstreetmap.josm.plugins.opendata.core.datasets.DataSetCategory; 18 19 import org.openstreetmap.josm.plugins.opendata.core.datasets.fr.FrenchConstants; 19 20 … … 46 47 */ 47 48 public static final String TOULOUSE_NEPTUNE_XSD = "/neptune_toulouse/neptune.xsd"; 49 50 /** 51 * Categories: TODO: icons 52 */ 53 public static final DataSetCategory CAT_ASSOCIATIONS = new DataSetCategory("Associations", ""); 54 public static final DataSetCategory CAT_CITOYENNETE = new DataSetCategory("Citoyenneté", ""); 55 public static final DataSetCategory CAT_CULTURE = new DataSetCategory("Culture", ""); 56 public static final DataSetCategory CAT_ENFANCE = new DataSetCategory("Enfance", ""); 57 public static final DataSetCategory CAT_ENVIRONNEMENT = new DataSetCategory("Environnement", ""); 58 public static final DataSetCategory CAT_PATRIMOINE = new DataSetCategory("Patrimoine", ""); 59 public static final DataSetCategory CAT_SPORT = new DataSetCategory("Sport", ""); 60 public static final DataSetCategory CAT_TOPOGRAPHIE = new DataSetCategory("Topographie", ""); 61 public static final DataSetCategory CAT_TRANSPORT = new DataSetCategory("Transport", ""); 62 public static final DataSetCategory CAT_URBANISME = new DataSetCategory("Urbanisme", ""); 48 63 } -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/ToulouseDataSetHandler.java
r28022 r28044 98 98 99 99 /* (non-Javadoc) 100 * @see org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler#getDataURL() 101 */ 102 @Override 103 public URL getDataURL() { 104 try { 105 return new URL(getLocalPortalURL().toString()+"/resource/document"); 106 } catch (MalformedURLException e) { 107 e.printStackTrace(); 108 } 109 return null; 110 } 111 112 /* (non-Javadoc) 100 113 * @see org.openstreetmap.josm.plugins.fr.opendata.datasets.AbstractDataSetHandler#getWikiURL() 101 114 */ … … 113 126 114 127 protected final void setWikiPage(String wikiPage) { 115 this.wikiPage = wikiPage; 128 this.wikiPage = wikiPage.replace(" ", "_"); 129 setName(wikiPage.replace("_", " ")); 116 130 } 117 131 } -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/associations/Club3eAgeHandler.java
r28000 r28044 25 25 super(12587, "leisure=club", "club=elderly"); 26 26 setWikiPage("Clubs du 3ème âge"); 27 setCategory(CAT_ASSOCIATIONS); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/BureauxVoteHandler.java
r28000 r28044 25 25 super(12550, "polling_station"); 26 26 setWikiPage("Bureaux de vote 2012"); 27 setCategory(CAT_CITOYENNETE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/MairieAnnexeHandler.java
r28000 r28044 24 24 public MairieAnnexeHandler() { 25 25 super(12560, "Mairies annexes"); 26 setCategory(CAT_CITOYENNETE); 26 27 } 27 28 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/MairieHandler.java
r28000 r28044 24 24 public MairieHandler() { 25 25 this(12554, "Mairies"); 26 setCategory(CAT_CITOYENNETE); 26 27 } 27 28 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/PolesTerritoriauxHandler.java
r28000 r28044 24 24 public PolesTerritoriauxHandler() { 25 25 super(12568); 26 setName("Pôles territoriaux "); 27 setCategory(CAT_CITOYENNETE); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/QuartiersHandler.java
r28000 r28044 25 25 super(12574, "admin_level=11"); 26 26 setWikiPage("Quartiers de proximité"); 27 setCategory(CAT_CITOYENNETE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/citoyennete/SecteursHandler.java
r28000 r28044 25 25 super(12580, "admin_level=10"); 26 26 setWikiPage("Secteurs de proximité"); 27 setCategory(CAT_CITOYENNETE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/culture/BibliothequesHandler.java
r28000 r28044 25 25 super(12402, "amenity=library"); 26 26 setWikiPage("Médiathèques, bibliothèques et bibliobus"); 27 setCategory(CAT_CULTURE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/culture/EquipementCulturelBalmaHandler.java
r28000 r28044 25 25 super(13997); 26 26 setWikiPage("Équipements Culturels"); 27 setCategory(CAT_CULTURE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/culture/LudothequeHandler.java
r28000 r28044 25 25 super(12420, "amenity=toy_library"); 26 26 setWikiPage("Ludothèques"); 27 setCategory(CAT_CULTURE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/culture/MuseeHandler.java
r28000 r28044 26 26 super(12426, "tourism=museum"); 27 27 setWikiPage("Musées"); 28 setCategory(CAT_CULTURE); 28 29 } 29 30 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/culture/TheatreHandler.java
r28000 r28044 25 25 super(12448, "amenity=theatre"); 26 26 setWikiPage("Théâtres"); 27 setCategory(CAT_CULTURE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/enfance/CrechesHandler.java
r28000 r28044 25 25 super(12462, "amenity=kindergarten"); 26 26 setWikiPage("Crèches"); 27 setCategory(CAT_ENFANCE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/enfance/EcoleBalmaHandler.java
r28000 r28044 25 25 super(13993, "amenity=school"); 26 26 setWikiPage("Écoles"); 27 setCategory(CAT_ENFANCE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/enfance/EcoleElementaireHandler.java
r28000 r28044 25 25 super(12474, "amenity=school"); 26 26 setWikiPage("Écoles élémentaires publiques"); 27 setCategory(CAT_ENFANCE); 27 28 for (String forbidden : new String[]{"maternelle","primaire","collège","lycée","secondaire"}) { 28 29 addForbiddenTag("school:FR="+forbidden); -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/enfance/EcoleMaternelleHandler.java
r28000 r28044 25 25 super(12490, "amenity=school"); 26 26 setWikiPage("Écoles maternelles publiques"); 27 setCategory(CAT_ENFANCE); 27 28 for (String forbidden : new String[]{"élémentaire","primaire","collège","lycée","secondaire"}) { 28 29 addForbiddenTag("school:FR="+forbidden); -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/enfance/PetiteEnfanceEtJeunesseBalmaHandler.java
r28000 r28044 25 25 super(14001); 26 26 setWikiPage("Petite enfance et jeunesse"); 27 setCategory(CAT_ENFANCE); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/environnement/RecupEmballageHandler.java
r28000 r28044 25 25 super(12494, "amenity=recycling"); 26 26 setWikiPage("Récup' Emballage"); 27 setCategory(CAT_ENVIRONNEMENT); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/environnement/RecupVerreHandler.java
r28000 r28044 25 25 super(12496, "amenity=recycling"); 26 26 setWikiPage("Récup' Verre"); 27 setCategory(CAT_ENVIRONNEMENT); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/environnement/StationEpurationHandler.java
r28000 r28044 25 25 super(12500, "man_made=wastewater_plant"); 26 26 setWikiPage("Stations d'épuration"); 27 setCategory(CAT_ENVIRONNEMENT); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/patrimoine/Parcelles1680Handler.java
r28000 r28044 24 24 public Parcelles1680Handler() { 25 25 super(12514); 26 setName("Parcellaire de 1680"); 27 setCategory(CAT_PATRIMOINE); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/patrimoine/Parcelles1830Handler.java
r28000 r28044 24 24 public Parcelles1830Handler() { 25 25 super(12534); 26 setName("Parcellaire de 1830"); 27 setCategory(CAT_PATRIMOINE); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/sport/InstallationSportiveBalmaHandler.java
r28000 r28044 25 25 super(14010); 26 26 setWikiPage("Installations sportives"); 27 setCategory(CAT_SPORT); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/topographie/AltimetrieVoieHandler.java
r28000 r28044 24 24 public AltimetrieVoieHandler() { 25 25 super(12660, "ele"); 26 setName("Altimétrie des voies"); 27 setCategory(CAT_TOPOGRAPHIE); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/HorodateurHandler.java
r28000 r28044 29 29 super(12540, "vending=parking_tickets"); 30 30 setWikiPage("Horodateurs"); 31 setCategory(CAT_TRANSPORT); 31 32 } 32 33 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/MetroStationHandler.java
r28000 r28044 24 24 public MetroStationHandler() { 25 25 super(12542, "subway=yes"); 26 setName("Stations de métro"); 27 setCategory(CAT_TRANSPORT); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/PMRHandler.java
r28000 r28044 25 25 super(12538, "amenity=parking_space"); 26 26 setWikiPage("PMR"); 27 setCategory(CAT_TRANSPORT); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/PistesCyclablesHandler.java
r28000 r28044 41 41 public PistesCyclablesHandler() { 42 42 this("Nom_voie"); 43 setCategory(CAT_TRANSPORT); 43 44 } 44 45 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/ReseauTisseoHandler.java
r28031 r28044 17 17 18 18 import java.io.File; 19 import java.net.MalformedURLException; 19 20 import java.net.URL; 20 21 … … 31 32 super(14022, "network=fr_tisseo"); 32 33 NeptuneReader.registerSchema(neptuneSchemaUrl); 34 setName("Réseau Tisséo (Métro, Bus, Tram)"); 35 setCategory(CAT_TRANSPORT); 33 36 } 34 37 … … 54 57 } 55 58 59 /* (non-Javadoc) 60 * @see org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse.datasets.ToulouseDataSetHandler#getWikiURL() 61 */ 62 @Override 63 public URL getWikiURL() { 64 try { 65 return new URL("http://wiki.openstreetmap.org/wiki/Toulouse/Transports_en_commun#Réseau_Tisséo"); 66 } catch (MalformedURLException e) { 67 e.printStackTrace(); 68 } 69 return null; 70 } 71 56 72 @Override 57 73 public void updateDataSet(DataSet ds) { -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/TramwayStationHandler.java
r28000 r28044 24 24 public TramwayStationHandler() { 25 25 super(12611, "tram=yes"); 26 setName("Stations de tramway"); 27 setCategory(CAT_TRANSPORT); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/VeloToulouseHandler.java
r28000 r28044 26 26 super(12546, "amenity=bicycle_rental"); 27 27 setWikiPage("Vélô Toulouse"); 28 setCategory(CAT_TRANSPORT); 28 29 } 29 30 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/transport/Zone30Handler.java
r28000 r28044 25 25 super(12548, "Street", "maxspeed=30"); 26 26 setWikiPage("Zones 30"); 27 setCategory(CAT_TRANSPORT); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/urbanisme/CommuneHandler.java
r28000 r28044 24 24 public CommuneHandler() { 25 25 super(12582, "admin_level=8"); 26 setName("Communes"); 27 setCategory(CAT_URBANISME); 26 28 } 27 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/urbanisme/NumerosRueHandler.java
r28000 r28044 31 31 super(12673, "addr:housenumber"); 32 32 setWikiPage("Numéros de rue"); 33 setCategory(CAT_URBANISME); 33 34 } 34 35 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/urbanisme/SanisetteHandler.java
r28000 r28044 25 25 super(12584, "amenity=toilets"); 26 26 setWikiPage("Sanisettes"); 27 setCategory(CAT_URBANISME); 27 28 } 28 29 -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/src/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/datasets/urbanisme/VoirieHandler.java
r28000 r28044 37 37 public VoirieHandler() { 38 38 this(12693, "lib_off", "highway"); 39 setName("Filaire de voirie"); 40 setCategory(CAT_URBANISME); 39 41 } 40 42
Note:
See TracChangeset
for help on using the changeset viewer.