The following script exports a MapSeries object using default PDFFormat properties but configures the MapSeriesExportOptions to export a custom set of map series pages. p = arcpy.mp.ArcGISProject('current') l = p.listLayouts('Layout_MS')[0] ms = l.mapSeries pdf = arcpy.mp.CreateExportFor...
Die zugeordneten Felder müssen identische Datentypen aufweisen und bei den Feldnamen in der field_map wird zwischen Groß- und Kleinschreibung unterschieden. Es ist möglich, arcpy.mapping zum Erstellen von Berichten zu verwenden, sodass Sie eine Karte in den Bericht aufnehmen können. ...
mapping.MapDocument(r"C:\Project\Project.mxd") arcpy.mapping.ExportToJPEG(mxd, r"C:\Project\Output\Project.jpg") del mxd ExportToJPEG example 2 This script will export a single data frame instead of the entire page layout, similar to exporting from data view in the ArcMap application. ...
import arcpy from arcpy import da import os inTable = arcpy.GetParameterAsText(0) fileLocation = arcpy.GetParameterAsText(1) with da.SearchCursor(inTable, ['DATA', 'ATT_NAME', 'ATTACHMENTID']) as cursor: for item in cursor: attachment = item[0] filenum = "ATT" + str(item[2]) +...
要创建输出导出文件,您需要将导出格式对象传递至 export 方法上的 format 参数,它可以用于多个类:BookmarkMapSeries、Layout、MapFrame、MapSeries、MapView 和Report。 语法 CreateExportFormat (format, {file_path}) 参数 说明 数据类型 format The list of supported export formats is as follows: AIX—Adobe ...
import arcpy import os import uuid # Input Web Map json Web_Map_as_JSON = arcpy.GetParameterAsText(0) # The template location in the server data store templateMxd = r"\\MyComputer\MyDataStore\BasicTutorial\v103\WorldTopo_103Templatev2_288k_to_1k.mxd" # Convert the Web...
Use arcpy.mp to export - MapSeries—ArcGIS Pro | Documentation (code samples are at the end) If you have Adobe Acrobat Pro you can export to a single PDF and then use Acrobat to split the single PDF into multiple PDFs I have no idea if the issue causing BUG-000132799 is also...
Status: Open Labels Map Authoring by Bud Esteemed Contributor I'm working with a FC that has data, of sorts, stored in the symbology. What I mean is: there is UNIT information in the symbology as labels, yet that UNIT information doesn't exist in a field in the attribute table of ...
This script opens a map document and exports the page layout to a GIF file using default values for all options. import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") arcpy.mapping.ExportToGIF(mxd, r"C:\Project\Output\Project.gif") del mxd ExportToGIF example 2 This...
This script opens a map document and exports the page layout to a JPEG file using default values for all options. importarcpymxd=arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")arcpy.mapping.ExportToJPEG(mxd,r"C:\Project\Output\Project.jpg")delmxd ...