alus-it / AirspaceConverter

Tool to convert airspace files between different formats: OpenAir, openAIP, KML/KMZ, Polish and Garmin
https://www.alus.it/AirspaceConverter
GNU General Public License v3.0
37 stars 10 forks source link

OpenAir: get rid of annoying warning on repeated point #167

Closed alus- closed 5 months ago

alus- commented 5 months ago

In OpenAir the last point (DP) should match the first one to "close" the airspace. But can happen that there is a geometry (for example an arc, DA) at the end of the airspace and then still a point DP added, matching the last point of the last geometry, to match as well the first point DP to properly close the geometry. This very special situation will generate a warning about a repeated point, but it is not a repeated point it is just an assertion that the airspace is so closed... Of course if the last DP of previous example is than repeated this must result as repeated point warning. So basically, the last DP matching the first DP if also equal to the end of the last geometry must not generate a repeated point warning.

alus- commented 5 months ago

Fixed!