Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

Arcpy – add layer tif

$
0
0

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. zooms 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() ?


Viewing all articles
Browse latest Browse all 767

Trending Articles