*Basemap - World Light Grey Canvas
Change dataframe map to GCS 1984 and display to decimal degrees
Saved as: FullHullReview2017.mxd
Open python window then:
#Load the map and create the datafram mxd = arcpy.mapping.MapDocument(r"E:\projects\agglomeration\FullHullReview2017.mxd") df = arcpy.mapping.ListDataFrames(mxd)[0] df.credits="(c) Ed Egan, 2019" #Test some exports, note that if the geocords are in a different system from the extent parameters, you'll be exporting blank images! arcpy.mapping.ExportToPNG(mxd, r"E:\projects\agglomeration\Images\0TestBurlingtonAuto1.png", resolution=144) print df.extent #-73.5977988105381 44.1185146554607 -72.8022011894619 44.680787974202 NaN NaN NaN NaN #Test with Burlington, VT newExtent = df.extent newExtent.XMin =-73.219086 newExtent.XMax =-73.19356 newExtent.YMin = 44.460346 newExtent.YMax = 44.48325 df.creditsextent ="newExtent arcpy.mapping.ExportToPNG(c) Ed Eganmxd, 2019r"E:\projects\agglomeration\Images\BurlingtonAuto2.png", resolution=144)arcpy df.RefreshActiveViewpanToExtent(df.extent) arcpy.mapping.ExportToPNG(mxd, r"E:\projects\agglomeration\Images\Test1BurlingtonAuto3.png", df, df_export_width=1000, df_export_height=1000, resolution=144) #Test with Buffalo, NY (while looking at Burlington, VT) newExtent = df.extent newExtent.XMin =-7378.21908695687699999999 newExtent.XMax =-7378.19356795157 newExtent.YMin = 4442.460346826023 newExtent.YMax = 4442.48325966454999999996 df.extent = newExtentarcpy.RefreshActiveView() #df.scale = 100000#arcpy.RefreshActiveView() arcpy.mapping.ExportToPNG(mxd, r"E:\projects\agglomeration\Images\Test1BuffaloAuto1.png", resolution=144) df.panToExtent(df.extent) arcpy.mapping.ExportToPNG(mxd, r"E:\projects\agglomeration\Images\Test2BuffaloAuto2.png", df, df_export_width=1000, df_export_height=1000, resolution=144) place statecode longmin longmax latmin latmax#Now do the image generation! Burlington VT -73.27691399999999 -73.176383 44.445927999999995 44.539927 myDict = {} #myDict["Burlington_VT"] = [-73.27691399999999,-73.176383,44.445927999999995,44.539927] #... See the entries in E:\projects\agglomeration\arcpydict.txt for location in myDict: newExtent = df.extent newExtent.XMin = myDict[location][0] newExtent.XMax = myDict[location][1] newExtent.YMin = myDict[location][2] newExtent.YMax = myDict[location][3] df.extent = newExtent #arcpy df.RefreshActiveViewpanToExtent(df.extent) filename="E:\\projects\\agglomeration\\Images\\"+location +".png" arcpy.mapping.ExportToPNG(mxd, filename, resolution=144) #arcpy.mapping.ExportToPNGRefreshActiveView(mxd, r"E:\projects\agglomeration\Images\Testing.png", resolution=144)arcpy.mapping.ExportToPNG(mxd, r"E:\projects\agglomeration\Images\Testing2.png", df, df_export_width=1000, df_export_height=1000, resolution=144) #mxd.save() See http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/dataframe-class.htm See http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/exporttopng.htm
Remove basemap credits[https://community.esri.com/thread/185775-remove-service-layer-credits]:
*Insert->Dynamic Text->Service Level Credits
*Set the symbol color to no color
Help pages: