获得 Business Analyst 许可后可用。
描述
Creates a snapshot of your map in a layout format and inserts it into a report.
使用方法
Make sure to have your map formatted and in an acceptable presentation format before running this tool.
This tool reads the orientation of your Layout setting in ArcMap and applies it to the report.
语法
arcpy.ba.MapLayoutReport(ReportTitle, OutputFolder, {ReportFormats})
参数 | 说明 | 数据类型 |
ReportTitle | The name of the map layout report title. | String |
OutputFolder | The directory that the report will be saved to. | Folder |
ReportFormats (可选) | Select the desired report output format.
| String |
代码示例
MapLayoutReport example (stand-alone script)
# Name: MapLayoutReport.py
# Description: Exports a map of the current map extent to a report.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
try:
# Acquire extension license
arcpy.CheckOutExtension("Business")
# Define input and output parameters for the Map Layout Report tool
MapLayoutDir = "C:/My Output Data/Map Layout"
# Create a map layout report
arcpy.MapLayoutReport_ba("New Mapping Report", MapLayoutDir)
# Release extension license
arcpy.CheckInExtension("Business")
环境
此工具不使用任何地理处理环境。
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst