Changes

Jump to navigation Jump to search
First version saved as E:\projects\agglomeration\Test.mxd
 
If the basemaps aren't available, connect to ERSI online using the icon in the system tray[https://support.esri.com/en/technical-article/000013300]
 
Basic set up is:
*displayhulls layer=1 grey50%,trans50%,noborder
*displaymultitons asterisk4,black,size10,trans50%
*displaysingletons cross1,black,size10,trans50%
*placetigerarea grey50%,trans75%,grey80%border
*Reference
*Basemap - World Light Grey Canvas
 
Saved as: FullHullReview2017.mxd
Open python window then:
mxd = arcpy.mapping.MapDocument(r"E:\projects\agglomeration\TestFullHullReview2017.mxd")df = arcpy.mapping.ListDataFrames(mxd)[0]   arcpy.mapping.ExportToPNG(mxd, r"E:\projects\agglomeration\Images\Test00Test.png") 
df = arcpy.mapping.ListDataFrames(mxd)[0]
df.credits="(c) Ed Egan, 2019"
arcpy.RefreshActiveView()
newExtent.YMax = 44.48325
df.extent = newExtent
arcpy.RefreshActiveView()
#df.scale = 100000
newExtent.YMax = myDict[location][3]
df.extent = newExtent
#arcpy.RefreshActiveView()
filename="E:\\projects\\agglomeration\\Images\\"+location +".png"
arcpy.mapping.ExportToPNG(mxd, filename, resolution=144)
 
 
arcpy.mapping.ExportToPNG(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()

Navigation menu