New answers tagged

3

This option is only available in Data View. If you are in Layout View then you will not be able to Write a World File. This software behaviour is unchanged in ArcGIS 10.4 for Desktop Pre-release. For it to be enhanced I suggest you submit an ArcGIS Idea. I was surprised not to find one when I looked just now. If you do submit one then I suggest ...


0

I think your error is mainly in path formatting and string handling. Try this: import arcpy import os arcpy.env.workspace = "C:\\folder_path" mxd = arcpy.mapping.MapDocument("C:\\file_path.mxd") df = arcpy.mapping.ListDataFrames(mxd,"*")[0] path = "C:\\file_path" rasterList = arcpy.ListRasters() for jpg in rasterList: # This sets a new path with ...


0

Modifying your script slightly, I had to add the path into the loop and add a save at the end: import arcpy arcpy.env.workspace = "C:\\FolderPath" mxd = arcpy.mapping.MapDocument("C:\\FolderPath\\Rasters.mxd") df = arcpy.mapping.ListDataFrames(mxd,"*")[0] rasterList = arcpy.ListRasters() for jpg in rasterList: path = "C:\\FolderPath\\" path += ...



Top 50 recent answers are included