1

I work with ArcView 10.3. Every time i export maps with ecw raster format , python (version 2.7.8) get crashed and i see:

enter image description here

I use this code:

import arcpy,os,sys,string
import arcpy.mapping
from arcpy import env

env.workspace = r"C:\yaron\shonot\software\gis\maps\gis"
counter = 0
for mxd in arcpy.ListFiles("*.mxd"):
    print (mxd) # print list of mxd's in the folder
    mapdoc = arcpy.mapping.MapDocument(r"C:\yaron\shonot\software\gis\maps\gis\\" + mxd)
    arcpy.mapping.ExportToJPEG(mapdoc, r"C:\yaron\shonot\software\gis\maps\gis\output\\"+os.path.basename(mapdoc.filePath).replace ('.mxd','') +".jpg",resolution=196)
    print ('ExportToJPEG')
    mapdoc.save()
    counter = counter + 1
del mxd 
print (counter)
0

1 Answer 1

0

The problem was the ecw file.

In ArcMap 10.3 python gets stuck with the ecw file.

I converted the ecw to tif. file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.