AnsweredAssumed Answered

batch export jpeg with world files data driven pages

Question asked by antonin.gosset_arcadis on Jun 16, 2016
Latest reply on Jun 22, 2016 by antonin.gosset_arcadis

Hi there,

I'd like to know if it is possible to batch export jpg + world file (jpw or so) in batch using a Data Driven Pages python script.

I don't think it is possible because there is a limitation in Arcgis : the layout view doesn't permit the world file attachement and Data Driven Pages only exports layout views.

World file creation is only allowed in Data view.


I don't know if there is a trick / solution to do what I want to achieve using an advanced python script. A script that would run data driven pages in Layout View to export each view as JPG+ world file ?




Example of python script to export Data driven pages as EMF in Data view


mxd = arcpy.mapping.MapDocument("CURRENT")

for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):

  mxd.dataDrivenPages.currentPageID = pageNum

  arcpy.mapping.ExportToEMF(mxd, r"J:\81B\____Répertoires Trafic\60-Contributions_autres_agences\62-Production\Paris\16_RFF_SCH_SECTEUR\3_production\A_SIG_SchSect\PRODCARTO\11_Prospective\Carte_" + str(pageNum) + ".emf", convert_markers=True)

  del mxd