After discussing the ArcMap tool ( GIS tools for validating geometries (1) ) and the
tools Spatialite / PostGIS ( GIS tools for validating geometries (2): Spatialite and
PostGIS) we will discuss the available tools when using FME software
. The first two articles approached specific tools for a given format: ArcGis
shape and geodatabases, Spatialite databases or Postgis.
The FME tools, themselves, can process virtually all existing GIS formats.
First, just for once, FME documents the validation process by listing
the anomalies it takes into account . You will find a document in English with
a presentation of two options for validation and quality control on the
following page http://cdn.safe.com/resources/technical-briefs/Data_Validation_and_Quality_Assurance_with_FME.pdf
Here we use the corresponding table for the validation of the geometries, but translated
in French. Since FME implements the GEOS definition, this table provides a
comprehension of the tests performed by the SQL queries in the Spatiality and
Postgis databases of the previous article.
The table presents the type of anomaly, the types of geometries where it
applies (point, line or polygon) and a brief description of the anomaly.
The last column contains one or many + signs .
+++ Means that the detection and correction of this type of
anomaly is easy with FME. In practice, this corresponds to the detected
anomalies by the request ST_IsValid of Spatialite and Postgis and the
transformer GeometryValidator of FME.
++ To detect and correct this type of anomaly, a particular
configuration of the validation tools must be made. In practice, if you pass
the basic geometries of audit request, these anomalies will not appear.
+ These anomalies require a particular work on the data (deconstruction
/ reconstruction) to be detected and corrected. The available tools cannot
detect them as they are .
Display items Search :
|Rear Loopings – auto-intersections
|Line , Polygons
or open rings
starting and destination node of a polygon or ring are not the same. This implies
that the entity cannot be closed.
polygon with incorrect direction of rotation.
order of the nodes of the polygons external and internal polygons is defined.
External polygons have to be clockwise, while internal polygons should be counter
that has exactly the same X and Y as another point
Scan causes an inconsistency in the construction of a line
to backtracking but caused by a point that departs abnormally of the line
surface must not have an area below a certain threshold
empty overlays between the edges of adjacent polygons
overlay of two polygons
duplicated ( polygons with the same attributes )
with the same geometry and exactly the same attributes
small distance between two nodes. This distance corresponds to the tolerance
of the data set
items 1 to 10 of 13 items
How does FME work?
To process the geometries we will use the FME Workbench 2015 program.
The interface offers a graphic window that allows building a processing model.
There are three types of elements in a processing model: Readers, Writers, and Transformers.
Readers are modules that read GIS formats and
make them available for FME processing. FME reads and writes hundreds of GIS
formats. The ArcGis Interoperability Data is provided by FME.
are processing modules. They take the data provided by a Reader and produce
data for Writers. Therefore FME treatments can apply to any data format.
are modules that take the results of FME processing and write them in a given
Our processing model is simple:
- A reader that points to our com2011.shp layer ( see previous articles )
- A transform that is GeometryValidator
- Three writers that hand over as output three shapefiles:
- one for all entities whose geometries show no anomaly: all2011passed
- one for all entities with anomalies and have been repaired by transformer: all2011repaired
one for all entities with abnormalities but could not be repaired by
the symbol “setting” of the GeometryValidator you open the settings window:
This window allows enabling or disabling the verifications, and to
determine the specific parameters to some of them. In our example, we select
By clicking the execute button, the processing
takes place in front of you. The final window is as follows:
The Transformer has read 8094 entities in input, of which 8075 had no
anomaly in their geometry while 19 had anomalies. These entities (communes)
have been written in output in the
If we open the table of this last file:
We find the 19 communes with geometry anomalies, the same detected by
the tests of the previous articles.