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

Last change on this file since 26980 was 26980, checked in by donvip, 13 years ago

Tag2link 0.3a

File size: 7.1 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="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="email" v="[^@]+@[^@]+" />
34 <link name="Send Email" href="mailto:%v%" />
35 </rule>
36 <rule>
37 <condition k="contact:email" v="[^@]+@[^@]+" />
38 <link name="Send Email" href="mailto:%v%" />
39 </rule>
40 </source>
41
42 <source name="Wikipedia">
43 <rule>
44 <condition k="wikipedia(?::(\p{Lower}{2,}))?" v="(?:(\p{Lower}{2,}):)?(.*)" />
45 <link name="View %name% article" href="http://%k.1:v.1:en%.wikipedia.org/wiki/%v.2:v.1%" />
46 </rule>
47 </source>
48
49 <source name="WHC">
50 <rule>
51 <condition k="ref:whc" v="[0-9-]+" />
52 <link name="View UNESCO sheet" href="http://whc.unesco.org/%lang(en,fr):en%/list/%v%" />
53 </rule>
54 </source>
55
56 <!-- Only for France -->
57
58 <source name="SANDRE" country-code="FR">
59 <rule>
60 <condition k="ref:(FR:)?sandre" v="[A-Z0-9-]{8}" />
61 <link name="View %name% sheet of river" href="http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=%v%" />
62 </rule>
63 </source>
64
65 <source name="INSEE" country-code="FR">
66 <rule>
67 <condition k="admin_level" v="8"/>
68 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{3})" id="ref"/>
69 <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%" />
70 </rule>
71 <rule>
72 <condition k="political_division" v="FR:canton"/>
73 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{2})" id="ref"/>
74 <link name="View %name% map of municipalities" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_comcan.asp?codecan=%ref.v%" />
75 <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%" />
76 </rule>
77 <rule>
78 <condition k="admin_level" v="7"/>
79 <condition k="ref:(FR:)?INSEE" v="(\p{Digit}{2})(\p{Digit}{1})" id="ref"/>
80 <link name="View %name% map of cantons" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_canarr.asp?codearr=%ref.v%" />
81 <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%" />
82 </rule>
83 <rule>
84 <condition k="admin_level" v="6"/>
85 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
86 <link name="View %name% map of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_arrdep.asp?codedep=%ref.v%" />
87 <link name="View %name% list of arrondissements" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/arrdep.asp?codedep=%ref.v%" />
88 </rule>
89 <rule>
90 <condition k="admin_level" v="4"/>
91 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{2}" id="ref"/>
92 <link name="View %name% map of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_depreg.asp?codereg=%ref.v%" />
93 <link name="View %name% list of departments" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/depreg.asp?codereg=%ref.v%" />
94 </rule>
95 <rule>
96 <condition k="admin_level" v="2"/>
97 <condition k="name" v="France*"/>
98 <link name="View %name% map of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/carte_regions.asp" />
99 <link name="View %name% list of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/region.asp" />
100 </rule>
101 </source>
102
103 <source name="CEF" country-code="FR">
104 <rule>
105 <condition k="ref:(FR:)?CEF" v="[A-Z0-9_]{8}" />
106 <link name="View %name% sheet of church" href="http://www.messesinfo.catholique.fr/public/fiche.php?valcode=%v%" />
107 </rule>
108 </source>
109
110 <source name="MHS" country-code="FR">
111 <rule>
112 <condition k="ref:(FR:)?mhs" v="\p{Upper}{2}\p{Digit}{8}" />
113 <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%" />
114 </rule>
115 <rule>
116 <condition k="ref:(FR:)?INSEE" v="\p{Digit}{5}" />
117 <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%" />
118 </rule>
119 </source>
120
121 <source name="IGN" country-code="FR">
122 <!--
123 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
124 -->
125 <rule>
126 <condition k="man_made" v="survey_point" />
127 <condition k="source" v="©IGN .*" />
128 <condition k="ref" v="(\p{Digit}{7}) - ." id="ref" />
129 <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%" />
130 <!-- <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&amp;action=visugeod" method="POST" >
131 <param name="h_panier" value="pdf" />
132 <param name="%ref.v.1%" value="on" />
133 <header name="Content-type" value="application/x-www-form-urlencoded" />
134 </link>-->
135 </rule>
136 <rule>
137 <condition k="site" v="geodesic" />
138 <condition k="source" v="©IGN .*" />
139 <condition k="ref" v="\p{Digit}{7}" id="ref" />
140 <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%" />
141 </rule>
142 </source>
143
144</tag2link>
Note: See TracBrowser for help on using the repository browser.