import arcpy desc = arcpy.Describe("pathToFeatureClass") descExtent = desc.extent #returns an extent object arcpy.env.extent = descExtent #extent object can be used to set arcpy.env.extent print arcpy.env.extent
import arcpy from arcpy import env env.extent = "-107.0 38.0 -104.0 40.0" arcpy.Clip_analysis(r"C:\temp\indata",r"C:\temp\clipFeatures",r"C:\temp\outFeatures") env.extent = "-108.0 39.0 -105.0 50.0" arcpy.Clip_analysis(r"C:\temp\indata1",r"C:\temp\clipFeatures1",r"C:\temp\outFeatures1")
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.