JOSM/Plugins/SimplifyArea

From OpenStreetMap Wiki
< JOSM‎ | Plugins
Jump to: navigation, search
Available languages — JOSM/Plugins/SimplifyArea
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

The SimplifyArea plugin is maintained on GitHub.

This plugin is for simplifying areas by performing the following operations:

  1. Average nodes closer than simplify-area.distance parameter. Default is 0.2 (m).
  2. Remove every node for which is true
    1. The node lies on an obtuse angle configured with parameter simplify-area.angle. Default 10.0 (degrees).
    2. The node removal would cause area size change greater than specified by simplify-area.area parameter. Default is 5.0 (m^2).

The operation works not only on the areas but also on the paths. Tagged nodes and nodes that are referenced are not removed. If the path is not closed, the first and last node is also not removed. The plugin can also remove a node that is defined as the connecting node of the closed path. If such a node is removed then another node is used for this purpose.

After selecting one or more areas and/or paths you can use shortcut Ctrl+Shift+Y or select the action from the menu Tools -> Simplify Area. The original purpose of this tool is to simplify imported buildings from the Slovak Cadastre Portal "KaPor" where buildings contain many redundant nodes. Built-in Simplify Way operation has been shown as inappropriate for this.

Enjoy!

Author: Martin Zdila <m.zdila@gmail.com>