Mkgmap e mappe Garmin da Openstreetmap (OSM)

  • Cominciano a vedersi in giro le prime bici con il nuovo motore Bosch SX, la drive unit per le ebike leggere del marchio tedesco. Dopo la Canyon Neuron ON Fly è la volta della Mondraker Dune. Andiamo a vedere nel dettaglio le differenze fra il CX full power e l’SX, quanto quest’ultimo sia potente e quale autonomia offre con la sua batteria standard di 420WH.
    Iscriviti al canale se non l'hai ancora fatto (clicca qui).


ataro

Biker celestialis
16/4/09
7.778
9
0
Marche
Visita sito
Mettendo alla fine del file relations:

access =* { echotags "Relation" }
addr:city =* { echotags "Relation" }
addr:housename =* { echotags "Relation" }
addr:housenumber =* { echotags "Relation" }
addr:postcode =* { echotags "Relation" }
addr:street =* { echotags "Relation" }
admin_level =* { echotags "Relation" }
aeroway =* { echotags "Relation" }
alt_name =* { echotags "Relation" }
amenity =* { echotags "Relation" }
area =* { echotags "Relation" }
beach =* { echotags "Relation" }
bicycle =* { echotags "Relation" }
boundary =* { echotags "Relation" }
boundary:type =* { echotags "Relation" }
building =* { echotags "Relation" }
colour =* { echotags "Relation" }
community =* { echotags "Relation" }
community:en =* { echotags "Relation" }
community:fr =* { echotags "Relation" }
community:gender =* { echotags "Relation" }
community:it =* { echotags "Relation" }
corine:id =* { echotags "Relation" }
denomination =* { echotags "Relation" }
destination =* { echotags "Relation" }
distance =* { echotags "Relation" }
electrified =* { echotags "Relation" }
enforcement =* { echotags "Relation" }
e-road:class =* { echotags "Relation" }
except =* { echotags "Relation" }
fee =* { echotags "Relation" }
fixme =* { echotags "Relation" }
foot =* { echotags "Relation" }
frequency =* { echotags "Relation" }
from =* { echotags "Relation" }
fuel:cng =* { echotags "Relation" }
gauge =* { echotags "Relation" }
generator:method =* { echotags "Relation" }
generator:output:electricity =* { echotags "Relation" }
generator:source =* { echotags "Relation" }
gfoss_id =* { echotags "Relation" }
heritage =* { echotags "Relation" }
heritage:operator =* { echotags "Relation" }
highway =* { echotags "Relation" }
historic =* { echotags "Relation" }
horse =* { echotags "Relation" }
int_ref =* { echotags "Relation" }
is_in =* { echotags "Relation" }
iso3166-2 =* { echotags "Relation" }
landcover =* { echotags "Relation" }
landuse =* { echotags "Relation" }
layer =* { echotags "Relation" }
leisure =* { echotags "Relation" }
loc_name =* { echotags "Relation" }
loc_ref =* { echotags "Relation" }
man_made =* { echotags "Relation" }
maxspeed =* { echotags "Relation" }
motorroad =* { echotags "Relation" }
mtb =* { echotags "Relation" }
mtb:type =* { echotags "Relation" }
name =* { echotags "Relation" }
name:de =* { echotags "Relation" }
name:en =* { echotags "Relation" }
name:eo =* { echotags "Relation" }
name:es =* { echotags "Relation" }
name:fr =* { echotags "Relation" }
name:fur =* { echotags "Relation" }
name:it =* { echotags "Relation" }
name:pl =* { echotags "Relation" }
name:pt =* { echotags "Relation" }
name:ru =* { echotags "Relation" }
name:sl =* { echotags "Relation" }
nat_ref =* { echotags "Relation" }
natural =* { echotags "Relation" }
network =* { echotags "Relation" }
note =* { echotags "Relation" }
official_name =* { echotags "Relation" }
old_name =* { echotags "Relation" }
old_ref =* { echotags "Relation" }
operator =* { echotags "Relation" }
operator:it =* { echotags "Relation" }
osmc:symbol =* { echotags "Relation" }
parking =* { echotags "Relation" }
pilgrimage =* { echotags "Relation" }
place =* { echotags "Relation" }
population =* { echotags "Relation" }
power =* { echotags "Relation" }
protect_class =* { echotags "Relation" }
protection_title =* { echotags "Relation" }
public_transport =* { echotags "Relation" }
ref =* { echotags "Relation" }
ref:catasto =* { echotags "Relation" }
ref:ISTAT =* { echotags "Relation" }
reg_ref =* { echotags "Relation" }
religion =* { echotags "Relation" }
restriction =* { echotags "Relation" }
route =* { echotags "Relation" }
section =* { echotags "Relation" }
shop =* { echotags "Relation" }
short_name =* { echotags "Relation" }
site =* { echotags "Relation" }
site_ownership =* { echotags "Relation" }
site_status =* { echotags "Relation" }
source =* { echotags "Relation" }
sport =* { echotags "Relation" }
start_date =* { echotags "Relation" }
state =* { echotags "Relation" }
supervised =* { echotags "Relation" }
surface =* { echotags "Relation" }
symbol =* { echotags "Relation" }
to =* { echotags "Relation" }
tourism =* { echotags "Relation" }
train =* { echotags "Relation" }
type =* { echotags "Relation" }
via =* { echotags "Relation" }
voltage =* { echotags "Relation" }
waterway =* { echotags "Relation" }
website =* { echotags "Relation" }
whc:criteria =* { echotags "Relation" }
whc:inscription_date =* { echotags "Relation" }
whc:ref =* { echotags "Relation" }
wiki:symbol =* { echotags "Relation" }
wikipedia =* { echotags "Relation" }
wood =* { echotags "Relation" }

