source: osm/applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml@ 28546

Last change on this file since 28546 was 28546, checked in by donvip, 12 years ago

[josm_tag2link] fix #josm7961 - Adding sources & links for ref:(FR:)?FINESS and ref:(FR:)?INSEE

File size: 7.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3// JOSM tag2link plugin.
4// Copyright (C) 2011 Don-vip & FrViPofm
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation, either version 3 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19<tag2link>
20
21 <!-- Global -->
22
23 <source name="Common">
24 <rule>
25 <condition k="(contact:)?website" />
26 <link name="View website" href="%v%" />
27 </rule>
28 <rule>
29 <condition k="url" />
30 <link name="View URL" href="%v%" />
31 </rule>
32 <rule>
33 <condition k="(contact:)?email" v="[^@]+@[^@]+" />
34 <link name="Send Email" href="mailto:%v%" />
35 </rule>
36 </source>
37
38 <source name="Wikipedia">
39 <rule>
40 <condition k="wikipedia(?::(\p{Lower}{2,}))?" v="(?:(\p{Lower}{2,}):)?(.*)" />
41 <link name="View %name% article" href="http://%k.1:v.1:en%.wikipedia.org/wiki/%v.2:v.1%" />
42 </rule>
43 </source>
44
45 <source name="WHC">
46 <rule>
47 <condition k="ref:whc" v="[0-9-]+" />
48 <link name="View UNESCO sheet" href="http://whc.unesco.org/%lang(en,fr):en%/list/%v%" />
49 </rule>
50 </source>
51
52 <!-- Only for France -->
53
54 <source name="SANDRE" country-code="FR">
55 <rule>
56 <condition k="ref:(FR:)?sandre" v="[A-Z0-9-]{8}" />
57 <link name="View %name% sheet of river" href="http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=%v%" />
58 </rule>
59 </source>
60
61 <source name="INSEE" country-code="FR">
62 <rule>
63 <condition k="admin_level" v="8"/>
64 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{3})" id="ref"/>
65 <link name="View %name% municipality sheet" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/fichecommunale.asp?codedep=%ref.v.1%&amp;codecom=%ref.v.2%" />
66 <link name="View %name% sheet on osm.fr" href="http://openstreetmap.fr/outils/etat-commune?insee=%ref.v%" />
67 </rule>
68 <rule>
69 <condition k="political_division" v="FR:canton"/>
70 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{2})" id="ref"/>
71 <link name="View %name% map of municipalities" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_comcan.asp?codecan=%ref.v%" />
72 <link name="View %name% list of municipalities" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/comcan.asp?codedep={ref.v.1}&amp;codecan=%ref.v.2%" />
73 </rule>
74 <rule>
75 <condition k="admin_level" v="7"/>
76 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{1})" id="ref"/>
77 <link name="View %name% map of cantons" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_canarr.asp?codearr=%ref.v%" />
78 <link name="View %name% list of cantons" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/canarr.asp?codedep=%ref.v.1%&amp;codearr=%ref.v.2%" />
79 </rule>
80 <rule>
81 <condition k="admin_level" v="6"/>
82 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
83 <link name="View %name% map of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_arrdep.asp?codedep=%ref.v%" />
84 <link name="View %name% list of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/arrdep.asp?codedep=%ref.v%" />
85 </rule>
86 <rule>
87 <condition k="admin_level" v="4"/>
88 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
89 <link name="View %name% map of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_depreg.asp?codereg=%ref.v%" />
90 <link name="View %name% list of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/depreg.asp?codereg=%ref.v%" />
91 </rule>
92 <rule>
93 <condition k="admin_level" v="2"/>
94 <condition k="name" v="France*"/>
95 <link name="View %name% map of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_regions.asp" />
96 <link name="View %name% list of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/region.asp" />
97 </rule>
98 </source>
99
100 <source name="CEF" country-code="FR">
101 <rule>
102 <condition k="ref:(FR:)?CEF" v="[A-Z0-9_]{8}" />
103 <link name="View %name% sheet of church" href="http://www.messesinfo.catholique.fr/public/fiche.php?valcode=%v%" />
104 </rule>
105 </source>
106
107 <source name="MHS" country-code="FR">
108 <rule>
109 <condition k="ref:(FR:)?mhs" v="\p{Upper}{2}\p{Digit}{8}" />
110 <link name="View Mérimée sheet of monument" href="http://www.culture.gouv.fr/public/mistral/mersri_fr?ACTION=CHERCHER&amp;FIELD_1=REF&amp;VALUE_1=%v%" />
111 </rule>
112 <rule>
113 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{5}" />
114 <link name="View Mérimée list for this municipality" href="http://www.culture.gouv.fr/public/mistral/merimee_fr?ACTION=CHERCHER&amp;FIELD_1=cmer1&amp;VALUE_1=%v%" />
115 </rule>
116 </source>
117
118 <source name="IGN" country-code="FR">
119 <!--
120 http://geodesie.ign.fr/fiches/index.php?module=e&action=fichepdf&source=carte&sit_no=4509302&geo_cid=0&lambda=1.90024744&phi=48.03041621
121 -->
122 <rule>
123 <condition k="man_made" v="survey_point" />
124 <condition k="source" v="©IGN .*" />
125 <condition k="ref" v="(\p{Digit}{7}) - ." id="ref" />
126 <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=fichepdf&amp;source=carte&amp;sit_no=%ref.v.1%" />
127 <!-- <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=visugeod" method="POST" >
128 <param name="h_panier" value="pdf" />
129 <param name="%ref.v.1%" value="on" />
130 <header name="Content-type" value="application/x-www-form-urlencoded" />
131 </link>-->
132 </rule>
133 <rule>
134 <condition k="site" v="geodesic" />
135 <condition k="source" v="©IGN .*" />
136 <condition k="ref" v="\p{Digit}{7}" id="ref" />
137 <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=fichepdf&amp;source=carte&amp;sit_no=%ref.v.1%" />
138 </rule>
139 </source>
140
141 <source name="Education Nationale" country-code="FR">
142 <rule>
143 <condition k="ref:(FR:)?UAI" />
144 <link name="View UAI sheet of school/college" href="http://www.education.gouv.fr/bce/avancee/fiche.php?NUMERO_UAI=%v%&amp;type_info=UAI_all" />
145 </rule>
146 </source>
147
148 <!-- social facility -->
149 <source name="FINESS" country-code="FR">
150 <rule>
151 <condition k="ref:(FR:)?FINESS" v="[A-Z0-9-]{9}" />
152 <link name="View %name% sheet of hospital/home" href="http://finess.sante.gouv.fr/finess/jsp/actionDetailEtablissement.do?noFiness=%v%" />
153 </rule>
154 </source>
155
156</tag2link>
Note: See TracBrowser for help on using the repository browser.