Skip to main content
formatting
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Wrap the part of your code that needs Spatial Analyst extension as follows

arcpy.CheckOutExtension("spatial") your code arcpy.CheckInExtension("spatial")

arcpy.CheckOutExtension("spatial")

#your code

arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.

Wrap the part of your code that needs Spatial Analyst extension as follows

arcpy.CheckOutExtension("spatial") your code arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.

Wrap the part of your code that needs Spatial Analyst extension as follows

arcpy.CheckOutExtension("spatial")

#your code

arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.

edited body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Wrap the part of your code that needs spatial analystSpatial Analyst extension as follows

arcpy.CheckOutExtension("spatial") your code arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.

Wrap the part of your code that needs spatial analyst extension as follows

arcpy.CheckOutExtension("spatial") your code arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.

Wrap the part of your code that needs Spatial Analyst extension as follows

arcpy.CheckOutExtension("spatial") your code arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.

Source Link
yanes
  • 2.2k
  • 10
  • 19

Wrap the part of your code that needs spatial analyst extension as follows

arcpy.CheckOutExtension("spatial") your code arcpy.CheckInExtension("spatial")

By checking out licenses only when you need them and checking them in, you won't hold up licences if other people need to use them. This is useful in a setting where there are fewer licenses than the people who use them in a network environment.