# dnf build-dep inkscape
# dnf install gcc-c++ libsoup-devel gtkmm30-devel
$ git clone -b master https://git.launchpad.net/inkscape --depth 1
$ mkdir -p inkscape/build/conf
$ cd inkscape
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# WARNING: This program will OVERWRITE the entire device and | |
# you may LOSE DATA. Use it carefully. | |
# How to create a test block device: | |
# $ dd if=/dev/zero of=fake bs=1M count=100 | |
# # mknod fake b 7 200 | |
# # losetup /dev/fake fake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Description: | |
This query allows to convert notes from GeoPaparazzi into a OSM XML | |
file that can be imported into JOSM. | |
Usage: | |
$ sqlite3 geopaparazzi.gpap < gpap-notes2osm.sql > geopaparazzi.osm | |
Made by: | |
Francesco Frassinelli - https://frafra.eu | |
*/ | |
with body as ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Description: | |
This query allows to convert notes from GeoPaparazzi into a GeoJSON | |
file that can be imported into JOSM. | |
Usage: | |
$ sqlite3 geopaparazzi.gpap < gpap-notes2geojson.sql > geopaparazzi.geojson | |
Made by: | |
Francesco Frassinelli - https://frafra.eu | |
*/ | |
with osm as ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# License: GPLv3 | |
# Author: Francesco Frassinelli (fraph24@gmail.com) | |
# Copyright: Francesco Frassinelli 2018 | |
import gi | |
gi.require_version('Notify', '0.7') | |
from gi.repository import GLib, Notify |
Quests - December 2017 #PoliMappersAdventures
- Learn something you didn't know about OpenStreetMap https://learnosm.org/
- Install StreetComplete (for Android) or Go Maps (for iOS) https://github.com/westnordost/StreetComplete#download or https://itunes.apple.com/app/id592990211
- Map a bench https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dbench
- Find a bench and add the backrest tag https://wiki.openstreetmap.org/wiki/Key:backrest
- Map a picnic table https://wiki.openstreetmap.org/wiki/Tag:leisure%3Dpicnic_table
- Find a bench or a picnic table and add the material tag https://wiki.openstreetmap.org/wiki/Key:material
- Map a trash bin (unsorted waste only) https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dwaste_basket
- Map a container for recycling of used goods https://wiki.openstreetmap.org/wiki/Tag:amenity%3Drecycling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# OSM node history to SQLite | |
import osmium | |
import sqlite3 | |
import sys | |
SCHEMA_OBJECT = """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# OSM node history to SQLite | |
import osmium | |
import sqlite3 | |
import sys | |
SCHEMA_NODES = """ | |
CREATE TABLE nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Convertitore delle mail del Raspberry Pi di Ugone | |
# Scritto da Frafra (2017) | |
import collections | |
import csv | |
import glob | |
messages = glob.glob('messaggi/*.txt') |