User:FredrikLindseth/N50import tools

From OpenStreetMap Wiki
Jump to navigation Jump to search

Helpful stuff for simplifying the N50 import

Remind users to clean up source=tags

Select coastline1, select coastline 2. -> replace geometry -> choose source "kartverket n50" and not "pgs" or "bing" -> Apply.

node:modified < way[natural=coastline]{
  throwWarning: tr("Outdated coastline source=");
  fixAdd: "source=kartverket n50";

2016-02-05 17:35 < maxerickson> You could strip the source= tag off the new data. 17:35 < maxerickson> Then the rule would alert you if you had not set a new one before upload. 17:36 < maxerickson> 17:36 < sgiratch> hmmm 17:37 < sgiratch> That could work. I'll just finish this municipality and give it a try 17:37 < PovAddict> o.o 17:37 < PovAddict> validator rules can have fix suggestions? 17:37 < maxerickson> Yep. 17:39 < maxerickson> You can also change a key, keeping the value. 17:39 < PovAddict> all this reminds me there's a validator plugin I want to write 17:39 < maxerickson> 17:39 < PovAddict> (yes, plugin, can't be done with mapcss rules) 19:29 < maxerickson> You could also just set newsource= on your new data and clean it up with a search.

Set default source, auto replace the oldest coastt

1. marker en gammel kystlinje og en ny

2. replace geometry

3. Gjør sånn at source=Kartverket blir valgt som default

4. Gjør at ENTER eller SPACE lukker vinduet ved å klikke på Apply