OpenStreetMap logo OpenStreetMap

pangoSE's Diary

Recent diary entries

Wikidata <3

Posted by pangoSE on 8 November 2019 in English.

You can help with the integration of OSM and Wikidata by using this tool: https://osm.wikidata.link

A while ago the property OSM relation id was added to Wikidata.

Since then a lot of objects now have an OSM id attached.

This enables us to harnes the power of Wikidata queries and do something with OSM object based on that.

Today I did this search https://query.wikidata.org/sparql?query=%23OSM%20relation%20ids%20of%20Swedish%20counties%0ASELECT%20%3Finstance_of%20%3Finstance_ofLabel%20%3FOSM_relation_ID%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%0A%20%20OPTIONAL%20%7B%20%20%7D%0A%20%20%3Finstance_of%20wdt%3AP31%20wd%3AQ200547.%0A%20%20OPTIONAL%20%7B%20%3Finstance_of%20wdt%3AP402%20%3FOSM_relation_ID.%20%7D%0A%7D

It outputs the counties of Sweden and their OSM relation id.

I use this to easily get all the ids I need to generate the .poly files I need for my cleanup of water tags project. See osm.org/user/pangoSE/diary/391133

List of contries and OSM ids - a few are still missing

Total number of items in wikidata with OSM relation ids are as of this writing 101725 which is about a third of all relations with a wikidata key.

OSM beats Swedish Lantmäteriets best map

Posted by pangoSE on 7 November 2019 in English.

Despite not having the same access to resources like laser scanning, aerial photos, etc. we beat LM here: https://www.hitta.se/kartan!~62.62401,17.94876,17.253034702482474z/tr!i=eBTVLIGj/search!st=cmp!q=bryggaren%20strand!b=53.95609:-9.49219,69.73333:25.00488!t=weblist?&search=bryggaren%20strand&sst=cmp&st=weblist (their road from NVDB is wrong, the church here is long sold and converted into a brewery and cafe.)

And here: https://www.hitta.se/kartan!~62.62882,17.94028,18.286908429940375z/tr!i=eBTVLIGj/search!st=cmp!q=bryggaren%20strand!b=53.95609:-9.49219,69.73333:25.00488!t=weblist?&search=bryggaren%20strand&sst=cmp&st=weblist (Their map does not indicate that you cannot turn left out on 719 from south. Also the bus stop is wrong, paths and a crossing are missing.

Could somebody please add the map on hitta.se to a compare map service?

Missing water=lake tags

Posted by pangoSE on 5 November 2019 in English. Last updated on 14 November 2019.

I found a lot of lakes in Sweden which has natural=water but not tagged with any water= tags like water=lake. Most of them (est. 98%) are lakes.

I just wrote this https://josm.openstreetmap.de/ticket/18297#ticket

This resulted in one of my biggest changesets to date: osm.org/changeset/76657579

I have now found these tags missing on 3 continents Eurasia, Africa and South America.

Note: be careful with bays like this one as these are currently tagged with natural=water and no water tag because we have no suitable it seems. I add water=bay to these because they are not closed of like lagoons.

Note2: also be careful of riverbanks not tagged with waterway=riverbank.

Note3: My current workflow is this:

  1. download country or part of country (<100 mb) from geofabrik.
  2. use osmconvert and osmfilter to extract the natural=water and drop water= & waterway= tags. I use .poly files to extract smaller areas from the large country files. See osm.wiki/Osmconvert#Example_using_a_polygon_file_from_polygons.openstreetmap.fr for how to do that. An example command I use is: “osmconvert sweden-191107.osm.pbf -B=norrbottens-län.poly –complete-ways –complete-multipolygons -o=out.o5m && osmfilter out.o5m –keep=”natural=water” –drop=”water=” –drop=”amenity=” –drop=”waterway=” >out.osm”
  3. open the filtered .osm-file in JOSM
  4. inspect all elements to see if any are clearly reservoirs and add fixme tags to uncertain ones.
  5. search like this: “natural=water and -waterway=* and -water=* and -wetland=* and -sport=* and -landuse=* and -surface=* and -golf=* -fixme=* and (type:way or type:relation)” to filter out any strange water areas.
  6. add water=lake to the rest and source:lake=manual review based on MAXAR

