Check Geometry (Data Management Tools)
Summary
Generates a report of geometry problems in a feature class.
For additional information regarding geometry problems, their impact on the software, and potential sources, see Tools for checking and repairing geometries.
Usage
Valid input formats are shapefiles, and feature classes stored in a file geodatabase, enterprise database, enterprise geodatabase, GeoPackage, or SpatiaLite database. Mobile geodatabase is not supported. For feature classes stored in an enterprise database or enterprise geodatabase, the following spatial types are supported:
Microsoft SQL Server—Geometry and Geography
PostgreSQL—PostGIS, Geometry, and Geography
Oracle—SDO_Geometry
SAP HANA—ST_Geometry
License:
A Desktop Standard or Desktop Advanced license is required if the input is in an enterprise database or enterprise geodatabase.
Feature classes that are stored in an enterprise geodatabase and registered as versioned are not supported.
The Output Table parameter value will include a record for each geometry problem found. If no problems are found, the table will be empty.
The contents of the Output Table parameter value, including the
PROBLEMfield codes, are written in English.For point features, only the null geometry problem is possible.
To review the features that are reported to have geometry problems, you can join the Input Features parameter value to the Output Table parameter value using the Add Join tool, along with the input's
OBJECTIDorFIDfield and the output table'sFEATURE_IDfield. If any of the Input Features parameter values are stored in an enterprise geodatabase, enterprise database, GeoPackage, or SpatiaLite database, the output table will also include aTEXT_IDfield that is used for noninteger-basedOBJECTIDcolumns.The Esri geometry validation method option ensures that geometry is topologically correct using the Esri Simplify method. Only the Esri validation is available for data stored in an enterprise geodatabase.
The OGC geometry validation method option ensures that geometry complies with the Open Geospatial Consortium (OGC) specification as defined in OpenGIS Implementation Standard for Geographic information – simple feature access – Part 1: common architecture.
After a feature's geometry is repaired using the OGC option, any subsequent edit or modification may cause the geometry to no longer comply with the OGC specification.
After feature modification, rerun the Check Geometry tool to check for new geometry issues. If necessary, run the Repair Geometry tool.
Geometry that is validated or repaired using the OGC option will be valid for the Esri option. To learn more about both validation methods, see What is a simple polygon.
The problems identified by this tool can be addressed in the following ways:
Manually edit and fix the feature with the geometry problems. Some of the problems cannot be fixed through editing.
Use the Repair Geometry tool. Some problems associated with data stored in an enterprise database, enterprise geodatabase, GeoPackage, and SpatiaLite database may not be repairable with ArcGIS tools.
The Output Table parameter value has the following fields:
CLASS—The full path to and name of the feature class in which the problem was found.FEATURE_ID—The Feature ID (FID) or Object ID (OID) for the feature with the geometry problem.TEXT_ID—This field only exists when Input Features values are stored in an enterprise database, enterprise geodatabase, GeoPackage or SpatiaLite database.PROBLEM—A short description of the problem.
The
PROBLEMfield will contain one of the following codes:Short segment—Some segments are shorter than allowed by the system units of the spatial reference associated with the geometry.Null geometry—The feature has no geometry or theSHAPEfield is empty.Incorrect ring ordering—The polygon is topologically simple, but its rings may not be oriented correctly (outer rings clockwise, inner rings counterclockwise).Incorrect segment orientation—Individual segments are not consistently oriented. The to point of segmentishould be incident on the from point of segmenti+1.Self intersections—A polygon must not intersect itself.Unclosed rings—The last segment in a ring must have its to point incident on the from point of the first segment.Empty parts—The geometry has multiple parts, and one of them is empty (has no geometry).Duplicate vertex—The geometry has two or more sequential vertices with identical coordinates.Mismatched attributes—The z- or m-coordinate of a line segment's endpoint does not match the z- or m-coordinate of the coincident endpoint on the next segment.Discontinuous parts—One of the geometry's parts is composed of disconnected or discontinuous parts.Empty Z values—The geometry has one or more vertices with an empty z-value (NaN, for example).Bad envelope—The envelope does not match the coordinate extent of the geometry.Bad dataset extent—The extent property of the dataset does not contain all of the features in the dataset. For this problem, theFEATURE_IDvalue will be -1.
For data stored in enterprise geodatabases, the
PROBLEMfield will contain one of the following codes:NEEDS_REORDERING—The shape must be reordered or have duplicate points removed.SE_INVALID_ENTITY_TYPE—The entity type is invalid.SE_SHAPE_INTEGRITY_ERROR—A shape integrity error occurred.SE_INVALID_SHAPE_OBJECT—The shape object handle is invalid.SE_COORD_OUT_OF_BOUNDS—The specified coordinate exceeds the valid coordinate range.SE_POLY_SHELLS_OVERLAP—Two donuts or two outer shells overlap.SE_TOO_FEW_POINTS—The number of points is less than required for the feature.SE_INVALID_PART_SEPARATOR—A part separator is in the wrong position.SE_INVALID_POLYGON_CLOSURE—A polygon does not close properly.SE_INVALID_OUTER_SHELL—A polygon outer shell does not completely enclose all donuts for the part.SE_ZERO_AREA_POLYGON—A polygon shell has no area.SE_POLYGON_HAS_VERTICAL_LINE—A polygon shell contains a vertical line.SE_OUTER_SHELLS_OVERLAP—A multipart area has overlapping parts.SE_SELF_INTERSECTING—A line string or poly boundary is self-intersecting.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Features |
The feature class or layer that will be processed. Feature services are not supported. License:A Desktop Standard or Desktop Advanced license is required if the input is in an enterprise database or enterprise geodatabase. |
Feature Layer |
|
Output Table (Optional) |
The report (as a table) of the problems discovered. |
Table |
|
Validation Method (Optional) |
Specifies the geometry validation method that will be used to identify geometry problems.
|
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Contains Geometry Errors |
Indicates whether the tool has identified any geometry issues. |
Boolean |
Environments
Extent, Scratch Workspace, Current Workspace, Output CONFIG Keyword, Parallel Processing Factor
Special cases
- Parallel Processing Factor
-
If the environment is not set (the default) or is set to 0, parallel processing will be disabled. If set to 100 the tool will attempt to distribute the work to all the logical cores on the machine. Specifying a factor between 1 and 99 will cause the tool to identify the percentage of logical cores to use by applying the formula (Parallel Processing Factor / 100 * Logical Cores) rounded up to the nearest integer. If the result of this formula is 0 or 1, parallel processing will not be enabled.
Licensing information
- Basic: Limited
Some parameters are limited by license level. - Standard: Yes
- Advanced: Yes