Is it possible to write infinities to fields in ArcGIS feature classes, and if so, how?

Currently I get an exception thrown when I try.

  • 1
    what are you trying, and what is your exception?
    – Mike T
    Mar 13 '12 at 18:56
  • Normally it's float("-inf"), float("inf") for Python >= 2.6
    – Mike T
    Mar 13 '12 at 18:57
  • Thanks guys. I was trying to call row.setValue(field,float("inf")) (well, effectively anyway) where row was an UpdateCursor on a feature class in a file geodatabase. Jakub's answer looks good to me - looks like anything that might happen to work isn't officially supported! Mar 14 '12 at 9:42

Float in ArcGIS has a range of values. Infinity values are not supported. You can store such values in 3rd party non ESRI applications and attempt to import but these values will be changed to 1.#INF -1.#INF and you may encounter problems with Querying, etc.

Check out Referring to NaN or ±∞ (special floating point values) in ArcMap definition queries? for more info.




Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.