import arcpy # Set the current workspace arcpy.env.workspace = "c:/data/DEMS" # Get the list of rasters in the workspace rasters = arcpy.ListRasters() for raster in rasters: ext=arcpy.Describe(raster).extent try: xmin=max(xmin,ext.XMin) ymin=max(ymin,ext.XMax) xmax=min(xmax,ext.YMin) ymax=min(ymax,ext.YMax) except NameError: xmin,ymin,xmax,ymax=ext.XMin, ext.XMax, ext.YMin, ext.YMax minext=[xmin,ymin,xmax,ymax]
I had thought that the "MINOF" command was meant to set as the minimum of all inputs in a workspace, it's not very clear on the help.
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.