Project

General

Profile

MapRestServiceExamples » History » Version 52

Franck Theeten, 05/17/2013 04:22 PM

1 1 Andreas Kohlbecker
2 7 Andreas Kohlbecker
3 1 Andreas Kohlbecker
4 40 Niels Hoffmann
5 1 Andreas Kohlbecker
# Examples for URI requests to the Map REST Service
6 40 Niels Hoffmann
7 40 Niels Hoffmann
8 40 Niels Hoffmann
{{>toc}}
9 40 Niels Hoffmann
10 1 Andreas Kohlbecker
11 1 Andreas Kohlbecker
12 23 Pere Roca Ristol
Integrate clear colourful maps into your own website or application. Choose data sources and adapt colour, symbology, extent, background textures and line types to fully customise your map. 
13 1 Andreas Kohlbecker
14 23 Pere Roca Ristol
This page give some usage examples of the [[MapRestServiceApi|Map REST Service API]].
15 23 Pere Roca Ristol
16 42 Niels Hoffmann
Be aware that these examples do *not conform to RFC 3986*, as the current implementation still doesn't follow the proposed syntaxis. It means that the syntaxis of these examples (and MapRest Services) may change in the coming weeks.
17 1 Andreas Kohlbecker
18 42 Niels Hoffmann
19 1 Andreas Kohlbecker
20 43 Niels Hoffmann
----
21 1 Andreas Kohlbecker
22 1 Andreas Kohlbecker
23 43 Niels Hoffmann
24 50 Franck Theeten
## WMS and Layers
25 50 Franck Theeten
26 50 Franck Theeten
27 50 Franck Theeten
The WMS bound to the service is http://edit.africamuseum.be/geoserver/ (don't forget the trailing slash).
28 50 Franck Theeten
29 50 Franck Theeten
30 50 Franck Theeten
31 51 Franck Theeten
The services is displays TDWG and vmap0 layers (http://gis-lab.info/qa/vmap0-eng.html) imported in the "topp" namespace.
32 50 Franck Theeten
33 50 Franck Theeten
34 50 Franck Theeten
35 50 Franck Theeten
The list of layers can be accessed by executing a WMS GetCapabilties request on the "topp" dataset: http://edit.africamuseum.be/geoserver/topp/wms?service=WMS&request=GetCapabilities.
36 50 Franck Theeten
37 50 Franck Theeten
38 50 Franck Theeten
39 50 Franck Theeten
Alternatively, you can also use the "preview layer" part of the graphical interface of GeoSerber
40 50 Franck Theeten
41 50 Franck Theeten
http://edit.africamuseum.be/geoserver/web/;?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage
42 50 Franck Theeten
43 50 Franck Theeten
44 50 Franck Theeten
45 50 Franck Theeten
46 1 Andreas Kohlbecker
If you have request or questions on the available layer contact franck.theeten @ africamuseum.be
47 51 Franck Theeten
48 51 Franck Theeten
49 51 Franck Theeten
50 51 Franck Theeten
## Description of layers
51 51 Franck Theeten
52 51 Franck Theeten
53 52 Franck Theeten
Since 2011, any layer registered in the WMS can be used in distribution maps and have its style dynamically defined in the HTTP GET parameters (this functionnality was originally limited to TDWG layers).
54 51 Franck Theeten
55 51 Franck Theeten
56 52 Franck Theeten
When building a query, the programmer needs to know the structure of a layer (i.e. the name and the type of fields) since some functionnalities do not work withnumeric attributes. For instance, you can define a filter to apply a style on specific values (like names of countries), but only if the correponding attribute in the database has a text format (you cannot apply filter on integer column).
57 51 Franck Theeten
58 51 Franck Theeten
59 51 Franck Theeten
IT is possible to get an XML describing the types and fieldnames of a layer by running a WFS query "DescribeFeature" on GeoServer like in the example below ("typename" being the name of the layer) 
60 51 Franck Theeten
61 51 Franck Theeten
62 51 Franck Theeten
e.g:
63 51 Franck Theeten
64 51 Franck Theeten
65 51 Franck Theeten
http://edit.africamuseum.be/geoserver/topp/wfs?service=WFS&version=1.1.0&request=DescribefeatureType&typename=topp:vmap0_afsa_hydro_inland_water_prm_only_a
66 51 Franck Theeten
67 51 Franck Theeten
68 51 Franck Theeten
69 50 Franck Theeten
70 50 Franck Theeten
71 50 Franck Theeten
72 9 Andreas Kohlbecker
## Map REST Service - Version 1
73 3 Andreas Kohlbecker
74 1 Andreas Kohlbecker
_ Does not conform to the latest syntax definition! _
75 1 Andreas Kohlbecker
76 1 Andreas Kohlbecker
77 9 Andreas Kohlbecker
78 41 Niels Hoffmann
### Distribution Maps
79 9 Andreas Kohlbecker
80 35 Andreas Kohlbecker
Service URL: http://edit.br.fgov.be/edit_wp5/v1/areas.php
81 3 Andreas Kohlbecker
82 5 Andreas Kohlbecker
83 1 Andreas Kohlbecker
84 17 Andreas Müller
85 41 Niels Hoffmann
#### Basic Issues
86 17 Andreas Müller
87 24 Pere Roca Ristol
Map Image size is specified as 400 pixels width. It means the height will be 200 pixels (just the half). Attention: you cannot specify an odd number as width/height.
88 24 Pere Roca Ristol
89 24 Pere Roca Ristol
90 26 Pere Roca Ristol
A bounding box (bbox) is specified. We strongly recommend to use bbox if know it (for example if all your data is on the same zone).
91 25 Pere Roca Ristol
92 1 Andreas Kohlbecker
93 26 Pere Roca Ristol
We provide world country borders and all TDWG levels as background. This parameter must be specified in "l" parameter (l=earth in that example).
94 26 Pere Roca Ristol
95 26 Pere Roca Ristol
96 26 Pere Roca Ristol
Current codes for background layers are:
97 26 Pere Roca Ristol
98 26 Pere Roca Ristol
99 26 Pere Roca Ristol
-Country borders: earth
100 26 Pere Roca Ristol
101 26 Pere Roca Ristol
102 26 Pere Roca Ristol
-TDWG level 1: tdwg1
103 26 Pere Roca Ristol
104 26 Pere Roca Ristol
105 26 Pere Roca Ristol
-TDWG level 2: tdwg2
106 26 Pere Roca Ristol
107 26 Pere Roca Ristol
108 26 Pere Roca Ristol
-TDWG level 3: tdwg3
109 26 Pere Roca Ristol
110 26 Pere Roca Ristol
111 26 Pere Roca Ristol
-TDWG level 4: tdwg4
112 26 Pere Roca Ristol
113 26 Pere Roca Ristol
114 1 Andreas Kohlbecker
~~~
115 22 Pere Roca Ristol
<code class="html">
116 35 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?l=earth&ad=tdwg3:a:PHI,VAN,BAN,SRL,VIE,MOL,CHC,CRL,JAW,FIJ,SUM,MYA,MLY,NWG,MRN,AND,CHH,BOR,IND,CHS,THA,TAI,LAO,SUL,BIS,CBD,SOL,ASS&as=a:8dd3c7,,1&ms=500&bbox=-180,-90,180,90" />
117 1 Andreas Kohlbecker
~~~
118 1 Andreas Kohlbecker
119 1 Andreas Kohlbecker
~~~
120 6 Andreas Kohlbecker
l=earth&ad=tdwg3:a:PHI,VAN,BAN,SRL,VIE,MOL,CHC,CRL,JAW,FIJ,SUM,MYA,MLY,NWG,MRN,AND,CHH,BOR,IND,CHS,THA,TAI,LAO,SUL,BIS,CBD,SOL,ASS
121 34 Pere Roca Ristol
&as=a:8dd3c7,,1&ms=500&bbox=-180,-90,180,90
122 6 Andreas Kohlbecker
~~~
123 6 Andreas Kohlbecker
124 6 Andreas Kohlbecker
125 1 Andreas Kohlbecker
126 17 Andreas Müller
127 41 Niels Hoffmann
####  Recalculate Parameter
128 1 Andreas Kohlbecker
129 25 Pere Roca Ristol
We see here the "recalculate" parameter in action. 
130 25 Pere Roca Ristol
131 25 Pere Roca Ristol
When the bbox is not specified, the service will calculate it and try to fit the image to the specified dimensions (width/height). It can cause distorted images. 
132 25 Pere Roca Ristol
133 25 Pere Roca Ristol
134 25 Pere Roca Ristol
Recalculate=true (this is the default if nothing is specified) tries to avoid these distortions. It means also that in some cases the final image size will change as you can see in the first image.
135 25 Pere Roca Ristol
136 25 Pere Roca Ristol
137 25 Pere Roca Ristol
138 6 Andreas Kohlbecker
~~~
139 6 Andreas Kohlbecker
<code class="html">
140 35 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?l=earth&ad=tdwg3:a:PHI,VAN,BOR|b:BIS,SUM&as=a:8dd3c7,,2|b:e91f16,5be166,,2_4&ms=500&label=1" />
141 25 Pere Roca Ristol
~~~
142 25 Pere Roca Ristol
~~~
143 25 Pere Roca Ristol
<code class="html">
144 35 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?l=earth&ad=tdwg3:a:PHI,VAN,BOR|b:BIS,SUM&as=a:8dd3c7,,2|b:e91f16,5be166,,2_4&ms=500&label=1&recalculate=false" />
145 1 Andreas Kohlbecker
~~~
146 1 Andreas Kohlbecker
147 25 Pere Roca Ristol
~~~
148 25 Pere Roca Ristol
l=earth&ad=tdwg3:a:PHI,VAN,BOR|b:BIS,SUM&as=a:8dd3c7,,2|b:e91f16,5be166,,2_4&ms=500&label=1
149 25 Pere Roca Ristol
~~~
150 7 Andreas Kohlbecker
~~~
151 7 Andreas Kohlbecker
l=earth&ad=tdwg3:a:PHI,VAN,BOR|b:BIS,SUM&as=a:8dd3c7,,2|b:e91f16,5be166,,2_4&ms=500&label=1&recalculate=false
152 7 Andreas Kohlbecker
~~~
153 7 Andreas Kohlbecker
154 7 Andreas Kohlbecker
155 17 Andreas Müller
156 1 Andreas Kohlbecker
157 41 Niels Hoffmann
####  Different TDWG Layers
158 1 Andreas Kohlbecker
159 26 Pere Roca Ristol
You can mix different TDWG layers. In that case, TDWG level 3 and TDWG level 1.  
160 26 Pere Roca Ristol
161 26 Pere Roca Ristol
162 26 Pere Roca Ristol
No background layer is defined, so you simply get the specified areas. 
163 26 Pere Roca Ristol
164 7 Andreas Kohlbecker
~~~
165 1 Andreas Kohlbecker
<code class="html">
166 35 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?ad=tdwg3:b:ZIM|a:SPA,ITA||tdwg1:b:2&as=a:d7add2|b:ab8dc9F&ms=300,200&label=1" />
167 7 Andreas Kohlbecker
~~~
168 7 Andreas Kohlbecker
169 7 Andreas Kohlbecker
~~~
170 26 Pere Roca Ristol
ad=tdwg3:b:ZIM|a:SPA,ITA||tdwg1:b:2&as=a:d7add2|b:ab8dc9F&ms=600,300&label=1
171 1 Andreas Kohlbecker
~~~
172 1 Andreas Kohlbecker
173 3 Andreas Kohlbecker
174 1 Andreas Kohlbecker
175 41 Niels Hoffmann
#### Symbolize Parameters
176 34 Pere Roca Ristol
177 18 Andreas Müller
A more complex styling. The parameters for styling an area are:
178 27 Pere Roca Ristol
179 28 Pere Roca Ristol
180 27 Pere Roca Ristol
-Area fill color
181 27 Pere Roca Ristol
182 28 Pere Roca Ristol
183 27 Pere Roca Ristol
-Area stroke color
184 27 Pere Roca Ristol
185 28 Pere Roca Ristol
186 27 Pere Roca Ristol
-Area stroke width
187 27 Pere Roca Ristol
188 28 Pere Roca Ristol
189 27 Pere Roca Ristol
-Area stroke dash style: we currently provide 1_2,1_4,2_2,2_4,5_7 and 10_5 but it can change. First parameter determine the length in pixels to draw the line, and the second, the length in pixels to blank out the line. As example, 5_7 means a very dashed line (separated 7 pixels one line from another).
190 1 Andreas Kohlbecker
191 27 Pere Roca Ristol
192 33 Pere Roca Ristol
193 28 Pere Roca Ristol
We allways provide default values. So, you could even specify styles "a" and "b"  as a:|b: and the image will be generated. 
194 27 Pere Roca Ristol
195 28 Pere Roca Ristol
A style like b:0000ff~2  would mean 0000ff fill color and 2 pixels stroke width. The other parameters would be set as default.
196 27 Pere Roca Ristol
197 28 Pere Roca Ristol
198 19 Andreas Müller
~~~
199 1 Andreas Kohlbecker
<code class="html">
200 35 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?l=tdwg1&ad=tdwg4:c:MXEDU|b:MXETA||tdwg3:a:MXC,CUB|b:MXE,MXG|c:MXS,MXT&as=a:329d2a,483eef,2,2_2|b:ab8dc9F,da1029,2,5_7|c:d2e347|d:f7555d&ms=500&bbox=-115,6.78,-75.19,29.8&recalculate=false" />
201 18 Andreas Müller
~~~
202 1 Andreas Kohlbecker
203 18 Andreas Müller
~~~
204 27 Pere Roca Ristol
l=tdwg1&ad=tdwg4:c:MXEDU|b:MXETA||tdwg3:a:MXC,CUB|b:MXE,MXG|c:MXS,MXT&as=a:329d2a,483eef,2,2_2|b:ab8dc9F,da1029,2,5_7|c:d2e347|d:f7555d&ms=700&bbox=-115,6.78,-75.19,29.8&recalculate=false
205 1 Andreas Kohlbecker
~~~
206 1 Andreas Kohlbecker
207 18 Andreas Müller
208 41 Niels Hoffmann
#### Map Legends
209 18 Andreas Müller
210 28 Pere Roca Ristol
A legend can be appended to your map in different positions. 
211 16 Andreas Kohlbecker
212 1 Andreas Kohlbecker
213 28 Pere Roca Ristol
Specify "title" parameter, associating to each style the desired legend. Also legend=1 and "mlp" (map legend position) 
214 1 Andreas Kohlbecker
215 1 Andreas Kohlbecker
216 28 Pere Roca Ristol
It is important to assign, for each style, a title, otherwise cause error.
217 1 Andreas Kohlbecker
218 1 Andreas Kohlbecker
219 34 Pere Roca Ristol
220 28 Pere Roca Ristol
The map legend position can be:
221 1 Andreas Kohlbecker
222 28 Pere Roca Ristol
223 28 Pere Roca Ristol
-1: outside of the map, up left 
224 28 Pere Roca Ristol
225 28 Pere Roca Ristol
226 28 Pere Roca Ristol
-2: outside of the map, up 
227 28 Pere Roca Ristol
228 28 Pere Roca Ristol
229 28 Pere Roca Ristol
-3:outside of the map, up right 
230 28 Pere Roca Ristol
231 28 Pere Roca Ristol
232 28 Pere Roca Ristol
-4: outside of the map, below left
233 28 Pere Roca Ristol
234 28 Pere Roca Ristol
235 28 Pere Roca Ristol
-5: inside of the map, below right
236 28 Pere Roca Ristol
237 28 Pere Roca Ristol
238 28 Pere Roca Ristol
-6:  inside of the map, below left
239 28 Pere Roca Ristol
240 28 Pere Roca Ristol
241 28 Pere Roca Ristol
-7:  inside of the map, up right
242 28 Pere Roca Ristol
243 28 Pere Roca Ristol
244 28 Pere Roca Ristol
245 28 Pere Roca Ristol
~~~
246 28 Pere Roca Ristol
<code class="html">
247 35 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?l=tdwg1&legend=1&mlp=3&title=a:foreign|b:native|c:rare|d:unknown&ad=tdwg4:c:MXEDU|b:MXETA||tdwg3:a:MXC,CUB|b:MXE,MXG|c:MXS,MXT&as=a:329d2a,483eef,2,2_2|b:ab8dc9F,da1029,2,5_7|c:d2e347|d:f7555d&ms=500&bbox=-115,6.78,-75.19,29.8&recalculate=false" />
248 28 Pere Roca Ristol
~~~
249 28 Pere Roca Ristol
250 1 Andreas Kohlbecker
~~~
251 28 Pere Roca Ristol
l=tdwg1&legend=1&mlp=3&title=a:foreign|b:native|c:rare|d:unknown&ad=tdwg4:c:MXEDU|b:MXETA||tdwg3:a:MXC,CUB|b:MXE,MXG|c:MXS,MXT&as=a:329d2a,483eef,2,2_2|b:ab8dc9F,da1029,2,5_7|c:d2e347|d:f7555d&ms=500&bbox=-115,6.78,-75.19,29.8&recalculate=false
252 1 Andreas Kohlbecker
~~~
253 34 Pere Roca Ristol
A separate service generating legend is working, so you can put the legend wherever you want on your html. 
254 28 Pere Roca Ristol
255 34 Pere Roca Ristol
256 34 Pere Roca Ristol
257 28 Pere Roca Ristol
~~~
258 1 Andreas Kohlbecker
<code class="html">
259 36 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/legends.php?title=a:foreign|b:native|c:rare|d:unknown&as=a:329d2a,483eef,2,2_2|b:ab8dc9F,da1029,2,5_7|c:d2e347|d:f7555d&ms=60,50"/>
260 28 Pere Roca Ristol
~~~
261 29 Pere Roca Ristol
~~~
262 36 Andreas Kohlbecker
http://edit.br.fgov.be/edit_wp5/v1/legends.php?title=a:foreign|b:native|c:rare|d:unknown&as=a:329d2a,483eef,2,2_2|b:ab8dc9F,da1029,2,5_7|c:d2e347|d:f7555d&ms=60,50
263 1 Andreas Kohlbecker
~~~
264 29 Pere Roca Ristol
265 29 Pere Roca Ristol
266 29 Pere Roca Ristol
267 41 Niels Hoffmann
#### Hatching Patterns
268 29 Pere Roca Ristol
269 30 Pere Roca Ristol
You can also specify a hatch pattern. You need to fill "images_url" and  "symbols" for each pattern as shown below. The URL to the image can be remote or local.
270 1 Andreas Kohlbecker
271 29 Pere Roca Ristol
272 1 Andreas Kohlbecker
The second parameter of "symbols"  specifies the size of the image used for hatching.
273 30 Pere Roca Ristol
274 17 Andreas Müller
275 33 Pere Roca Ristol
~~~
276 16 Andreas Kohlbecker
<code class="html">
277 1 Andreas Kohlbecker
<img src="http://edit.br.fgov.be/edit_wp5/v1/areas.php?l=tdwg4&ad=tdwg4:c:MXEDU|b:MXETA|d:NICOO||tdwg3:a:MXC,CUB|b:MXE,MXG|c:MXS,MXT&as=b:d7add2,,3,|a:d7add2,ab899F,1,1_2|c:,,,10_5|d:&ms=500&images_url=a,c:edit.csic.es/v1/hatch_images|b:maps.massgis.state.ma.us/images&symbols=a,c:cow,10,gif|b:med_green_cross_hatch,30,gif&&bbox=-115,6.78,-75.19,29.8&recalculate=false"/>
278 35 Andreas Kohlbecker
~~~
279 1 Andreas Kohlbecker
~~~
280 1 Andreas Kohlbecker
l=tdwg4&ad=tdwg4:c:MXEDU|b:MXETA|d:NICOO||tdwg3:a:MXC,CUB|b:MXE,MXG|c:MXS,MXT&as=b:d7add2,,3,|a:d7add2,ab899F,1,1_2|c:,,,10_5|d:&ms=500&images_url=a,c:edit.csic.es/v1/hatch_images|b:maps.massgis.state.ma.us/images&symbols=a,c:cow,10,gif|b:med_green_cross_hatch,30,gif&&bbox=-115,6.78,-75.19,29.8&recalculate=false
281 30 Pere Roca Ristol
~~~
282 16 Andreas Kohlbecker
283 16 Andreas Kohlbecker
284 1 Andreas Kohlbecker
285 32 Pere Roca Ristol
#### Using MapRest on a webmapping application
286 30 Pere Roca Ristol
287 43 Niels Hoffmann
All these mapping services can be used on a dynamic webmapping application like [OpenLayers](http://openlayers.org/.) 
288 30 Pere Roca Ristol
289 1 Andreas Kohlbecker
290 1 Andreas Kohlbecker
The question is that, if desired, we return back not an image but a file that specifies the path to the XML that is used for layer symbolization. 
291 31 Pere Roca Ristol
292 32 Pere Roca Ristol
293 31 Pere Roca Ristol
With some little javascript coding you can get dynamic maps (zoom in/out, panning...).
294 1 Andreas Kohlbecker
295 30 Pere Roca Ristol
296 30 Pere Roca Ristol
Some EDIT dataportals using this technology are PalmWeb (http://dev.e-taxonomy.eu/dataportal/palmae/) and Cichorieae (http://dev.e-taxonomy.eu/dataportal/cichorieae/)
297 30 Pere Roca Ristol
298 1 Andreas Kohlbecker
299 1 Andreas Kohlbecker
How to get this file to be integrated on webmapping application? just specify "img=false" and will get a JSON file that could be something similar to...
300 30 Pere Roca Ristol
301 30 Pere Roca Ristol
302 30 Pere Roca Ristol
303 34 Pere Roca Ristol
[{[bbox]("-28.267,27.664,72.65,81.851",)
304 30 Pere Roca Ristol
305 36 Andreas Kohlbecker
[legend]("http://edit.br.fgov.be/edit_wp5/v1/sld/4e9b417a9789481932b57e53c47291c6.sld",) 
306 30 Pere Roca Ristol
307 30 Pere Roca Ristol
308 30 Pere Roca Ristol
[layers":[[{"tdwg" "tdwg3""session" """sld" "tdwg3_4e9b417a9789481932b57e53c47291c6sld"}|{"tdwg": "tdwg1","session": "","sld]() "tdwg1_4e9b417a9789481932b57e53c47291c6.sld"}]]}] 
309 30 Pere Roca Ristol
310 30 Pere Roca Ristol
311 30 Pere Roca Ristol
312 30 Pere Roca Ristol
As you can see, there is the name of XML (SLD) files that provide symbolization for each of specified TDWG layer. Also the legend is specified there.
313 30 Pere Roca Ristol
314 30 Pere Roca Ristol
315 30 Pere Roca Ristol
With some javascript coding you can get dynamic maps. A big advantage of using these widgets is that they automatically calculate the scale at which the image has to be visualized. 
316 30 Pere Roca Ristol
317 30 Pere Roca Ristol
 By this way you can avoid distorted images that too often happen with "image" MapRest services.
