Arcpy - add layer tif

المشرف العام

Administrator
طاقم الإدارة
I'm trying to write a python script that will add a tif to the table of contents of my map.

(Eventually I want to convert to tool that 1- allows the user to type in the filename and then has the tool create the full path name, and 2 - zoom to the extent of the newly-added tif, but baby-steps for now.)

My first stumbling block is a very basic one, seemingly.

I'm trying to add tifs, not layers, to my TOC. Do I need to use MakeFeatureLayer(), before I can use AddLayer() ?



أكثر...
 
أعلى