Hi,

I use the Simplify Way tool constantly but I choose different settings for the parameter simplify-way.max-error depending on what I'm doing. For example, to simplify jagged PGS coastlines before re-aligning them I use a setting of between 60-80. When simplifying smaller scale shorelines or jagged river ways, I might use a setting of 10-20. Normally I use the default setting of 2 or 3. Each time I change that parameter I must enter the Preferences dialog, select the last icon, and then search for "simplify" and then click in the right-hand text box to insert the desired number.

Is there some way, some sort of script perhaps, to make this faster and easier, ideally without having to enter the Preferences dialog at all?

asked 19 Nov, 10:41

AlaskaDave's gravatar image

AlaskaDave
3.7k6388137
accept rate: 10%

I currently have it set to 0.01 so I wonder if you use the Improve Way Accuracy mode (w) for such edits? With the tool, left clicks move existing points, control+click adds a point and alt+click deletes a point, so any spot where 80 would make sense for the way simplification is quick work anyway.

(20 Nov, 02:54) maxerickson

Max,

I'm talking about the Simplify Way tool, not the Improve Way Accuracy tool. I love that tool as well and since overcoming my first dislike of it, now use it constantly to align steams, riverbanks and coastlines. It has many parameters whose functions are totally unknown to me but that's another question.

After applying the Simplify Way tool to a section of jagged coastline I then align the remaining nodes, adding new ones where needed, with the Improve Way tool.

(20 Nov, 08:45) AlaskaDave

Likely that is possible with scripting, yes, but I did not find a pre-made script for settings changes. See https://josm.openstreetmap.de/wiki/Help/Plugin/Scripting and for the shortcuts: https://www.openstreetmap.org/user/bdiscoe/diary/21209 if you want to try yourself.

permanent link

answered 24 Nov, 11:57

aseerel4c26's gravatar image

aseerel4c26 ♦
31.6k15234541
accept rate: 18%

@aseerel4c26,

Thank you for your answer. Unfortunately, I don't program in Javascript. If there is nothing already written, perhaps I'll resort to using Autohotkey although even that method will probably be quite difficult.

(25 Nov, 00:17) AlaskaDave
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×474
×1

question asked: 19 Nov, 10:41

question was seen: 125 times

last updated: 25 Nov, 00:17

powered by OSQA