Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is it possible to write infinities to fields in arc 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

1 Answer 1

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 this thread for more info.
Sources:

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003n0000001m000000

http://support.esri.com/en/knowledgebase/techarticles/detail/25646

share|improve this answer

Your Answer

 
discard

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.