New answers tagged

2

This can be made a bit more "pythonic" with a context manager: import arcview, arcpy class Spatial(object): '''Context manager for the ArcGIS Spatial Analyst Extension''' def __init__(self): self.name = 'Spatial' from arcpy.sa import Int try: Int(1) self.checkedout = True except RuntimeError: ...



Top 50 recent answers are included