About Geometry Validation

Polygon and line drawings, or simple features, can be invalid according to OGC standards and you could see different visual output and number of valid simple features between a tolerant GIS tool and prepared datasets in Cities and Territories apps.

Important: Multiline and multipoint drawings are not supported.

You can verify whether geometries are valid using the Check Geometry Validity processor in Geospatial Data Preparation. For more information, see 3D Modeling | Virtual Planet | Cities and Territories | Geospatial Data Preparation | Geospatial Data Preparation | Editing Data Layers | Editing Data Layers Using Processors | List of Processors | Vector Tools | Check Geometries Validity.

Tip: When using QGIS, use the “GEOS” method of the QGIS diagnosis tool to be consistent with both OGC and Cities and Territories apps.

OGC rules for simple features are as follows:

  • For polylines, a line is simple if the line does not pass through the same point twice, with the possible exception of the two end points.

    Cities and Territories apps and 3DGlobe service support both simple and nonsimple lines, whether they are closed or open:



  • For polygons, see the rules at https://portal.opengeospatial.org/files/?artifact_id=829.
    Note: The "Two Rings" condition means that at a point common to two curves, nearby points cannot be common. This forces each common point to be a point of tangency.
    Polygons might have particular cases that make them difficult to define a contiguous area, especially when they contain holes. In the example below:


  • Polygons in green are valid and functional in Cities and Territories apps apps They are counted in the statistics of the global number of features and appear on the map, in the Properties panel in, and in the City Attribute Tablein Geospatial Design. For more information, see Adding Prepared Datasets, Displaying Properties, and Analyzing Attributes with the Geospatial Attribute Table
  • Polygons in orange are potentially invalid as a single instance of a polygon. The red dots represent the error location when considering the outline as a polygon.

    These polygons are neither counted and do not appear in Cities and Territories apps. For multipolygons containing at least one invalid polygon, the simple feature as a whole is considered invalid.

    Therefore, the number of processed simple features can differ depending on the nomber of valid and invalid polygons.