Heja ni som mappar landuse med MP

Posted by pangoSE on 4 November 2019 in Swedish (Svenska). Last updated on 5 November 2019.

Jag har sen et år eller två börjat mappa skog och landområder intill med hjälp av multipolygoner.

Det har flera fördelar:

  1. mycket färre antal vägar att rita
  2. går snabbare

Det finns också nackdelar:

  • iD saknar fortfarande bra stöd av MPer och dess medlemmar
  • nybörjare kan uppleva det som mera komplext att börja redigera
  • om nått bliver fel kan stora områden påverkas

Om du vill slå in på denna väg med mig så har jag följande råd:

  • använd bara JOSM och installer relations toolbox
  • se video på hur andra gör
  • dela INTE dina MP efter vägar, kör gärna på egna fyrkanter i lagom storlek (försök hålla under 20 inners), jag har tidigare kört MP delvist efter boundary men det är inte optimalt ser jag nu när dessa korsar en sjö tex.
  • undvika MP där det inte är nödvändigt
  • respektera att inte alla andra kör på samma strategi och det kan bli krock ibland
  • kolla OSM inspector -> areas ibland förutom JOSMs validator så du har koll på läget
  • Ha kul!

Mapping forced labor camps in China

Posted by pangoSE on 22 February 2019 in English.

Hi I recently began to investigate the forced labor camps in China and found this list:

Would somebody here be interested to help map these?

Verification on ground would be nice so lets add a fixme=”verify on ground” to all of them.

No.	Location 	Floor area(m2) 	Building capacity (m2) 	Area expanded after 2017 (m2)
1A 	N:38°58’07″ E:77°26’05″ 	294845 	132000 	102000
1B 	Next to A 	                        30000 	11000 	
1C 	N:38°59’40″ E:77°26’44″ 	70143 	55810 	
1D 	N:39°01’07″ E:77°27’40″ 	9213 	5760 	
1F 	N:39°03’21″ E:77°26’09″ 	15429 	4200 	
2 	N:37°54’45″ E:77°20’55″ 	230748 	230560 	199556
3 	N:38°19’02″ E:77°12’37″ 	36889 	80904 	80904
4 	N:38°21’45″ E:77°13’29″ 	49038 	86712 	86712
5 	N:38°24’47″ E:77°08’54″ 	85280 	57964 	33348
6 	N:38°21’23″ E:77°15’51″ 	380240 	67242 	67242
7 	N:38°56’14″ E:76°03’20″ 	30000 	10238 	
8 	N:38°56’14″ E:76°10’14″	5600 	3882 	
9 	N:39°28’18″ E:75°41’55″ 	139918 	91920 	
10 	N:39°23’26″ E:76°01’23″ 	64449 	22800 	
11 	N:39°21’34″ E:75°51’51″ 	64288 	87915 	78315
12 	N:39°21’29″ E:76°03’04″ 	120700 	306000 	300000
13 	N:39°13’15″ E:76°46’06″ 	8649 	5856 	
14 	N:39°25’47″ E:76°03’19″ 	18975 	16456 	
15 	N:39°22’03″ E:76°00’37″ 	3600 	2700 	
16A 	N:38°21’45″ E:77°07’16″ 	27750 	13002 	13002
16B 	N:38°21’48″ E:77°07’08″ 	56700 	26280 	26280
16C 	N:38°21’55″ E:77°07’10″ 	47488 	17644 	
16D 	N:38°21’43″ E:77°07’20″ 	9450 	3400 	3400
17 	N:38°54’43″ E:77°38’58″ 	3400 	4368 	
18 	N:38°21’06″ E:77°18’21″ 	48617 	53984 	53984
19 	N:39°47’03″ E:78°33’41″ 	20050 	22390 	13590
Total 		                   1,871,459 	1,420,987 	1,058,333

Found in OSM:

  • 1A Todo
  • 1B (southeast of 1A) Todo
  • 1C todo

https://www.theepochtimes.com/mapping-a-human-rights-horror-calculating-the-detentions-in-xinjiang_2750362.html

Working with Khartoum day 2

