Below instructions are written for Ubuntu Linux.
Install above with:
sudo apt install libsaxonb-java gpsbabel
Note that you can not use commonly used xsltproc
since it is limited to XSLT 1.0. Saxon supports XSLT 2.0.
- Open HSY water posts in Google Maps based map in public read mode (not edit mode)
- Click three dots from upper left corner
- Choose load as KML (not as zipped KMZ)
cd scripts
./update-all.sh
cd scripts
./kml-to-osm.sh
cd scripts
./kml-to-gpx.sh
Google Maps contains field names with spaces and ä/ö/å characters which do not seem to work in uMap. Thus need to convert those field names to English ones.
Also adding icon_symbol
field to show T/N for handle type in uMap.
cd scripts
./kml-to-umap-compatible-kml.sh
Import data to uMap as KML and replace layer contents. Take backup first in uMap, shape colors will reset and those need to be updated manually.
Install Mapillary tools. Go to folder where new images are and execute:
mapillary_tools process_and_upload --import_path "./" --user_name "YOUR_MAPILLARY_USERNAME"
Mapillary might take a day to process images. Add link to mapillary image to Google Maps datasheet.
HSY original data is copied to hsy-original-data
folder. There are two formats available:
- MapInfo TAB file
*.tab
- ESRI Shapefile
*.shp
Original shapefile converted once to KML using tool: https://mygeodata.cloud/converter/shp-to-kml (uploaded whole zip file, allows 3 free conversions per month).
Can also use ogr2ogr
tool locally (above service apparently uses ogr2ogr
also in the background):
sudo apt install gdal-bin
cd hsy-original-data/
./convert-to-kml.sh