Presentation and options Dialog box of the application
Syntax

Presentation and options

This application allows three options to eliminate micropolygons:

POLYGON CASE

One of the characteristics of a topologically structured graphical database is that it fully describes the space within it, thus providing complete information, in both geometric and thematic terms, about each of the graphical elements (polygons) that constitute it. Sometimes a polygon database can contain thematic "holes", that is polygons that have no thematic attribute assigned to them and that should be displayed as "transparent" and ignored thematically (not consulted); this could be the case, for example, of the area within an atoll in the middle of an ocean. Such a situation is perfectly correct and is supported by MiraMon. However, this is not the most common situation, and often the occurrence of polygons without thematic labels is due simply to lack of care or perhaps to the existence of small areas resulting from inaccuracies and errors in the graphical database.

In the first case, when the lack of attributes is due to a lack of care, a simple attribute-based query in MiraMon, requesting those elements whose attributes are blank, and whose area is reasonably large would allow their visual identification. Such polygons are easily identified by selecting the option to leave polygons without attributes transparent (not filled in) in the Advanced... display option. Once identified the polygons are given labels and the problem is resolved.

In the second case, however, the polygons are usually very small and are known as micropolygons, or sliver polygons. This application tries to help detecting and eliminating these micropolygons, a task that is frequently extremely tedious since in some circumstances very many such polygons can occur. In fact, if certain basic rules are followed when generating maps, such as the use of connectivity tools (Edit|Connect upon previous vector in MiraMon), micropolygons practically never appear, but when these rules are not followed, or when files from different sources are imported into the system (specially from a CAD program, or from formats without topology, like SHP), then it will perhaps be necessary to apply this filter.

This application allows erasing micropolygons that meet a series of conditions. Generally, a micropolygon is a small object, sometimes longs and, often, without a themed layer. Therefore, it presents a small area, a small area/perimeter ratio (big perimeter and small area) and has not been labelled. This application incorporates these three criteria and an additional one to be allowed to mark a polygon as erasable through a logical field of the main polygons database.

MicroPol generates a new layer of polygons by selecting the necessary arcs from the original arcs database, which remains unaltered. Once the application has been run it is possible that the arcs database could also be filtered, keeping only the necessary arcs to sustain the polygon borders. This operation can be performed with the Emancipa application.

Affinity file format

The affinity table, only necessary in highly professional micropolygon erasing applications, is a DBF table with the following structure:

It is important to note that this scheme allows defining asymmetrical priorities, i.e., if the value of micropolygons A is absorbed with B with priority 1, a micropolygon of B value can be absorbed in an A value polygon with priority 15 or not even having an assigned priority (non-present combination in the table).

RASTER CASE

This mode allows to eliminate groups of few cells present in a categorical raster (for example a map of soil cover) and assimilate them to the most abundant category in an immediate environment (3x3 cells, 5x5 cells, etc).

Internally, the application performs a vectorization of the input categorical raster, taking into account the presence or not of the parameter Ignorar_veins_diagonal and then re-rasterizes it but converts to a different value all the existing values in the raster (including the NoData) in all those polygons that have an area in cells less than or equal to Area_max. Once created this new raster that contains a new "flag" value for all the raster polygons with an area considered micropolygons, it is performed an execution equivalent to FagoVal application with a convolution window of value Fin_convol, with a mode criterion iterating to the maximum possible, avoiding the assignment to NoData both when eliminating an isolated value and when the NoData is the majority in the convolution window and without a minimum modal value to replace the central value of the convolution window.

It is important to note that mode 3 is different to vector modes options because in mode 3 the neighborhood analyzed is immediate, at a distance of 1 cell (if Fin_convol is 3), of two cells (if Fin_convol is 5), etc. On the other hand, in vector modes, the criterion is different (the largest area of the entire polygon in contact with the micropolygons). For eliminating the micropolygons of a raster with the same criteria as in a vector layer of polygons, the raster has to be vectorized with RasTop and continue from the base of polygons obtained.

More information can be consulted at the following reference:

Burriel JA, Ibáñez JJ, Masó J (2008) SIOSE en Cataluña: obtención a partir del Mapa de Cubiertas del Suelo de Cataluña. Hernández L, Parreño JM (eds.) Tecnologías de la Información Geográfica para el desarrollo territorial. Servicio de Publicaciones y Difusión Científica de la ULPGC. Las Palmas de Gran Canaria. Pp. 876-889. ISBN: 978-84-96971-53-0. XIII Congreso Nacional de Tecnologías de la Información Geográfica. Las Palmas de Gran Canaria.


Dialog box of the application

MicroPol dialog box


Syntax

Syntax:

Options:

Parameters:

Modifiers: