-
Notifications
You must be signed in to change notification settings - Fork 1
/
OSMTests.txt
61 lines (56 loc) · 2.47 KB
/
OSMTests.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
OSM Buildings
(ymin, xmin, ymax, xmax)
Cas 1 : parts avec noeuds en commun
POLYGON((30.05430313958436 51.404795567637294,30.055118531124887 51.404795567637294,30.055118531124887 51.40432372279637,30.05430313958436 51.40432372279637,30.05430313958436 51.404795567637294))
(51.40432372279637,30.05430313958436,51.404795567637294,30.055118531124887)
Principal : https://www.openstreetmap.org/way/84141390
> building apartments
> building:levels 16
Part : https://www.openstreetmap.org/way/776382600
> building:part yes
> building:levels 17
=> Noeuds en commun
[out:json]
[timeout:100];
(
way["building"] (51.40432372279637,30.05430313958436,51.404795567637294,30.055118531124887);
way["building:part"] (51.40432372279637,30.05430313958436,51.404795567637294,30.055118531124887);
relation[type=building] (51.40432372279637,30.05430313958436,51.404795567637294,30.055118531124887);
relation["building"] (51.40432372279637,30.05430313958436,51.404795567637294,30.055118531124887);
);
out body;
>;
out skel qt;
Cas 2 :
POLYGON((30.062877280833636 51.40748141189236,30.063456637980853 51.40748141189236,30.063456637980853 51.40716017522757,30.062877280833636 51.40716017522757,30.062877280833636 51.40748141189236))
()
Principal : https://www.openstreetmap.org/way/84141939
> building apartments
> building:levels 9
https://www.openstreetmap.org/way/776382607
> building:part yes
> building:levels 10
[out:json]
[timeout:100];
(
way["building"] (51.40716017522757,30.062877280833636,51.40748141189236,30.063456637980853);
way["building:part"] (51.40716017522757,30.062877280833636,51.40748141189236,30.063456637980853);
relation[type=building] (51.40716017522757,30.062877280833636,51.40748141189236,30.063456637980853);
relation["building"] (51.40716017522757,30.062877280833636,51.40748141189236,30.063456637980853);
);
out body;
>;
out skel qt;
Cas 3 : relation et multipoly
POLYGON((30.065251398582948 51.407283441091266,30.066243815918458 51.407283441091266,30.066243815918458 51.40558353075506,30.065251398582948 51.40558353075506,30.065251398582948 51.407283441091266))
[out:json]
[timeout:100];
(
way["building"] (51.40558353075506,30.065251398582948,51.407283441091266,30.066243815918458);
way["building:part"] (51.40558353075506,30.065251398582948,51.407283441091266,30.066243815918458);
relation[type=building] (51.40558353075506,30.065251398582948,51.407283441091266,30.066243815918458);
relation["building"] (51.40558353075506,30.065251398582948,51.407283441091266,30.066243815918458);
);
out body;
>;
out skel qt;