OpenStreetMap

pangoSE's Diary

Recent diary entries

Hi!

To all of you who love to get out into the woods and sleep in shelters I have now updated the OSM GPX-extractor and fixed the autocomplete search function.

I also added more presets with barbecues and firepits so you can find the perfect picnic spot easily.

To all users of OsmAnd I want to point out that it recently? got a filter function where you can search for the type of shelter you are interested in. It still only supports showing one POI type on the map at the time so I prefer to have gpx waypoints for shelters in my phone for now.

Have a nice day

OSM GPX extractor for non experts

Posted by pangoSE on 13 February 2020 in English. Last updated on 23 June 2020.

Hi. During my engagement in swedish hiking groups I became aware of the need for a service for extracting GPX-files with huts and shelters to put into GPS-devices and phones.

I built a simple website to fill this need which was a fun and learning experience :)

Try it out here: https://pangose.github.io/gpx-extractor/ Code: https://github.com/pangoSE/gpx-extractor

Quick and dirty OSM statistics with bash and jq

Posted by pangoSE on 10 January 2020 in English. Last updated on 11 January 2020.

This is the script I came up with to make some stats on the huts and shelters of Sweden. The data was fetched via overpass-turbo.

download the geojson from Overpass Turbo -> export or save as from JOSM.

example query: access!=private and (tourism=alpine_hut or tourism=wilderness_hut or (amenity=shelter and shelter_type!=public_transport)) in sweden

you can run this query from inside JOSM - see the JOSM wiki.

The script is here: https://gist.github.com/pangoSE/5294e835c9bead773e8036603a90b898

This was the output for Sweden:

$ ./stats.sh vin-190110.geojson 
Numbers of each type:
Shelters - total: 2629
Shelters - Lean to (sv. vindskydd): 793
Shelters - Basic hut (sv. stuga utan uppvärmning): 129
Shelters - Weather shelter (sv. väderskydd endast lämpad för kort uppehåll vid dåligt väder): 355
Shelters - Picnic shelter (sv. liten byggnad med tak, eldstad och skorsten i mitten): 251
Shelters - Unknown type: 1692
Wilderness huts: 43
Alpine huts: 82

Lean_to shelters details:
- has description tag: 29 - 3%
- has fireplace=yes: 305 - 38%
- has floor=wood: 7 - 0%
- has image: 18 - 2%
- has snowmobile=yes: 28 - 3%
- has water_source tag: 4 - 0%
- has wood_provided=yes: 3 - 0%

Basic huts details:
- has description tag: 16 - 12%
- has fireplace=yes: 52 - 40%
- has image: 1 - 0%
- has snowmobile=yes: 18 - 13%
- has water_source tag: 0 - 0%
- has wood_provided=yes: 0 - 0%

Wilderness huts details:
- has description tag: 18 - 41%
- has fireplace=yes: 41 - 95%
- has image: 5 - 11%
- has snowmobile=yes: 18 - 41%
- has water_source tag: 0 - 0%
- has wood_provided=yes: 0 - 0%

Alpine huts details:
- has description tag: 12 - 14%
- has fireplace=yes: 4 - 4%
- has image: 5 - 6%
- has snowmobile=yes: 19 - 23%
- has water_source tag: 2 - 2%
- has wood_provided=yes: 5 - 6%

I created 3 bookmarklets to load relations from WT and to load a relation from osm.org in WT

See https://wiki.openstreetmap.org/wiki/Waymarked_trails

I created these when I got tired of copy pasting the numbers over and over. I hope they will be of use to you.

Happy mapping of relations!

PS: I just updated this bookmarklet to support jumping from Google Maps: https://wiki.openstreetmap.org/wiki/Bookmarklet_JumpToOsm

Working with hiking routes

Posted by pangoSE on 8 January 2020 in English.

Hi! 😃

Yesterday I worked on hiking routes in Sweden. I wonder how many there are? (“type:relation and route=hiking in sweden” gave me 70 mb of data which is a lot, but actually it would be more useful to measure how many kms of routes there are in comparison to say the area of the country)

I use JOSM and would like to praise and recommend the plugin relationtoolbox. It makes working with relations so much easier.

I probably should make a video about it if nobody beats me to it.

If you want to help you are very welcome, see https://wiki.openstreetmap.org/wiki/WikiProject_Sweden/Hiking_trails

I estimate that it will take me years to map, update and split up in parts as I keep finding missing routes, routes with no source, etc. 😅

Efter att ha sett leden nämnt i flera tråder i vandrargrupper på facebook beslutade jag mig i går för att ta en närmare titt på leden.

Här beskriver jag hur jag gick till väga.

Först hittade jag hela leden via https://hiking.waymarkedtrails.org/#route?id=3312364&map=8!59.9528!16.3369 (man kan söka där efter relationer)

Jag kollade över leden och såg att

  • det finns en 3 noter som hade med leden att göra (1 stuga som saknades intill leden)
  • den är indelad i etapper
  • har en hemsida
  • hemsidan har etappbeskrivningar
  • hemsidan har länk till gamla kartor i pdf
  • endast moderrelationen för leden har website= och dem andra har bare längd och namn m.m.

Utifrån detta beslutade jag att lägga till alla länkar till etappbeskrivningar och kartor.

Frågan är då vilken etikett som passar för kartorna? website:map=? Denna används faktisk redan 440 gånger i databasen, men bara i USA. https://taginfo.openstreetmap.org/keys/website%3Amap#map 1 exempel här: https://www.openstreetmap.org/relation/2381423


  • Noterna är nu fixade.
  • flyttat rätt på wikin
  • etappkartorna är nu inlagda

“Permission to trace from heatmap

Wednesday at 19:20

Hi 😃

I would love to improve OSM by tracing missing paths from your heatmap. Are you willing to permit this to OSM users?

Currently OSM is the best outdoor map in Sweden but unfortunately a lot of paths is still missing in my area. I would love to use your heatmap to help me trace and visit new paths and add them to the map.

I look forward to you response and hope that you will give back to the community by allowing this use of the wonderful heatmap.

Cheers pangoSE

Scarlett Today at 17:31

Hello,

Thanks for your interest in using Strava! If you’re interested to learn more about how Strava data is used for city planning, you can learn more through the Strava Metro site.

Hope that helps!

Regards, Scarlett Strava Support Team”


Any suggestions? They refer me to a service “Strava Metro” that is only available behind a paywall and do not offer a heatmap at all.

Ideas for questions to ask:

  1. You did not answer my question. Am I permitted to trace from your heatmap - yes or no? If you want attribution for allowing us to trace I would be happy to add Strava to our list of contributions: https://wiki.openstreetmap.org/wiki/Contributors
  2. Strava Metro access would be nice, would you be willing to provide that data for free to OSM users to trace after?

Merge selection between layers in JOSM

Posted by pangoSE on 9 November 2019 in English.

JOSM is my favorite editor! It has so many functions and plugins that almost every task you can think of is covered (besides splitting multipolygons, but work has started to remedy that).

Today I learned how to add new nature reservations from a geojson layer by merging selections from it into my osm data layer.

  1. Select the new element in the json layer
  2. press ctrl+shift+m or edit->merge selection
  3. switch layers and edit the tags
  4. upload

Easy peasy!

JOSM core now support importing geoJSON

Posted by pangoSE on 9 November 2019 in English. Last updated on 10 November 2019.

The latest stable release now support geoJSON

Hooray!

Why is this fantastic? Because it means that I can now avoid Shapefiles when exporting from open government data from QGIS and export to “geoJSON with newlines” instead.

//Edit I later found out that KML is better because the attributes of polygons was removed in the geoJSON export.