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")
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
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.