[OSM-talk-fr] Compte-rendu d'une sortie découverte en VTT
Romain MEHUT
romain.mehut at gmail.com
Jeu 15 Mar 21:32:39 UTC 2012
Bonsoir,
L'idée me trottait dans la tête depuis un moment, je me suis enfin lancé à
tester Maperitive.
Pour mon premier essai, je suis donc parti sur l'itinéraire que j'ai repéré
en février sur la commune de Plancoët.
L'export png est disponible
ici<https://docs.google.com/open?id=0B-VTP3CNuo8TNVRqekRIYm5SaC1LbmdsdnBvcTlQQQ>et
le fichier rules est joint à ce mail.
C'est l'étape exploitation des données (comme le disait Gilles dans son
message intitulé "La néo-géographie sur ses deux jambes) qu'il me manquait
pour valoriser les données récoltées et accroitre ainsi l'intérêt d'OSM
auprès des personnes que je rencontre.
Donc pour en revenir à la carte réalisée grâce à Maperitive, il me reste
quelques réglages pour lesquels j'aurai besoin d'aide:
- j'ai appliqué un icône pour tourism=information mais dans mon cas je ne
souhaite l'afficher que pour l'Office de tourisme. Les autres correspondent
à des guidepost. Y-a-t'il une commande pour qui permettrait de faire la
distinction?
- la relation route=hiking porte un nom mais je n'arrive pas à l'afficher;
- idem pour le nom de la rivière ;
- toujours pour la rivière, pourquoi son tracé s'arrête-il au contact de la
zone résidentielle?
- enfin, comment séparer les icône hôtel et restaurant qui appartiennent au
même nœud?
Merci par avance de partager vos expériences avec Maperitive.
Romain
Le 24 février 2012 11:12, Romain MEHUT <romain.mehut at gmail.com> a écrit :
> Le 24 février 2012 10:45, Pieren <pieren3 at gmail.com> a écrit :
>
> 2012/2/24 Romain MEHUT <romain.mehut at gmail.com>:
>>
>> Est-ce que cet itinéraire est balisé sur le terrain ? Est-il définit
>> par une quelconque autorité ?
>>
>
> Oui comme je viens de le dire. Il lui manque cependant un nom...
>
>
>> D'après moi (et d'autres), c'est une condition indispensable pour
>> importer des itinéraires dans OSM.
>>
>> Pieren
>> _______________________________________________
>> Talk-fr mailing list
>> Talk-fr at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-fr
>>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/talk-fr/attachments/20120315/9a1f16ef/attachment.htm>
-------------- section suivante --------------
// Maperitive rendering ruleset for hiking maps. The map style resembles
// that of paper hiking maps produced by Alpine Association of Slovenia (http://www.pzs.si/).
// http://maperitive.net
// Created by Igor Brejc
// Released under the Creative Commons Attribution-ShareAlike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/)
// export-bitmap file=outputs\test2.png width=1000 height=1000 zoom=14 scale=3
// TODO (stuff still missing, will be added soon)
// join all hiking paths
// natural reserve
// bus stop "D:\Programs\Geo\Maperitive\Icons\SJJB\png\transport_bus_station.glow.32.png"
// parking "D:\Programs\Geo\Maperitive\Icons\SJJB\png\transport_parking.n.32.png"
// drinking water
// hunting stand
// viewpoint "D:\Programs\Geo\Maperitive\Icons\SJJB\png\tourist_view_point.p.32.png"
// hiking routes (SLO)
// surface unpaved
// marsh
// border
// tower
// quarry
// ruins
// church - icon
// camping
// mountain hut
// barrier
// ditch
// bench
// information table
// guidepost
features
church : amenity=place_of_worship AND (religion=christian OR religion=Christian)
food : amenity=restaurant OR amenity=fast_food OR tourism=guest_house
alpine hut : tourism=alpine_hut
shelter : amenity=shelter
place : node[place OR landuse=farmyard] area[place OR landuse=farmyard]
railway station : railway=station
power tower : @isOneOf(power, tower, station, sub_station)
points
peak : natural=peak
attraction: tourism=attraction
tourism: tourism=information
guidepost: information=guidepost
hotel: tourism=hotel
lines
aerialway : aerialway
contour major : contour[@isMulti(elevation, 50)]
contour minor : contour[@isMulti(elevation, 10) and not @isMulti(elevation, 50)]
hiking route : relation[type=route route=hiking] way[trailblazed=yes]
// hiking route major : relation[type=route route=foot @isOneOf(network, iwn, nwn)]
// hiking route minor : relation[type=route route=foot @isOneOf(network, rwn, lwn)]
// hiking route other : trailblazed=yes
foot path major : (highway=footway OR highway=path) AND (NOT trail_visibility OR @isOneOf(trail_visibility, excellent, good))
foot path minor : (highway=footway OR highway=path) AND (trail_visibility AND NOT @isOneOf(trail_visibility, excellent, good))
road major : highway=motorway OR highway=trunk OR highway=primary OR highway=secondary OR highway=tertiary
road minor : highway=residential OR highway=unclassified OR highway=service
track : highway=track
railway : railway=rail
power line : @isOneOf(power, line, minor_line)
stream : waterway=stream
areas
building : building=yes
residential : landuse=residential
forest : landuse=forest OR natural=wood OR leisure=park
water : natural=water OR waterway=riverbank OR landuse=reservoir OR landuse=basin
nature reserve : boundary=national_park OR boundary=protected_area OR leisure=nature_reserve
military : landuse=military OR military=danger_area
properties
curved : true
text-halo-width : 30%
text-halo-opacity : 0.75
rules
target : place
for : place=city
define
min-zoom : 8
max-zoom : 14
font-size : 8:12;10:16;14:20
elsefor : place=town
define
min-zoom : 10
font-size : 10:12;16:20
elsefor : place=village
define
min-zoom : 13
font-size : 13:10;16:20
elsefor : place=hamlet
define
min-zoom : 13
max-zoom : 20
font-size : 13:5;16:12
elsefor : place=farm OR landuse=farmyard
define
min-zoom : 15
font-size : 15:8;16:14
else
stop
define
font-weight : bold
text : @up(name)
draw : text
target : peak
define
fill-color : black
line-style : none
min-zoom : 11
shape : circle
shape-size : 11:3;15:8
draw : shape
define
font-family : Cambria
font-style : italic
font-weight : bold
font-size : 13:10;15:20
min-zoom : 13
text : @if(name, name @if(ele, "\n(" ele ")"), ele)
text-align-vertical : near
text-color : black
text-max-width : 15
text-offset-vertical : 50%
text-halo-width : 30%
text-halo-opacity : 0.75
draw : text
target: alpine hut
define
icon-image : icons/SJJB/png/accommodation_alpinehut.glow.32.png
icon-width : 11:16;14:34
min-zoom : 11
draw : icon
define
font-family : Arial Black
font-weight : bold
font-size : 13:13;20:24
font-stretch : 0.7
min-zoom : 13
text-align-vertical : near
text-offset-vertical : 100%
draw : text
target: attraction
define
icon-image : icons/SJJB/png/star.png
draw : icon
define
text-color : black
font-size : 13:10;17:16
text-offset-vertical : 13:-20;18:-20
draw : text
target: tourism
define
icon-image : icons/SJJB/png/amenity_information.n.32.png
icon-width : 10:15;20:15
draw : icon
define
min-zoom : 13
max-zoom : 20
font-size : 13:10;17:16
text-color : blue
text-offset-vertical : 13:-60;18:-60
font-stretch : 1
font-weight : bold
text-halo-width : 4
draw : text
target: hotel
define
icon-image : icons/SJJB/png/accommodation_hotel2.glow.32.png
icon-width : 10:15;20:15
draw : icon
target: shelter
define
icon-image : icons/SJJB/png/accommodation_shelter2.n.32.png
icon-width : 14:16;15:24
min-zoom : 14
draw : icon
target: food
define
icon-image : icons/SJJB/png/food_restaurant.n.32.png
icon-width : 10:15;20:15
min-zoom : 10
draw : icon
target: church
define
icon-image : icons/SJJB/png/place_of_worship_christian3.glow.32.png
icon-width : 14:16;20:30
min-zoom : 13
draw : icon
target : railway station
define
min-zoom : 10
align-horizontal: far
icon-image : icons/SJJB/png/transport_train_station2.glow.32.png
draw : icon
target : power tower
define
min-zoom : 15.5
shape : square
shape-size : 16:7;20:12
fill-color : black
line-style : none
draw : shape
// lines
target : aerialway
define
shape-size : 12:2;16:6
shape-spacing : 11:1;13:4;14:6
for : aerialway=cable_car OR aerialway=gondola
define
min-zoom : 12.5
fill-color : white
line-width : 13:2;15:3
elsefor : aerialway=chair_lift
define
min-zoom : 13.5
fill-color : black
line-width : 13:1;14:2
else
define
min-zoom : 14
fill-color : black
line-width : 13:1;14:2
draw : line
define
line-width : 2
draw : shape
target : power line
define
curved : false
min-zoom : 15.5
line-width : 1
draw : line
target: hiking route*
define
line-color : yellow
line-opacity : 0.8
line-offset : 10:1;15:8
line-offset-sides : left
for : network=nwn
define
min-zoom : 10
line-width : 40
else
define
min-zoom : 12
line-width : 10:1;11:2;15:7
draw : line
draw : text
target: hiking path
define
min-zoom : 12
line-color : red
line-opacity : 0.8
line-width : 11:1;14:2;15:4
line-offset : 14:0;15:3;16:5
line-offset-sides : left
line-style : dash
draw : line
target : railway
define
line-width : 9:1;10:2;13:2;14:3
draw : line
target : road major
define
min-zoom : 10
line-color : #FFE66B
line-width : 10:0.5;13:2;14:2;16:3
border-style : solid
border-color : black
border-width : 80%
border-opacity : 0.8
draw : line
define
min-zoom : 10
max-zoom : 20
font-size : 10:8;13:9;15:15
text-offset-vertical : 10:-12;20:-11
font-stretch : 1
font-weight : bold
text-halo-width : 4
draw : text
target : road minor
define
min-zoom : 10
line-color : white
line-width : 10:0.5;13:2;14:2;16:3
border-style : solid
border-color : black
border-width : 80%
border-opacity : 0.8
draw : line
define
min-zoom : 10
max-zoom : 20
font-size : 10:8;13:9;15:15
text-offset-vertical : 10:-12;20:-11
font-stretch : 1
font-weight : bold
text-halo-width : 4
draw : text
target : track
define
min-zoom : 10
line-color : white
line-style : dash
line-width : 10:1;14:2;16:3
border-style : solid
border-color : black
border-width : 60%
border-opacity : 0.8
draw : line
define
min-zoom : 10
max-zoom : 15
line-color : black
line-width : 1
border-style : none
draw : line
target : foot path*
define
line-color : black
line-style : dash
border-style : none
if : *major
define
min-zoom : 10
line-width : 10:1;15.5:2
else
define
min-zoom : 15
line-width : 1
draw : line
target : stream
define
min-zoom : 13
line-color : #78C1C1
line-width : 13:1;14:2;16:3
draw : line
define
min-zoom : 15
font-size : 15:10;17:17
font-style : italic
font-weight : bold
text-color : #78C1C1 black 10%
map.rendering.lflp.min-buffer-space : 5
map.rendering.lflp.max-allowed-corner-angle : 90
draw : text
target: contour*
define
line-color : #7f3300
line-opacity : 0.35
curved : true
if : *major
define
min-zoom : 13
line-width : 11:0.1;12.9:1;13:2
else
define
min-zoom : 13
line-width : 1
draw : contour
// areas
target : building
define
fill-color : black
line-style : none
min-zoom : 12
draw : fill
target : nature_reserve
define
line-color : #8DC56C black 20%
line-opacity : 1
line-width : 3
line-style : dash
font-size : 3:3;12:12
text-color : green
font-weight : normal
text : @up(name)
draw : line
define
min-zoom : 13.5
draw : text
target : military
define
fill-color : red
fill-hatch : swne
fill-hatch-color : white
fill-hatch-opacity : 0
line-style : none
draw : fill
target : $featuretype(area)
define
line-style : none
line-width : 1
if : forest
define
min-zoom : 9
fill-color : #8DC56C white 60%
fill-texture : Textures/ForestNoiseLight.jpg
elseif : water
define
fill-color : #78C1C1 white 10%
elseif : residential
define
fill-color : #DCDCDC white 30%
else
stop
draw : fill
define
min-zoom : 17
draw : text
target : water
define
min-zoom : 15
font-size : 15:10;17:17
font-style : italic
font-weight : bold
text-color : #78C1C1 black 10%
draw : text
Plus d'informations sur la liste de diffusion Talk-fr