si ottiene:

2048968 - [osmc:symbol=green:red:white_lower:green_bar:Cammino di Assisi:black,source=GPS,pilgrimage=yes,network=nwn,website=http://www.camminodiassisi.it] Relation
2048968 - [osmc:symbol=green:red:white_lower:green_bar:Cammino di Assisi:black,source=GPS,pilgrimage=yes,network=nwn,website=http://www.camminodiassisi.it] Relation
2048968 - [osmc:symbol=green:red:white_lower:green_bar:Cammino di Assisi:black,source=GPS,pilgrimage=yes,network=nwn,website=http://www.camminodiassisi.it] Relation
2048968 - [osmc:symbol=green:red:white_lower:green_bar:Cammino di Assisi:black,source=GPS,pilgrimage=yes,network=nwn,website=http://www.camminodiassisi.it] Relation
2048968 - [osmc:symbol=green:red:white_lower:green_bar:Cammino di Assisi:black,source=GPS,pilgrimage=yes,network=nwn,website=http://www.camminodiassisi.it] Relation
3164710 - [boundary=national_park,name=Parco Nazionale del Gran Sasso e Monti della Laga,type=multipolygon] Relation
3164710 - [boundary=national_park,name=Parco Nazionale del Gran Sasso e Monti della Laga,type=multipolygon] Relation
3164710 - [boundary=national_park,name=Parco Nazionale del Gran Sasso e Monti della Laga,type=multipolygon] Relation
41842 - [wikipedia=it:L'Aquila,admin_level=8,ref:catasto=A345,ref:ISTAT=066049] Relation
41842 - [wikipedia=it:L'Aquila,admin_level=8,ref:catasto=A345,ref:ISTAT=066049] Relation
41842 - [wikipedia=it:L'Aquila,admin_level=8,ref:catasto=A345,ref:ISTAT=066049] Relation
41842 - [wikipedia=it:L'Aquila,admin_level=8,ref:catasto=A345,ref:ISTAT=066049] Relation
 

Clif1969

Biker popularis
31/3/13
81
0
0
54
Tarcento (UD)
Visita sito
Buonasera mitici, come va? Tempo fa avevo letto di una utility che consentiva di evidenziare quali tags, presenti nella mappa osm, non vengono compilati da mkgmak perché non presi in considerazione... Ho provato a cercare nel forum ma questa utility non lo trovo più. Qualcuno ne ha notizia? 😀😀😀
 

ataro

Biker celestialis
16/4/09
7.778
9
0
Marche
Visita sito
Buonasera mitici, come va? Tempo fa avevo letto di una utility che consentiva di evidenziare quali tags, presenti nella mappa osm, non vengono compilati da mkgmak perché non presi in considerazione... Ho provato a cercare nel forum ma questa utility non lo trovo più. Qualcuno ne ha notizia? 😀😀😀
Eccolo:
http://pinns.co.uk/osm/osm2style.html
Comunque non funziona.
Molti tag non li trova, altri se li inventa.
 

Clif1969

Biker popularis
31/3/13
81
0
0
54
Tarcento (UD)
Visita sito
Eccolo:
http://pinns.co.uk/osm/osm2style.html
Comunque non funziona.
Molti tag non li trova, altri se li inventa.

... Peccato che non faccia il suo dovere perché mi sembrava un tool interessante...
Comunque lo voglio provare lo stesso tanto per vedere cosa mi dice e/o si inventa in merito alla mappa della mia zona.
Ataro, grazie per i suggerimanti e buone gite 😉
 

ataro

Biker celestialis
16/4/09
7.778
9
0
Marche
Visita sito
Allego l'elenco dei tags presenti nell'ultimo database osm dell'Italia, utile per chi vuole usare echotags. Nei tre files i tags dei node (da usare in points come spiegato sopra), delle way (da usare in lines e polygons) e delle relation (usare in relations).
 

Allegati

  • Tags.rar
    27,2 KB · Visite: 10

sembola

Moderatur cartesiano
Membro dello Staff
Moderatur
27/2/03
50.755
9.158
0
57
Siena
www.sembola.it
Bike
una nera e l'altra pure
Oggi ho scaricato i dati e li ho compilati come sempre, o meglio ho provato a farlo, perchè mkgmap dà il seguente errore e si blocca...

Grave (MapSplitter): 7024000.osm.gz: Area too small to split at .... (reduce the density of points, length of lines, etc.)

La procedura è sempre la stessa, faccio lo split con --max-nodes=1000000 --overlap=5000 --max-areas=255 --no-trim

Ho provato a diminuire i nodi a 600mila ma stesso risultato... :nunsacci:
 

scratera

Biker nirvanensus
30/6/07
26.176
2.376
0
rovereto TN
Visita sito
Bike
...
.. [MENTION=351]sembola[/MENTION] assomiglia un po' al problema che avevo tempo fa...prova ad aumentare la memoria di lavoro di mkgmap agendo sulla memoria assegnata a java
Xmx4000m -jar
 

ataro

Biker celestialis
16/4/09
7.778
9
0
Marche
Visita sito
Ho scoperto una caratteristica del funzionamento interno di MkGmap non documentata, della quale però bisogna tenere presente (o potenzialmente sfruttare).
La illustro e poi commento con un esempio.
Gli elementi coinvolti sono:
PHP:
<relation id="53060">
    <member type="node" ref="70978800" role="admin_centre"/>
    <member type="node" ref="1781917325" role="label"/>
.........
    <member type="way" ref="117005857" role="outer"/>
    <member type="way" ref="120486829" role="outer"/>
    <tag k="admin_level" v="4"/>
    <tag k="boundary" v="administrative"/>
    <tag k="iso3166-2" v="IT-57"/>
    <tag k="name" v="Marche"/>
    <tag k="name:de" v="Marken"/>
    <tag k="name:eo" v="Markio"/>
    <tag k="name:es" v="Marcas"/>
    <tag k="name:fr" v="Marches"/>
    <tag k="name:pt" v="Marcas"/>
    <tag k="name:ru" v="Марке"/>
    <tag k="name:sl" v="Marke"/>
    <tag k="ref:ISTAT" v="11"/>
    <tag k="short_name" v="MAR"/>
    <tag k="type" v="boundary"/>
    <tag k="wikipedia" v="it:Marche"/>
  </relation>

  <way id="117005857">
    <nd ref="1317848129"/>
.............
    <nd ref="306934550"/>
    <tag k="admin_level" v="4"/>
    <tag k="boundary" v="administrative"/>
    <tag k="city:left" v="Scheggia e Pascelupo"/>
    <tag k="city:right" v="Frontone"/>
    <tag k="province:left" v="Perugia"/>
    <tag k="province:right" v="Pesaro e Urbino"/>
    <tag k="region:left" v="Umbria"/>
    <tag k="region:right" v="Marche"/>
    <tag k="source" v="Based on ISTAT data - 2011 Italian Census"/>
  </way>
Usando echotags alla fine di relations si ottiene:
ripetuto 12 volte
53060 - [
name:de=Marken,
name:ru=?????,
name:pt=Marcas,
admin_level=4,
ref:ISTAT=11,
wikipedia=it:Marche,
iso3166-2=IT-57,
name:eo=Markio,
name:fr=Marches,
name:es=Marcas,
name:sl=Marke,
short_name=MAR] Relation

solo 12 tag sono intercettati, poiché tre sono stati cancellati dal codice in relations:

Codice:
# Boundary relations
(type=boundary | type=multipolygon) & boundary=administrative & name=*
{
  # Append the name of the boundary relation to the attribute
  # mkgmap:boundary_name of the member nodes recursively
  apply {
    set mkgmap:boundary_name='$(mkgmap:boundary_name):${name}' | '${name}';
  }

  # Prevent other relation processing
  delete type; delete boundary; delete name;
}
da echotags in lines e polygons si ottiene:
pipetuto 7 volte con Line e 7 volte con Polygon (intercettato alla fine di polygons)
117005857 - [
province:left=Perugia,
province:right=Pesaro e Urbino,
city:left=Scheggia e Pascelupo,
region:right=Marche,
mkgmap:boundary_name=Umbria:Marche:Perugia:Pesaro e Urbino:Scheggia e Pascelupo:Frontone,
source=Based on ISTAT data - 2011 Italian Census,
city:right=Frontone,
region:left=Umbria] Polygon->
Il codice che intercetta questo elemento è in lines:
Codice:
boundary=administrative { name '${mkgmap:boundary_name}' }
boundary=administrative & admin_level<5 [0x1d resolution 19]
In questo caso l'elemento su mappa è stato effettivamente generato, ma l'elaborazione non è stata stoppata in queste righe in lines, come è dichiarato nel manuale. Sono stati invece cancellati alcuni tags, quelli coinvolti con il matching, mentre l'elaborazione è continuata sino alla fine del file polygons (forse per dare la possibilità di elaborare ii tags rimanenti).
I tags che mancano sono:
name, boundary e admin_level
Anche name manca, forse perché nella sezione
PHP:
<finalyze>
è presente
Codice:
name=* { name '${name}' }
 

ataro

Biker celestialis
16/4/09
7.778
9
0
Marche
Visita sito
Oggi ho scaricato i dati e li ho compilati come sempre, o meglio ho provato a farlo, perchè mkgmap dà il seguente errore e si blocca...

Grave (MapSplitter): 7024000.osm.gz: Area too small to split at .... (reduce the density of points, length of lines, etc.)

La procedura è sempre la stessa, faccio lo split con --max-nodes=1000000 --overlap=5000 --max-areas=255 --no-trim

Ho provato a diminuire i nodi a 600mila ma stesso risultato... :nunsacci:
Hai già risolto, cmq io splitto un file xml osm non compresso da 100 Mb circa con questi parametri
Codice:
C:\Users\UTENTE\Documents\OSM Map\Scripts>"C:\Program Files"\Java\jre7\bin\java
-enableassertions -Xmx8192M -jar ..\splitter-r314\splitter.jar --mapid=69030001
src\AN.osm --mixed --output=pbf --keep-complete=false --max-nodes=1200000 --poly
gon-file=bounds.poly
Splitter version 314 compiled 2013-11-27T13:46:17+0000
boundary-tags=use-exclude-list
cache=
description=
geonames-file=
keep-complete=false
mapid=69030001
max-areas=512
max-nodes=1200000
max-threads=8 (auto)
mixed=true
no-trim=false
output=pbf
output-dir=
overlap=auto
polygon-file=bounds.poly
precomp-sea=
problem-file=
problem-report=
resolution=13
split-file=
status-freq=120
stop-after=dist
write-kml=
Setting default overlap=2000 because keep-complete=false is in use.
Parameter --boundaryTags is ignored, because parameter --keep-complete=false is
used
Elapsed time: 0s   Memory: Current 121MB (3MB used, 118MB free) Max 7282MB
Time started: Sat Feb 08 15:45:21 CET 2014
Map is being split for resolution 13:
 - area boundaries are aligned to 0x800 map units (0.0439453125 degrees)
 - areas are multiples of 0x800 map units wide and high
Processing src\AN.osm
in 1 file
senza nessun problema
 

ataro

Biker celestialis
16/4/09
7.778
9
0
Marche
Visita sito
Altro consiglio, che forse si vede poco sopra, i file prodotti dallo splitter è meglio che siano pbf (o o5m), piuttosto che xml osm compressi (7024000.osm.gz). Usa il parametro --output=pbf (o5m)
 

stefano6413

Biker ultra
17/10/11
677
5
0
mestre
Visita sito
:specc: fermo ancora prima che si accenda il semaforo verde

seguendo le istruzioni di scatera volevo aggiornare lo splitter e mkgmap dello script createIMG, per cominciare a fare delle prove, ho scaricato i due zip, li ho estratti e cosi come erano li ho copiati nella cartella bin, ma dopo un po' mi dice "sorry compiling task has failed" cosa sbaglio ?
 

scratera

Biker nirvanensus
30/6/07
26.176
2.376
0
rovereto TN
Visita sito
Bike
...
:specc: fermo ancora prima che si accenda il semaforo verde

seguendo le istruzioni di scatera volevo aggiornare lo splitter e mkgmap dello script createIMG, per cominciare a fare delle prove, ho scaricato i due zip, li ho estratti e cosi come erano li ho copiati nella cartella bin, ma dopo un po' mi dice "sorry compiling task has failed" cosa sbaglio ?
...se non lo hai mai aggiornato sappi che da gennaio mkgmap è cambiato parecchio...io ho dovuto ricompilarmi tutti i vari file di style...o-o..
 

scratera

Biker nirvanensus
30/6/07
26.176
2.376
0
rovereto TN
Visita sito
Bike
...
avevo letto che si poteva usare josm ma non trovo come salvare nel formato .pbf
...io salvo in formato .osm.bz2
...se usi lo script di certelli lo modifichi nella riga
set country=italy
...con il nome che salvi il file

sostituisci
rem 2) search for xxx.osm.bz2 file
...cin il nome del tuo file.osm.bz
...e questo dovrebbe essere tutto...visto che lo script cerca prima il file

  1. xxx.osm
  2. xxx.osm.bz2
  3. xxx.osm.pbf
  4. xxx-latest.osm.pbf
...dopo di che va a compilare quello che trova....o-o..
 

stefano6413

Biker ultra
17/10/11
677
5
0
mestre
Visita sito
...io salvo in formato .osm.bz2
...se usi lo script di certelli lo modifichi nella riga
set country=italy
...con il nome che salvi il file

sostituisci
rem 2) search for xxx.osm.bz2 file
...cin il nome del tuo file.osm.bz
...e questo dovrebbe essere tutto...visto che lo script cerca prima il file

  1. xxx.osm
  2. xxx.osm.bz2
  3. xxx.osm.pbf
  4. xxx-latest.osm.pbf
...dopo di che va a compilare quello che trova....o-o..
ok grazie
 

stefano6413

Biker ultra
17/10/11
677
5
0
mestre
Visita sito
scusate se l'avete gia spiegato, sono due giorni che leggo il 3d e le istruzioni
forse sono un po' duro, ma non riesco a capire dove trovare il numero da attriburire al punto
esempio preso nelle istruzioni:
[POI]
Type=0x1101
String=0,addr housenumbe
String=5,numero civico
TextSize=2
Color=0,0x000080
Color=1,0xffffff
Line=1111111111
Line=1000000001
Line=1010000101
Line=1011000101
Line=1010100101
Line=1010010101
Line=1010001101
Line=1010000101
Line=1000000001
Line=1111111111
[END]
nelle istruzioni c'è una lista ma ad esempio non ci sono i rifugi
per creare un immagine dei rifugi, nel file typ che numero devo mettere
 

Classifica giornaliera dislivello positivo

Classifica mensile dislivello positivo