I have a polygon feature which returns Bad envelope when run through the Check Geometry tool.

According to the help:

Bad envelope : The envelope does not match the coordinate extent of the geometry.

I'm not sure what this means. I tried googling feature envelopes but couldn't find anything discussing.

I ran a Feature Envelope To Polygon on the bad feature and The polygon created fit the polygon perfectly:

enter image description here

I checked the original polygon's extent min/max x/ys and they match the envelope polygon exactly.

>>> print inExt.YMin
>>> print envExt.YMin
>>> print inExt.YMax
>>> print envExt.YMax
>>> print inExt.XMin
>>> print envExt.XMin
>>> print inExt.XMax
>>> print envExt.XMax

Question: What does it mean for a feature to have a bad envelope?

Note: I ran a Repair Geometry on the feature. The tool indicates the envelope has been fixed, but after this is done a Check Geometry on the same feature returns Bad envelope still.

  • 1
    Is this a shapefile or file geodatabase, or some other format? – Vince Feb 13 '19 at 23:49
  • @Vince file geodatabase feature class. – Emil Brundage Feb 13 '19 at 23:50
  • Perhaps the envelope extends beyond the projection horizon even though the polygon itself doesn't, and CheckGeometry isn't robust enough to tell you that. – Kirk Kuykendall Feb 14 '19 at 1:26
  • 2
    This shouldn't be possible, but I've sometimes seen it happen when projection-on-the-fly is used with editing. There could be corruption of the FGDB, so creating a new .gdb and copying the FC is certainly something to try. If it persists, then it's time to visit Tech Support. – Vince Feb 14 '19 at 18:37
  • 1
    Yeah, Tech Support time. – Vince Feb 19 '19 at 20:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.