Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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! – Sideshow Bob Mar 14 '12 at 9:42
up vote 4 down vote accepted

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.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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