Diary Entries in Italian
Recent diary entries
Intro
When I first came across GP, I appreciated the fast and simple interface that allows to spare menu navigation time in favour of environment observations. Besides, in GP very few things are predefined, allowing you to customize background maps and forms which are the main features for an efficent survey. What is apparently missing is a compatibility with Openstreetmap: some way to easily get osm-xml format files suitable to be piped to JOSM editor. Of course GP is not an OSM integrated editor such as Vespucci, OSMcontributor, etc. which require stable data connection, but its strength is in flexibility, quickness and simplicity in data gathering.
Form presets
GP forms help to provide a GUI with human readable input and structured output. In order to show you the different recording possibilities, GP comes with predefined forms; these forms define mainly text notes, but also photo and sketch notes Forms are defined in tags.json file (file manager, built-in storage > geopaparazzi folder). The simple trick to have an OSM ready survey tool is customizing tag.json. Starting reading the default one could give you an idea about structure to be used for obtaining OSM xml’s.
OSM customization
Oggi giornata relax
Weed
Ultimamente ho ripreso a mappare, se sei interessato a condividere il lavoro in zona Friuli e Veneto Orientale contattami pure.
Oggi 18/07/2019 sono venuto a conoscenza di un antico toponimo nel terreno degli eredi Perra Tiziano e Daniele, nella macro localita’ is Benatzus Maria ‘e Si’.Ho iniziato la ricerca storica sul Toponimo “Bing’ ‘e Mruxiasa” nei pressi della loc. is Benatzus, Maria ‘e Si’ che sta’ dando dei risultati positivi.
Mirko Cuneo, Imprenditore Digitale ed esperto di tecniche di vendita. CEO di Nextre Digital
come indicare con esattezza il mio punto esatto di casa Latid. 40.66111016913081 Long. 16.53132721781731
Ho aggiunto il Paul’s Bar.
http://foss4g-it2019.gfoss.it/
… ho intrapreso un viaggio da oltre due anni… e cercando di mantenere una certa leggerezza, proseguo nei contributi ad openstreetmap.
Ho approfittato del “convegno su Software e Dati Geografici Free e Open Source FOSS4G-it 2019, organizzato congiuntamente da: Università di Padova, Associazione Italiana per l’Informazione Geografica Libera (GFOSS.it) e Wikimedia Italia, la comunità ArcheoFOSS e quella di QGIS. “ per 3 motivi. 1 - farmi due giorni di ferie a padova 2 - farmi un giro in moto di due giorni (6 e passa ore ad andare ed altrettante a tornare) 3 - partecipare al convegno
Il tutto, riferito al contesto in cui siamo, orientato alla conoscenza del territorio….
Montato uno smartphone ad uso fotocamera sul manubrio della moto ed una batteria di scorta… ho iniziato il viaggio.
L’intento e’ quello di mappare quanto possibile anche con l’ausilio di quanto caricato in mapillary.
ci provo.
… a proposito!… a padova belle teste!
c’e’ speranza!
sono graditi suggerimenti e quanto vogliate! Carlo A.
Buongiorno, iniziata mappatura sentieri mancanti della collina di Torino
I was trying to geocode addresses via Nominatim, using the OpenRefine function “fetch from URL”, but I got empty strings. I re-run it, checking “store error box” and I got the problem: certificate was not recognized or missing. A little confusion: why browser happly donwloaded geocoding rresponses, while OR didn’t?
OR rely on Java funcions to do the job, so I had to fix certificate issue in the following way:
-
get certificate:
$ openssl x509 -in <(openssl s_client -connect nominatim.openstreetmap.org:443 -prexit 2>/dev/null) -out /tmp/nominatim.crt -
store it:
$ keytool -import -file /tmp/nominatim.crt -keystore cacerts -storepass changeit -
If keytools complains about finding cacert:
$ find / -name cacerts -print
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/security/cacerts
(in my raspbian Java installation)
about
Mountain hiking association asked me to monitor local hiking relations from edits done by other mappers. I wrote this script which generates an html page with OSM changeset involving daily changes. It is feeded by overpass-turbo query, like this, so you can customize which OSM objects to monitor.
steps
The mentioned monitor script will:
- extract relations modified in the last 24h and tagged operator=”CAI” in area provided as argument
- filter useful informations
- format an html file with OSM, Achavi and OSMcha links
automate runs
Of course it can be run periodically using crontab. To set a daily run, just execute
$ crontab -e
add a line like below, customizing your script path:
0 0 * * * /home/pi/scripts/monitor.sh » /dev/null 2>&1
telegram
My instance include a telegram service fired when a changeset list is written. I use telegram-cli with the following line in script:
echo “msg $CHANNEL $MESSAGE”; echo “safe_quit” | /home/pi/apps/tg/bin/telegram-cli -W
Just add telegram CHANNEL and MESSAGE variables and insert the line inside $CHAN==0 else if
TODO
Fix area names which include spaces, ie “Cividale del Friuli”
Intro
When adding several hiking routes, sometime it comes handy having updated tables in wiki format to be easily added in specific wiki pages.
Recipe
- overpass query on area name
- some awk insertions
- pyhon script csv2wiki
overpass-query
This overpass query will generate a csv file(ie: stregna.csv) with local network hiking paths. Example output:
@id,name,ref,network
2071931,,747,lwn
6934010,Sentiero Italia - Tappa A14,SI,lwn
7112799,Sentiero Hum,,lwn
adding OSM links
This awk will add OSM link to each relation:
$ awk -F “,” ‘FNR == 1 {print $0} FNR > 1 { print “[relation/”$1” “$1”],”$2”,”$3”,”$4 }’ stregna.csv > stregna.txt
actual wiki formatting
Python script will generate the actual wiki text:
$ python csv2wiki stregna.txt > stregna.wiki
summarizing script
This script performs the steps above (here you can customize query with whatever relation tags). Just provide an OSM area name.
hello why openstreetmaps no longer download the maps in SVG and work with inkscape to modify them?
Salve, scrivo perchè non riesco più a scaricare le mappe in SVG e poi lavorarci con Inkscap, vorrei sapere come mai?
prima di trasferire qui tutto il diario vorrei fare una prova di scrittura e verificare
Mini abstract
I’ve found a 600+ rows Bed&Breakfast dataset, available opendata by RAFVG. No geo coordinates. Since hiousenumbers were recently imported from RAFVG dataset, I decided to go for geocoding. To get reliable coordinates I used csvgeocode script attached to nominatim geocoding service. Nominatim requires almost perfect (standardized) odonyms, hence I started openrefine and a reconcile service which comes in a separate jar. Reconcile service needs a csv with authoritative names, which I get from overpass-turbo and some filtering.
Dataset
Bed and Breakfast is a rather new dataset (Oct 17) with more than 600 POIs. Many useful fields such as
- name and operator
- phone
- site
- opening hours
- category (standard, comfort, superior)
Cleaning data
Such duty has been accomplished by OpenRefine and Reconcilie plugin, connected as a reconciliation service,
In order to standardize messy B&B addresses (entered by B&B operators theirselves) I had to provide Reconcile with an authoritative set of highway names, which I got from overpass-turbo (see Strade d’Italia diary entry).
Geocoder
Just happened for other projects, I choose csvgecode which features pretty simple usage.
Here is a run using mapbox service:
$ csvgeocode input.csv output.csv –handler mapbox –delay 1000 –verbose –url “http://api.tiles.mapbox.com/v4/geocode/mapbox.places/{{INDIRIZZO}},{{CAP}} {{COMUNE}}.json?access_token="
here using nominatim, instead:
$ csvgeocode input.csv output.csv –handler osm –delay 1000 –verbose –url “http://nominatim.openstreetmap.org/search?q={{INDIRIZZO 1}}, {{COMUNE}}&format=json”
Rows geocoded: 468
Rows failed: 114
Time elapsed: 879.4 seconds
Dalla chiesetta Arcu de Tidu, Pirastu Trottu de Poddosu, Bruncu Poddosu, Arcu sa Perda is Sinniesus, Bruncu su Tiriaxiu, Serragu is Arangius, sa Sedda is Arangius, sa Castangia, su Scoffu, Arcu su Scoffu, Arcu Predi Gallus, Cuili Predi Gallus, Bau su Sconcau de Forra, su Enatzu de Forra, Bau Forra, nuova S.P., Peiattu via Cimiterro viale del Tramonto, Via Monte Serpeddi’ su Mulloneddu sa Modditzi, sa Mitza su Para su Entosu, Arcu su Entosu……………………….
I’ve just did some quick test in Pancevo (Serbia) with Digital Globe Premium imagery. I’m taking part, with several international partners, in V-IOLA Project and in January - February 2019 we have planned to do some mapping in Pancevo with the aid of local volunteers besides remote mappers. The scenario is a mapping against an eartquake event.
Today I’ve just drawn some building and I would like to get some feedback to know how the Digital Globe imagery are aligned and if someone knows there are better imagery for a future remote mapping.
Feel free to contact me if you live in Serbia and are interested in taking part in some way to these activities. Few weeks after we will keep a similar activity in Sutomore (Montenegro). There the scenario will be against flooding. Again, if someone would be involved let me know dropping a comment here o by PM
Alessandro Ale_Zena_IT Wikimedia Italia / OpenStreetMap Italia