Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

arcpy select visible raster

import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0]     # grab 1st dataframe in map
#df = arcpy.mapping.ListDataFrames(mxd, "Main")[0] # grab dataframe named 'Main'
arcpy.MakeMosaicLayer_management(
    'Orthophotos',  # input mosaic
    'test_mosaic',  # output mosaic
    '#',            # Optional WHERE clause
    df.extent       # clipping box coordinates
    )
Comment

arcpy select visible raster

import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0]     # grab 1st dataframe in map
#df = arcpy.mapping.ListDataFrames(mxd, "Main")[0] # grab dataframe named 'Main'
arcpy.MakeMosaicLayer_management(
    'Orthophotos',  # input mosaic
    'test_mosaic',  # output mosaic
    '#',            # Optional WHERE clause
    df.extent       # clipping box coordinates
    )
Comment

PREVIOUS NEXT
Code Example
Python :: stackoverflow ocr,cropping letters 
Python :: create bbox R sp 
Python :: python from string to bytes to hex 
Python :: how to push the element to array in python 
Python :: python replace list of ips from yaml file with new list 
Python :: how to use list compression with conditional formatting 
Python :: python force realod 
Python :: python update pip windows 
Shell :: install git ec2 linux 
Shell :: restart audio ubuntu 
Shell :: git store credential 
Shell :: uninstall k3s 
Shell :: docker install nano 
Shell :: how to do compress video in linux 
Shell :: zsh: command not found: rvm on terminal load 
Shell :: git clean cache 
Shell :: kill ubuntu port 
Shell :: install nvm with brew 
Shell :: increase no of watchers 
Shell :: the repository does not have a release file 
Shell :: windows kill port 
Shell :: linux list files by size mb 
Shell :: composer install production 
Shell :: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 
Shell :: linux install pip 
Shell :: how to run requirements.txt in python 
Shell :: how to remove base from command prompt 
Shell :: command ng not found 
Shell :: [!] Android Studio (not installed) flutter 
Shell :: nginx certbot ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =