ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

按字母顺序排序的 arcpy.mapping 类列表

  • arcpy.mapping 类

arcpy.mapping 类可访问地图文档 (.mxd) 或图层文件 (.lyr) 中不同对象类型的各种方法和属性。此文档可专门用作快速参考。有关详细信息,请使用链接跳转至各帮助页面。

arcpy.mapping 类

DataDrivenPages

  • 方法
    • exportToPDF(out_pdf, {page_range_type}, {page_range_string}, {multiple_files}, {resolution}, {image_quality}, {colorspace}, {compress_vectors}, {image_compression}, {picture_symbol}, {convert_markers}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {show_selection_symbology})
    • getPageIDFromName(page_name)
    • printPages({printer_name}, {page_range_type}, {page_range_string}, {out_print_file}, {show_selection_symbology})
    • refresh()
  • 属性
    • currentPageID - 读/写、长整型
    • dataFrame - 只读、DataFrame 对象
    • indexLayer - 只读、Layer 对象
    • pageCount - 只读、长整型
    • pageNameField - 只读、GP 字段对象
    • pageRow - 只读、GP 行对象
    • selectedPages - 只读、Python 索引编号列表

DataFrame

  • 方法
    • panToExtent(extent)
    • zoomToSelectedFeatures()
  • 属性
    • credits - 读/写、字符串型
    • description - 读/写、字符串型
    • displayUnits - 读/写、字符串型
    • elementHeight - 读/写、双精度型
    • elementPositionX - 读/写、双精度型
    • elementPositionY - 读/写、双精度型
    • elementWidth - 读/写、字符串型
    • extent - 读/写、GP 范围对象
    • geographicTransformations - 读/写、Python 字符串列表
    • mapUnits - 只读、字符串型
    • name - 读/写、字符串型
    • referenceScale - 读/写、双精度型
    • rotation - 读/写、双精度型
    • scale - 读/写、双精度型
    • spatialReference - 读/写、GP 空间参考对象
    • time - 只读、DataFrameTime 对象
    • type - 只读、字符串型

DataFrameTime

  • 方法
    • resetTimeExtent()
  • 属性
    • currentTime - 读/写、Python 日期时间对象
    • endTime - 读/写、Python 日期时间对象
    • startTime - 读/写、Python 日期时间对象
    • timeStepInterval - 只读、Python timedelta 对象
    • timeWindow - 读/写、双精度型
    • timeWindowUnits - 读/写、字符串型

GraduatedColorsSymbology

  • 方法
    • reclassify()
  • 属性
    • classBreakDescriptions - 读/写、Python 字符串列表
    • classBreakLabels - 读/写、Python 字符串列表
    • classBreakValues - 读/写、Python 字符串列表
    • normalization - 读/写、字符串型
    • numClasses - 读/写、长整型
    • valueField - 读/写、字符串型

GraduatedSymbolsSymbology

  • 方法
    • reclassify()
  • 属性
    • classBreakDescriptions - 读/写、Python 字符串列表
    • classBreakLabels - 读/写、Python 字符串列表
    • classBreakValues - 读/写、Python 字符串列表
    • normalization - 读/写、字符串型
    • numClasses - 读/写、长整型
    • valueField - 读/写、字符串型

GraphicElement

  • 方法
    • clone({suffix})
    • delete()
  • 属性
    • elementHeight - 读/写、双精度型
    • elementPositionX - 读/写、双精度型
    • elementPositionY - 读/写、双精度型
    • elementWidth - 读/写、字符串型
    • isGroup - 只读、布尔型
    • name - 读/写、字符串型
    • type - 只读、字符串型

LabelClass

  • 属性
    • className - 读/写、字符串型
    • expression - 读/写、字符串型
    • showClassLabels - 读/写、布尔型
    • SQLQuery - 读/写、字符串型

Layer

  • 方法
    • findAndReplaceWorkspacePath(find_workspace_path, replace_workspace_path, {validate})
    • getExtent({symbolized_extent})
    • getSelectedExtent({symbolized_extent})
    • getSelectionSet()
    • replaceDataSource(workspace_path, workspace_type, dataset_name, {validate})
    • save()
    • saveACopy(file_name, {version})
    • setSelectionSet(method, oidList)
    • supports(layer_property)
    • updateLayerFromJSON(json_layer_definition)
  • 属性
    • brightness - 读/写、长整型
    • contrast - 读/写、长整型
    • credits - 读/写、字符串型
    • datasetName - 只读、字符串型
    • dataSource - 只读、字符串型
    • definitionQuery - 读/写、字符串型
    • description - 读/写、字符串型
    • isBasemapLayer - 只读、布尔型
    • isBroken - 只读、布尔型
    • isFeatureLayer - 只读、布尔型
    • isGroupLayer - 只读、布尔型
    • isNetworkAnalystLayer - 只读、布尔型
    • isRasterizingLayer - 只读、布尔型
    • isRasterLayer - 只读、布尔型
    • isServiceLayer - 只读、布尔型
    • labelClasses - 读/写、LabelClass 对象列表
    • longName - 只读、字符串型
    • maxScale - 读/写、双精度型
    • minScale - 读/写、双精度型
    • name - 读/写、字符串型
    • serviceProperties - 只读;属性集字典
    • showLabels - 读/写、布尔型
    • symbology - 只读、Layer 符号系统对象
    • symbologyType - 只读、字符串型
    • time - 只读、Layer 时间对象
    • transparency - 读/写、长整型
    • visible - 读/写、布尔型
    • workspacePath - 只读、字符串型

LayerTime

  • 属性
    • daylightSavings - 只读、布尔型
    • displayDataCumulatively - 只读、布尔型
    • endTime - 只读、Python 日期时间对象
    • endTimeField - 只读、字符串型
    • isTimeEnabled - 只读、布尔型
    • startTime - 只读、Python 日期时间对象
    • startTimeField - 只读、字符串型
    • timeFormat - 只读、字符串型
    • timeOffset - 只读、Python timedelta 对象
    • timeStepInterval - 只读、Python timedelta 对象
    • timeZone - 只读、字符串型

LegendElement

  • 方法
    • adjustColumnCount(column_count)
    • listLegendItemLayers()
    • removeItem(legend_item_layer, {index})
    • updateItem(legend_item_layer, {legend_item_style_item}, {preserve_item_sizes}, {use_visible_extent}, {show_feature_count}, {use_ddp_extent}, {index})
  • 属性
    • autoAdd - 读/写、布尔型
    • elementHeight - 读/写、双精度型
    • elementPositionX - 读/写、双精度型
    • elementPositionY - 读/写、双精度型
    • elementWidth - 读/写、字符串型
    • isOverflowing - 只读、布尔型
    • items - 只读、Python 字符串列表
    • name - 读/写、字符串型
    • parentDataFrameName - 只读、字符串型
    • title - 读/写、字符串型
    • type - 只读、字符串型

MapDocument

  • 方法
    • deleteThumbnail()
    • findAndReplaceWorkspacePaths(find_workspace_path, replace_workspace_path, {validate})
    • makeThumbnail()
    • replaceWorkspaces(old_workspace_path, old_workspace_type, new_workspace_path, new_workspace_type, {validate})
    • save()
    • saveACopy(file_name, {version})
  • 属性
    • activeDataFrame - 只读、DataFrame 对象
    • activeView - 读/写、字符串型
    • author - 读/写、字符串型
    • credits - 只读、字符串型
    • dataDrivenPages - 只读、DataDrivenPages 对象
    • dateExported - 只读、Python 日期时间对象
    • datePrinted - 只读、Python 日期时间对象
    • dateSaved - 只读、Python 日期时间对象
    • description - 读/写、字符串型
    • filePath - 只读、字符串型
    • hyperlinkBase - 读/写、字符串型
    • isDDPEnabled - 只读、布尔型
    • pageSize - 只读、Python 已命名元组
    • relativePaths - 读/写、布尔型
    • summary - 读/写、字符串型
    • tags - 读/写、字符串型
    • title - 读/写、字符串型

MapsurroundElement

  • 属性
    • elementHeight - 读/写、双精度型
    • elementPositionX - 读/写、双精度型
    • elementPositionY - 读/写、双精度型
    • elementWidth - 读/写、字符串型
    • name - 读/写、字符串型
    • parentDataFrameName - 只读、字符串型
    • type - 只读、字符串型

PDFDocument

  • 方法
    • appendPages(pdf_path, {input_pdf_password})
    • attachFile(file_path, {description})
    • deletePages(page_range)
    • insertPages(pdf_path, {before_page_number}, {input_pdf_password})
    • saveAndClose()
    • updateDocProperties({pdf_title}, {pdf_author}, {pdf_subject}, {pdf_keywords}, {pdf_open_view}, {pdf_layout})
    • updateDocSecurity({new_master_password}, {new_user_password}, {encryption}, {permissions})
  • 属性:
    • pageCount - 只读、长整型

PictureElement

  • 属性
    • elementHeight - 读/写、双精度型
    • elementPositionX - 读/写、双精度型
    • elementPositionY - 读/写、双精度型
    • elementWidth - 读/写、字符串型
    • name - 读/写、字符串型
    • sourceImage - 读/写、字符串型
    • type - 只读、字符串型

RasterClassifiedSymbology

  • 方法
    • reclassify()
  • 属性
    • classBreakDescriptions - 读/写、Python 字符串列表
    • classBreakLabels - 读/写、Python 字符串列表
    • classBreakValues - 读/写、Python 字符串列表
    • excludedValues - 读/写、字符串型
    • normalization - 读/写、字符串型
    • numClasses - 读/写、长整型
    • valueField - 读/写、字符串型

StyleItem

  • 属性
    • itemName - 只读、字符串型
    • itemCategory - 只读、字符串型
    • styleFolderName - 只读、字符串型

TableView

  • 方法
    • findAndReplaceWorkspacePath(find_workspace_path, replace_workspace_path, {validate})
    • getSelectionSet()
    • replaceDataSource(workspace_path, workspace_type, dataset_name, {validate})
    • setSelectionSet(method, oidList)
  • 属性
    • datasetName - 只读、字符串型
    • dataSource - 只读、字符串型
    • definitionQuery - 读/写、字符串型
    • isBroken - 只读、布尔型
    • name - 读/写、字符串型
    • workspacePath - 只读、字符串型

TextElement

  • 方法
    • clone({suffix})
    • delete()
  • 属性
    • elementHeight - 读/写、双精度型
    • elementPositionX - 读/写、双精度型
    • elementPositionY - 读/写、双精度型
    • elementWidth - 读/写、字符串型
    • fontSize - 读/写、双精度型
    • name - 读/写、字符串型
    • text - 读/写、字符串型
    • type - 只读、字符串型

UniqueValuesSymbology

  • 方法
    • addAllValues()
  • 属性
    • classDescriptions - 读/写、Python 字符串列表
    • classLabels - 读/写、Python 字符串列表
    • classValues - 读/写、Python 字符串列表
    • showOtherValues - 读/写、布尔型
    • valueField - 读/写、字符串型

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明