Tag Info

New answers tagged


Working with layers can indeed be tricky, with the multiple steps of adding one to your map. Also confusion can arise with the in memory layer created by arcpy.MakeFeatureLayer_management and the mapping layer you add to your map via arcpy.mapping.AddLayer usually having the same name. These two 'layers' are similar objects but are not, in fact, the same, ...


If you don't have .lyr files or an existing mxd referencing the data, I think what you're trying to do should be impossible with Python. A better approach would be to create (manually) a template mxd with a geotiff and an ascii file in it, then (with Python): copy the template mxd (with saveACopy) and replace the data sources of both layers with e.g. ...

Top 50 recent answers are included