000107 : Deleted feature <value> because of empty geometry
Description
The feature has no geometry, which although not invalid, may not be desirable, so it was deleted.
Solution
This is an informative message about what action was taken by the Repair Geometry tool. No further action is required. To avoid deleting features with empty geometry, the following workflow can be used:
- Run CheckGeometry to generate a list of problems (let's say the output table is named checkgeom_result).
- Use MakeFeatureLayer to create a layer.
- Use AddJoin to join the table created in step 1 to the layer created in step 2. Note: The first join field will be the OID field from the layer, the second join field will be FEATURE_ID.
- Use SelectLayerByLocation on the layer and set the expression to something like this: checkgeom_result.PROBLEM <> 'null geometry'.
- Run RepairGeometry on the layer.
11/18/2010