318 30 Pere Roca Ristol
319 30 Pere Roca Ristol
320 16 Andreas Kohlbecker
321 16 Andreas Kohlbecker
322 16 Andreas Kohlbecker
323 41 Niels Hoffmann
### Occurrence Maps
324 1 Andreas Kohlbecker
325 36 Andreas Kohlbecker
Service URL: http://edit.br.fgov.be/edit_wp5/v1/points.php
326 4 Andreas Kohlbecker
327 1 Andreas Kohlbecker
328 1 Andreas Kohlbecker
MapRest services also can plot occurrences. Just specify each point data coordinates (in latitude/longitude) 
329 1 Andreas Kohlbecker
330 1 Andreas Kohlbecker
331 33 Pere Roca Ristol
This service is subject to changes soon.
332 32 Pere Roca Ristol
333 33 Pere Roca Ristol
334 32 Pere Roca Ristol
Current symbolization parameters are:
335 17 Andreas Müller
336 1 Andreas Kohlbecker
337 32 Pere Roca Ristol
-symbol: you can choose "c" (a circle),  "s" (a star), and "sq" (square)
338 20 Pere Roca Ristol
339 10 Andreas Kohlbecker
340 32 Pere Roca Ristol
-symbol size
341 10 Andreas Kohlbecker
342 13 Andreas Kohlbecker
343 13 Andreas Kohlbecker
-a name to be used on the legend
344 1 Andreas Kohlbecker
345 1 Andreas Kohlbecker
346 10 Andreas Kohlbecker
347 32 Pere Roca Ristol
348 33 Pere Roca Ristol
Also a "q_layer" has to be specified. It must be the same than the background layer and is used to calculate the bbox. 
349 1 Andreas Kohlbecker
350 1 Andreas Kohlbecker
351 1 Andreas Kohlbecker
352 34 Pere Roca Ristol
ATBI sites like Gemer (http://www.atbi.eu/gemer/) and Mercantour/Alpi-Marittime (http://www.atbi.eu/mercantour-marittime/) are already using this service.
353 33 Pere Roca Ristol
354 33 Pere Roca Ristol
355 1 Andreas Kohlbecker
Also point occurrences can be mapped on a dynamic webmapping application but it is still not implemented.
356 1 Andreas Kohlbecker
357 1 Andreas Kohlbecker
358 1 Andreas Kohlbecker
359 14 Andreas Kohlbecker
~~~
360 8 Andreas Kohlbecker
<code class="html">
361 39 Niels Hoffmann
<img src="http://edit.br.fgov.be/edit_wp5/v1/points.php?l=v:e_w_0&od=1:38.326,-0.822|38.328,-0.542|38.062,-0.893||2:38.062,-0.893|38.012,-1.883||3:40.78,-4.009|43.461,-5.412|38.062,-0.893&os=1:c/f78755/10/Onthophagus%20semipunctatus|2:s/64cb48/10/Euoniticellus%20pallipes|3:sq/cbde4f/10/Onthophagus%20joannae&ms=700,350&bbox=-10,36,8,45&recalculate=true&legend=1" />
362 8 Andreas Kohlbecker
~~~
363 8 Andreas Kohlbecker
364 8 Andreas Kohlbecker
~~~
365 47 Franck Theeten
l=v:e_w_0&od=1:38.326,-0.822|38.328,-0.542|38.062,-0.893||2:38.062,-0.893|38.012,-1.883||3:40.78,-4.009|43.461,-5.412|38.062,-0.893&os=1:c/f78755/10/Onthophagus%20semipunctatus|2:s/64cb48/10/Euoniticellus%20pallipes|3:sq/cbde4f/10/Onthophagus%20joannae&ms=700,350&bbox=-10,36,8,45&recalculate=true&legend=1
366 47 Franck Theeten
~~~
367 47 Franck Theeten
368 49 Franck Theeten
369 47 Franck Theeten
370 47 Franck Theeten
371 47 Franck Theeten
## Map REST Service - Version 2
372 47 Franck Theeten
373 47 Franck Theeten
_ Does not conform to the latest syntax definition! _
374 47 Franck Theeten
375 47 Franck Theeten
376 47 Franck Theeten
377 47 Franck Theeten
### Distribution Maps
378 47 Franck Theeten
379 47 Franck Theeten
Service URL: 
380 47 Franck Theeten
381 47 Franck Theeten
http://edit.br.fgov.be/edit_wp5/v1.2/rest_gen.php
382 47 Franck Theeten
383 47 Franck Theeten
http://edit.br.fgov.be/edit_wp5/v1.2/points.php
384 47 Franck Theeten
385 47 Franck Theeten
http://edit.br.fgov.be/edit_wp5/v1.2/areas.php
386 47 Franck Theeten
387 47 Franck Theeten
388 47 Franck Theeten
rest_gen.php merges the functionnalities of points.php and areas.php. 
389 47 Franck Theeten
390 48 Franck Theeten
points.php and areas.php are still available as aliases to rest_gen for backward compatibility reasons.
Add picture from clipboard (Maximum size: 40 MB)