Posted by pangoSE on 4 February 2019 in English.

Hi :)

Inspired by the ongoing uprising and protesting I started yesterday working on Khartoum to improve a few things. Since I am not a native arabic speaker I learned a few tricks and thought I would share them here.

names

We have a policy of locale names and that means the arabic terms should be in the name= field. This was not the case and a lot of arabic names seems to be missing. I added fixme’s to all the places that lack an arabic name tag. See for yourself on OSMI

Help wanted!

If you know arabic please help add the arabic names to the places linked above.

If you are working in JOSM and want to help with the names I encourage you to do this:

  1. enable the expert mode in the settings
  2. file->download data
  3. switch to the new tab “download from overpass api”
  4. click “wizard”
  5. enter “place=*” and select khartoum on the area below
  6. click “download”

This gives you all the places in the editor of your selected area ignoring all the rest of the data. :D I recommend using search and/or filter to narrow down if you need to.

Viewing a map in a different language

I used these to get an overview of the names:

Does anyone know how often they are re-rendered?

landuse

I like to mark the different use of land se the render is able to color the map correctly. I added landuse=residential to existing areas where it made sense and created a few new ones. A lot more work is needed to tag parks, farmland etc.

multipolygons

This is not yet used in many places and the city could really benefit from an overhaul. There are a lot of neighbourhood-areas that overlap etc.

Happy mapping!

Följande skrevs i ett privat meddelande och jag delar det här FYI.

Dem öppna data från både Trafikverket och Lanmäteriet används flitigt just nu.

Både i iD och JOSM finns NVDB med tonsvis av vägar som vi inte har ritat in än från Trafikverket och äldre ortofoto från LM där många ortsnamn och namn på berg, m.m. finns.

Även topografiska kartan från LM är användbar ibland, tex har jag ritat in militära övningsområden (se osm.org/relation/8727442)

Även Naturreservaten behöver uppdateras utifrån den öppna datan från Metria/Länsstyrelserna, se osm.wiki/WikiProject_Sweden/naturvardsverket_import#Boundary

I recently began contributing images via OSC. I’m using the app from Google Play updated on 21/8-18. Here is a sample of the direction being the same on all photos: http://openstreetcam.org/details/1292987/0/edit-osm (press iD to see the layer with directions shown).

The OSC plugin (v164) in JOSM (v14272) does not show direction, only blue dots.

Also my tracks have not yet been processed for signs or other data and no special layer with this information is avaliable to my knowledge.

Is Mapillary prefered over OSC because it includes directions of photos & this layer?

Searching relations

Posted by pangoSE on 11 September 2018 in English. Last updated on 15 September 2018.

Nominatim does NOT search route relations. I use taginfo & overpass.

The downside of overpass is that it:

  • does not use wildcards by default using the wizard
  • does not search case-insensitive by default using the wizard

Example of searching for the route Härnö Trail in Härnön: https://taginfo.openstreetmap.org/search?q=h%C3%A4rn%C3%B6+trail#values -> click the orange -> click overpass symbol -> from overpass you can click the map object and -> click to osm.org from there

Alternatively you can download Härnön in JOSM and search for the relation there. (much easier if you know where it is beforehand)

iD does not yet show relations, only memberhip of relations on objects. Also iD lacks a way to check that your edit did not break (the continuity of) one or more relations.

(edited to remove the incorrect assumption that it does not accept wildcards and to specifically mention route relations)

FEL!

Posted by pangoSE on 11 September 2018 in Swedish (Svenska). Last updated on 19 September 2018.

Jag har mappat i 6 år och upptäckte häromdan att jag gjort fel och raderat noder i alla år i stället för att flytta existerande noder när möjligt. Se osm.wiki/Good_practice#Keep_the_history Enligt https://hdyc.neis-one.org/?pangoSE ser läget ut såhär: Created Modified Deleted Nodes 6 226 (64%) 2 132 (22%) 1 412 (14%)

Jag har även nog missat att justera bakgrundsbilderna ibland, men har haft tur att Bing i Härnösand ligger rätt. Trafikverkets vägdata (Trafikverket Road Network i JOSM) finns för hela landet och är enklast att justera efter vid behov.