Skip to main content

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

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

arcpy.mp

AIXFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • convertMarkers - 读/写;布尔型,默认:False

    • embedColorProfile - 读/写;布尔型,默认:True

    • embedFonts - 读/写;布尔型,默认:True

    • filePath - 读/写;字符串型

    • height - 读/写;双精度型,默认:960

    • imageCompression - 读/写;字符串型,默认:ADAPTIVE

    • imageCompressionQuality - 读/写;长整型,默认:80

    • imageQuality - 读/写;字符串型,默认:BEST

    • removeLayoutBackground - 读/写;布尔型,默认:True

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

  • 方法

    • setImageCompression(image_compression)

    • setImageQuality(image_quality)

ArcGISProject

  • 属性

    • activeMap - 只读;Map 对象

    • activeView - 只读;MapViewLayoutReport 对象

    • databases - 只读;Python 字典的 List

    • dateSaved - 只读;Datetime

    • defaultGeodatabase - 读/写;String

    • defaultToolbox - 读/写;String

    • documentVersion - 只读;String

    • filePath - 只读;String

    • folderConnections - 只读;Python 字典的 List

    • homeFolder - 读/写;String

    • isReadOnly - 只读;Boolean

    • metadata - 读/写;Metadata

    • styles - 只读;Python 字符串的 List

    • toolboxes - 只读;Python 字典的 List

  • 方法

    • closeViews({view_type}, {wildcard})

    • copyItem(project_item, {new_name})

    • createGraphicElement(container, geometry, {style_item}, {name}, {lock_aspect_ratio})

    • createGroupElement(container, element_list, {name})

    • createLayout(page_width, page_height, page_units, {name})

    • createMap({name}, {map_type})

    • createPictureElement(container, geometry, path, {name}, {lock_aspect_ratio})

    • createPreDefinedGraphicElement(container, geometry, shape_type, {style_item}, {name}, {lock_aspect_ratio})

    • createReport(page_info, data_source, {fields}, {statistics}, {name}, {template}, {styling})

    • createTextElement(container, geometry, text_type, text, {text_size}, {font_family_name}, {font_style_name}, {style_item}, {name}, {lock_aspect_ratio})

    • deleteItem(project_item)

    • importDocument(document_path, {include_layout}, {reuse_existing_maps}, {log_files})

    • listBasemaps({wildcard}, {basemap_type})

    • listBrokenDataSources()

    • listColorRamps({wildcard})

    • listLayouts({wildcard})

    • listMaps({wildcard})

    • listReports({wildcard})

    • listStyleItems(style, {style_class}, {wildcard}, {key})

    • save()

    • saveACopy(file_name)

    • updateConnectionProperties(current_connection_info, new_connection_info, {auto_update_joins_and_relates}, {validate}, {ignore_case})

    • updateDatabases(databases, {validate})

    • updateFolderConnections(folder_connections, {validate})

    • updateStyles(styles)

    • updateToolboxes(toolboxes, {validate})

BMPFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • colorMode - 读/写;字符串型,默认:24-BIT_TRUE_COLOR

    • filePath - 读/写;字符串型

    • georeferenceMapFrame - 读/写;MapFrame 对象,默认:无

    • height - 读/写;双精度型,默认:960

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • threshold - 读/写;长整型,默认:128

    • width - 读/写;双精度型,默认:960

    • worldFile - 读/写;布尔型,默认:False

  • 方法

    • setColorMode(bmp_color_mode)

Bookmark

  • 属性

    • description - 读/写;字符串型

    • hasThumbnail - 只读;布尔型

    • map - 只读;Map 对象

    • name - 读/写;字符串型

  • 方法

    • updateThumbnail()

BookmarkMapSeries

  • 属性

    • bookmarks - 读/写;Bookmark 对象列表

    • currentBookmark - 只读;Bookmark 对象

    • currentPageNumber - 读/写;长整型

    • enabled - 读/写;布尔型

    • mapFrame - 读/写;MapFrame 对象

    • pageCount - 只读;长整型

  • 方法

    • export(export_format, {mapseries_export_options}, {display_options})

    • exportToPDF(out_pdf, {page_range_type}, {page_range_string}, {multiple_files}, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {clip_to_elements}, {output_as_image}, {embed_color_profile}, {pdf_accessibility}, {show_export_count}, {keep_layout_background}, {convert_markers}, {simulate_overprint})

    • getDefinition(cim_version)

    • getPageNumberFromName(page_name)

    • refresh()

    • setDefinition(definition_object)

Camera

  • 属性

    • heading - 读/写;双精度型

    • mode - 读/写;字符串型

    • pitch - 读/写;双精度型

    • roll - 读/写;双精度型

    • scale - 读/写;双精度型

    • X - 读/写;双精度型

    • Y - 读/写;双精度型

    • Z - 读/写;双精度型

  • 方法

    • getExtent()

    • setExtent(extent)

ClassBreak

  • 属性

    • description - 读/写;字符串型

    • label - 读/写;字符串型

    • symbol - 读/写;Symbol

    • upperBound - 读/写;双精度型

ColorRamp

  • 属性

    • name - 只读;字符串型

DisplayOptions

  • 属性

    • antialiasing - 读/写;字符串型
  • 方法

    • setAntialiasing({antialiasing})

ElevationSource

  • 属性

    • dataSource - 只读;字符串型

    • name - 读/写;字符串型

    • visible - 读/写;布尔型

ElevationSurface

  • 属性

    • name - 读/写;字符串型

    • URI - 只读;字符串型

    • verticalExaggeration - 读/写;双精度型

  • 方法

    • listElevationSources({wildcard})

EMFFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • convertMarkers - 读/写;布尔型,默认:False

    • filePath - 读/写;字符串型

    • height - 读/写;双精度型,默认:960

    • imageQuality - 读/写;字符串型,默认:BEST

    • outputAsImage - 读/写;布尔型,默认:False

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

  • 方法

    • setImageQuality(image_quality)

EPSFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • convertMarkers - 读/写;布尔型,默认:False

    • embedFonts - 读/写;布尔型,默认:True

    • filePath - 读/写;字符串型

    • height - 读/写;双精度型,默认:960

    • imageCompression - 读/写;字符串型,默认:DEFLATE

    • imageQuality - 读/写;字符串型,默认:BEST

    • outputAsImage - 读/写;布尔型,默认:False

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

  • 方法

    • setImageCompression(eps_compression)

    • setImageQuality(image_quality)

GIFFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • colorMode - 读/写;字符串型,默认:8-BIT_ADAPTIVE_PALETTE

    • filePath - 读/写;字符串型

    • georeferenceMapFrame - 读/写;MapFrame 对象,默认:无

    • height - 读/写;双精度型,默认:960

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • threshold - 读/写;长整型,默认:128

    • width - 读/写;双精度型,默认:960

    • worldFile - 读/写;布尔型,默认:False

  • 方法

    • setColorMode(gif_color_mode)

GraduatedColorsRenderer

  • 属性

    • breakCount - 读/写;整型

    • classBreaks - 读/写;ClassBreak 对象列表

    • classificationField - 读/写;字符串型

    • classificationMethod - 读/写;字符串型

    • colorRamp - 读/写;ColorRamp

    • deviationInterval - 读/写;双精度型

    • intervalSize - 读/写;双精度型

    • lowerBound - 读/写;双精度型

    • normalizationField - 读/写;字符串型

    • normalizationType - 读/写;字符串型

    • type - 只读;字符串型

GraduatedSymbolsRenderer

  • 属性

    • backgroundSymbol - 读/写;Symbol

    • breakCount - 读/写;整型

    • classBreaks - 读/写;ClassBreak 对象列表

    • classificationField - 读/写;字符串型

    • classificationMethod - 读/写;字符串型

    • colorRamp - 读/写;ColorRamp

    • deviationInterval - 读/写;双精度型

    • intervalSize - 读/写;双精度型

    • lowerBound - 读/写;双精度型

    • maximumSymbolSize - 读/写;双精度型

    • minimumSymbolSize - 读/写;双精度型

    • normalizationField - 读/写;字符串型

    • normalizationType - 读/写;字符串型

    • symbolTemplate - 只读;Symbol

    • type - 只读;字符串型

  • 方法

    • updateSymbolTemplate(symbol_template)

GraphicElement

  • 属性

    • anchor - 只读;字符串型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • isGroup - 只读;布尔型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • applyStyleItem(style_item)

    • clone({suffix})

    • delete()

    • getDefinition(cim_version)

    • setAnchor(anchor)

    • setDefinition(definition_object)

GroupElement

  • 属性

    • anchor - 只读;字符串型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elements - 只读;元素列表

    • elementWidth - 读/写;双精度型

    • isGroup - 只读;布尔型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • getDefinition(cim_version)

    • setAnchor(anchor)

    • setDefinition(definition_object)

    • ungroupElements()

Item

  • 属性

    • description - 读/写;字符串型

    • label - 读/写;字符串型

    • symbol - 读/写;Symbol

    • values - 只读;值列表

ItemGroup

  • 属性

    • heading - 读/写;字符串型

    • items - 读/写;ItemRasterItem 对象列表

JPEGFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • colorMode - 读/写;字符串型,默认:24-BIT_TRUE_COLOR

    • filePath - 读/写;字符串型

    • georeferenceMapFrame - 读/写;MapFrame 对象,默认:无

    • height - 读/写;双精度型,默认:960

    • imageCompressionQuality - 读/写、双精度型:80

    • resolution - 读/写;双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

    • worldFile - 读/写;布尔型,默认:False

  • 方法

    • setColorMode(jpeg_color_mode)

LabelClass

  • 属性

    • expression - 读/写;字符串型

    • name - 读/写;字符串型

    • SQLQuery - 读/写;字符串型

    • visible - 读/写;布尔型

  • 方法

    • getDefinition(cim_version)

    • setDefinition(definition_object)

Layer

  • 属性

    • brightness - 读/写;长整型

    • connectionProperties - 只读;字典

    • contrast - 读/写;长整型

    • dataSource - 只读;字符串型

    • definitionQuery - 读/写;字符串型

    • elevation - 只读;LayerElevation object

    • groupType - 只读;字符串型

    • is3DLayer - 只读;布尔型

    • isBasemapLayer - 只读;布尔型

    • isBroken - 只读;布尔型

    • isFeatureLayer - 只读;布尔型

    • isGraphicsLayer - 只读;布尔型

    • isGroupLayer - 只读;布尔型

    • isNetworkAnalystLayer - 只读;布尔型

    • isNetworkDatasetLayer - 只读;布尔型

    • isParcelFabricLayer - 只读;布尔型

    • isRasterLayer - 只读;布尔型

    • isSceneLayer - 只读;布尔型

    • isTimeEnabled - 只读;布尔型

    • isTopologyLayer - 只读;布尔型

    • isWebLayer - 只读;布尔型

    • longName - 只读;字符串型

    • maxThreshold - 读/写;双精度型

    • metadata - 读/写;Metadata

    • minThreshold - 读/写;双精度型

    • name - 读/写;字符串型

    • pageQuery - 只读;命名元组

    • showLabels - 读/写;布尔型

    • symbology - 读/写;Renderer 对象

    • time - 只读;LayerTime 对象

    • transparency - 读/写;长整型

    • URI - 只读;布尔型

    • visible - 读/写;布尔型

  • 方法

    • createLabelClass(name, expression, {sql_query}, {labelclass_language})

    • disableTime()

    • enableTime({startTimeField}, {endTimeField}, {autoCalculateTimeRange}, {timeDimension})

    • extrusion({extrusion_type}, {expression})

    • getDefinition(cim_version)

    • getSelectionSet()

    • getSymbologyDefinition(cim_version)

    • listCharts({wildcard})

    • listDefinitionQueries({wildcard})

    • listLabelClasses({wildcard})

    • listLayers({wildcard})

    • listTables({wildcard})

    • openTableView({show_selected})

    • pasteProperties(source_layer, {layer_paste_properties})

    • saveACopy(file_name)

    • setDefinition(definition_object)

    • setGroupType(group_type)

    • setPageQuery({field_name}, {match})

    • setSelectionSet({oidList}, {method})

    • setSymbologyDefinition(definition_object)

    • supports(layer_property)

    • updateConnectionProperties(current_connection_info, new_connection_info, {auto_update_joins_and_relates}, {validate}, {ignore_case})

    • updateDefinitionQueries(definitionQueries)

    • updateLayerFromJSON(json_data)

LayerElevation

  • 属性

    • cartographicOffset - 读/写;双精度型

    • elevationMode - 只读;字符串型

    • verticalExaggeration - 读/写;双精度型

    • verticalUnits - 读/写;字符串型

  • 方法

    • setElevationMode()

    • setVerticalUnits(file_name)

LayerFile

  • 属性

    • filePath - 只读;字符串型

    • metadata - 读/写;Metadata

    • version - 只读;字符串型

  • 方法

    • addLayer(add_layer_or_layerfile, {add_position})

    • addLayerToGroup(target_group_layer, add_layer_or_layerfile, {add_position})

    • insertLayer(reference_layer, insert_layer_or_layerfile, {insert_position})

    • listBrokenDataSources()

    • listLayers({wildcard})

    • listTables({wildcard})

    • moveLayer(reference_layer, move_layer, {insert_position})

    • removeLayer(remove_layer)

    • save()

    • saveACopy(file_name)

    • updateConnectionProperties(current_connection_info, new_connection_info, {auto_update_joins_and_relates}, {validate}, {ignore_case})

LayerTime

  • 属性

    • daylightSavings - 读/写;布尔型

    • endTime - 读/写;日期时间

    • endTimeField - 读/写;字符串型

    • startTime - 读/写;日期时间

    • startTimeField - 读/写;字符串型

    • timeDimension - 读/写;字符串型

    • timeFormat - 读/写;字符串型

    • timeOffset - 读/写;双精度型

    • timeOffsetUnits - 读/写;字符串型

    • timeStepInterval - 读/写;双精度型

    • timeStepIntervalUnits - 读/写;字符串型

    • timeZone - 读/写;字符串型

    • timeZoneIANA - 读/写;字符串型

Layout

  • 属性

    • colorModel - 只读;字符串型

    • mapSeries - 只读;MapSeriesBookmarkMapSeries

    • metadata - 读/写;Metadata

    • name - 读/写;字符串型

    • pageHeight - 读/写;双精度型

    • pageUnits - 读/写;字符串型

    • pageWidth - 读/写;双精度型

    • URI - 只读;布尔型

  • 方法

    • changePageSize(page_width, page_height, {resize_elements})

    • createBookmarkMapSeries(mapframe, {bookmarks})

    • createMapFrame(geometry, {map}, {name})

    • createMapSurroundElement(geometry, {map_surround_type}, {mapframe}, {style_Item}, {name})

    • createSpatialMapSeries(mapframe, index_layer, name_field, {sort_field})

    • createTableFrameElement(geometry, {mapframe}, {table}, {fields}, {style_item}, {name})

    • deleteElement(element)

    • export(export_format, {display_options})

    • exportToAIX(out_aix, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {jpeg_compression_quality}, {embed_fonts}, {embed_color_profile}, {clip_to_elements}, {keep_layout_background}, {convert_markers})

    • exportToBMP(out_bmp, {resolution}, {bmp_color_mode}, {bmp_image_compression}, {embed_color_profile}, {clip_to_elements})

    • exportToEMF(out_emf, {resolution}, {image_quality}, {output_as_image}, {clip_to_elements}, {convert_markers})

    • exportToEPS(out_eps, {resolution}, {image_compression}, {image_quality}, {embed_fonts}, {output_as_image}, {clip_to_elements}, {convert_markers})

    • exportToGIF(out_gif, {resolution}, {gif_color_mode}, {clip_to_elements})

    • exportToJPEG(out_jpg, {resolution}, {jpeg_color_mode}, {jpeg_quality}, {embed_color_profile}, {clip_to_elements})

    • exportToPAGX(out_pagx)

    • exportToPDF(out_pdf, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {clip_to_elements}, {output_as_image}, {embed_color_profile}, {pdf_accessibility}, {keep_layout_background}, {convert_markers}, {simulate_overprint})

    • exportToPNG(out_png, {resolution}, {color_mode}, {transparent_background}, {embed_color_profile}, {clip_to_elements})

    • exportToSVG(out_svg, {resolution}, {compress_to_svgz}, {image_quality}, {embed_fonts}, {output_as_image}, {clip_to_elements}, {convert_markers})

    • exportToTGA(out_tga, {resolution}, {color_mode}, {transparent_background}, {clip_to_elements})

    • exportToTIFF(out_tif, {resolution}, {color_mode}, {tiff_compression}, {jpeg_compression_quality}, {transparent_background}, {embed_color_profile}, {clip_to_elements},{world_file}, {geoTIFF_tags}, {georef_mapframe})

    • getDefinition(cim_version)

    • listElements({element_type}, {wildcard})

    • openView()

    • setColorModel(color_model)

    • setDefinition(definition_object)

LegendElement

  • 属性

    • anchor - 只读;字符串型

    • columnCount - 读/写;长整型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • fittingStrategy - 读/写;字符串型

    • isOverflowing - 只读;布尔型

    • items - 只读;LegendItem 对象列表

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • mapFrame - 读/写;MapFrame 对象

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • showTitle - 读/写;布尔型

    • syncLayerOrder - 读/写;布尔型

    • syncLayerVisibility - 读/写;布尔型

    • syncNewLayer - 读/写;布尔型

    • syncReferenceScale - 读/写;布尔型

    • title - 读/写;字符串型

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • addItem(layer, {add_position})

    • applyStyleItem(style_item)

    • getDefinition(cim_version)

    • moveItem(reference_item, move_item, {move_position})

    • removeItem(remove_item)

    • setAnchor(anchor)

    • setDefinition(definition_object)

LegendItem

  • 属性

    • arrangement - 读/写;字符串型

    • column - 读/写;长整型

    • name - 只读;字符串型

    • patchHeight - 读/写;双精度型

    • patchWidth - 读/写;双精度型

    • showFeatureCount - 读/写;布尔型

    • showVisibleFeatures - 读/写;布尔型

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • applyStyleItem(style_item)

Map

  • 属性

    • colorModel - 只读;字符串型

    • defaultCamera - 读/写;Camera 对象

    • defaultView - 只读;MapView 对象

    • excludedLayersFromClipping - 读/写;列表

    • mapType - 只读;字符串型

    • mapUnits - 读/写;字符串型

    • metadata - 读/写;Metadata

    • name - 读/写;字符串型

    • referenceScale - 读/写;双精度型

    • spatialReference - 读/写;SpatialReference 对象

    • transformations - 只读;字典

    • URI - 只读;布尔型

  • 方法

    • addBasemap(basemap_name, {basemap_type})

    • addDataFromPath(data_path, {web_service_type}, {custom_parameters})

    • addLayer(add_layer_or_layerfile, {add_position})

    • addLayerToGroup(target_group_layer, add_layer_or_layerfile, {add_position})

    • addTable(add_table)

    • addTableToGroup(target_group_layer, add_table)

    • clearSelection()

    • clipLayers(clip_object, {selection})

    • copyBookmark(bookmark, {name})

    • createGraphicsLayer({name})

    • createGroupLayer(name, {group_layer})

    • exportBookmarks(out_bkmx)

    • exportToMAPX(out_mapx)

    • getDefinition(cim_version)

    • getWebLayerSharingDraft(server_type, service_type, service_name, {layers_and_tables})

    • importBookmarks(bkmx_path)

    • insertLayer(reference_layer, insert_layer_or_layerfile, {insert_position})

    • listBookmarks({wildcard})

    • listBrokenDataSources()

    • listElevationSources({wildcard})

    • listLayers({wildcard})

    • listTables({wildcard})

    • moveLayer(reference_layer, move_layer, {insert_position})

    • openView()

    • removeBookmark(remove_bookmark)

    • removeLayer(remove_layer)

    • removeTable(remove_table)

    • setColorModel(color_model)

    • setDefinition(definition_object)

    • updateConnectionProperties(current_connection_info, new_connection_info, {auto_update_joins_and_relates}, {validate}, {ignore_case})

    • updateTransformations(transformations)

MapFrame

  • 属性

    • altText - 读/写;字符串型

    • anchor - 只读;字符串型

    • camera - 读/写;camera 对象

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • map - 读/写;Map 对象

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • time - 只读;MapTime 对象

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • addGrid(style_item)

    • convertGridToFeatures(grid_name, output_geodatabase, {new_grid_name})

    • createBookmark({name}, {description})

    • export(export_format, {display_options})

    • exportToAIX(out_aix, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {jpeg_compression_quality}, {embed_fonts}, {embed_color_profile}, {convert_markers})

    • exportToBMP(out_bmp, {resolution}, {world_file}, {bmp_color_mode}, {bmp_image_compression}, {embed_color_profile})

    • exportToEMF(out_emf, {resolution}, {image_quality}, {output_as_image}, {convert_markers})

    • exportToEPS(out_eps, {resolution}, {image_compression}, {image_quality}, {embed_fonts}, {output_as_image}, {convert_markers})

    • exportToGIF(out_gif, {resolution}, {world_file}, {gif_color_mode})

    • exportToJPEG(out_jpg, {resolution}, {world_file}, {jpeg_color_mode}, {jpeg_quality}, {embed_color_profile})

    • exportToPDF(out_pdf, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {output_as_image}, {embed_color_profile}, {convert_markers}, {simulate_overprint})

    • exportToPNG(out_png, {resolution}, {world_file}, {color_mode}, {embed_color_profile})

    • exportToSVG(out_svg, {resolution}, {compress_to_svgz}, {image_quality}, {embed_fonts}, {output_as_image}, {convert_markers})

    • exportToTGA(out_tga, {resolution}, {world_file}, {color_mode})

    • exportToTIFF(out_tif, {resolution}, {world_file}, {color_mode}, {tiff_compression}, {geoTIFF_tags}, {jpeg_compression_quality}, {embed_color_profile})

    • getDefinition(cim_version)

    • getLayerExtent(layer, {selection_only}, {symbolized_extent})

    • panToExtent(extent)

    • removeGrids({wildcard})

    • setAnchor(anchor)

    • setDefinition(definition_object)

    • zoomToAllLayers({selection_only}, {symbolized_extent})

    • zoomToBookmark(bookmark)

MapSeries

  • 属性

    • clipToIndexFeature - 读/写;布尔型

    • currentPageName - 读/写;字符串型

    • currentPageNumber - 读/写;长整型

    • enabled - 读/写;布尔型

    • indexLayer - 只读;Layer 对象

    • mapFrame - 只读;MapFrame 对象

    • pageCount - 只读;长整型

    • pageNameField - 只读;GP Field 对象

    • pageRow - 只读;命名元组

    • selectedIndexFeatures - 只读;相应页码的 Python 列表

    • type - 只读;字符串型

  • 方法

    • export(export_format, {mapseries_export_options}, {display_options})

    • exportToPDF(out_pdf, {page_range_type}, {page_range_string}, {multiple_files}, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {clip_to_elements}, {show_selection_symbology}, {output_as_image}, {embed_color_profile}, {pdf_accessibility}, {show_export_count}, {convert_markers})

    • getDefinition(cim_version)

    • getPageNumberFromName(page_name)

    • refresh()

    • setDefinition(definition_object)

MapSeriesExportOptions

  • 属性

    • customPages - 读/写;字符串型

    • exportFileOptions - 读/写;字符串型

    • exportPages - 读/写;字符串型

    • showExportCount - 读/写;布尔型

  • 方法

    • setExportFileOptions(export_file_options)

    • setExportPages(export_pages)

MapsurroundElement

  • 属性

    • anchor - 只读;字符串型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • mapFrame - 读/写;MapFrame 对象

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • applyStyleItem(style_item)

    • getDefinition(cim_version)

    • setAnchor(anchor)

    • setDefinition(definition_object)

MapTime

  • 属性

    • currentTimeEnd - 读/写;日期时间

    • currentTimeSpan - 只读;双精度型

    • currentTimeSpanUnits - 只读;字符串型

    • currentTimeStart - 读/写;日期时间

    • isTimeEnabled - 读/写;布尔型

    • timeInclusion - 只读;字符串型

    • timeStepInterval - 只读;双精度型

    • timeStepIntervalUnits - 只读;字符串型

  • 方法

    • setTimeInclusion(time_inclusion)

    • timeStep(reference_time, interval, interval_units)

MapView

  • 属性

    • camera - 读/写;camera 对象

    • map - 只读;Map 对象

  • 方法

    • createBookmark({name}, {description})

    • export(export_format, {display_options})

    • exportToAIX(out_aix, width, height, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {jpeg_compression_quality}, {embed_fonts}, {embed_color_profile}, {convert_markers})

    • exportToBMP(out_bmp, width, height, {resolution}, {world_file}, {bmp_color_mode}, {bmp_image_compression}, {embed_color_profile})

    • exportToEMF(out_emf, width, height, {resolution}, {image_quality}, {output_as_image}, {convert_markers})

    • exportToEPS(out_eps, width, height, {resolution}, {image_compression}, {image_quality}, {embed_fonts}, {output_as_image}, {convert_markers})

    • exportToGIF(out_gif, width, height, {resolution}, {world_file}, {gif_color_mode})

    • exportToJPEG(out_jpg, width, height, {resolution}, {world_file}, {jpeg_color_mode}, {jpeg_quality}, {embed_color_profile})

    • exportToPDF(out_pdf, width, height, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality}, {output_as_image}, {embed_color_profile}, {convert_markers})

    • exportToPNG(out_png, width, height, {resolution}, {world_file}, {color_mode}, {embed_color_profile})

    • exportToSVG(out_svg, width, height, {resolution}, {compress_to_svgz}, {image_quality}, {embed_fonts}, {output_as_image}, {convert_markers})

    • exportToTGA(out_tga, width, height, {resolution}, {world_file}, {color_mode})

    • exportToTIFF(out_tif, width, height, {resolution}, {world_file}, {color_mode}, {tiff_compression}, {geoTIFF_tags}, {jpeg_compression_quality}, {embed_color_profile})

    • getLayerExtent(layer, {selection_only}, {symbolized_extent})

    • panToExtent(extent)

    • zoomToAllLayers({selection_only}, {symbolized_extent})

    • zoomToBookmark(bookmark)

PDFDocument

  • 属性

    • pageCount - 只读;长整型
  • 方法

    • 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}, {pdf_language_code})

    • updateDocSecurity(new_master_password, {new_user_password}, {encryption}, {permissions})

PDFFormat

  • 属性

    • author - 读/写;字符串型

    • clipToElements - 读/写;布尔型,默认:False

    • compressVectorGraphics - 读/写;布尔型,默认:True

    • convertMarkers - 读/写;布尔型,默认:False

    • embedColorProfile - 读/写;布尔型,默认:True

    • embedFonts - 读/写;布尔型,默认:True

    • filePath - 读/写;字符串型

    • georefInfo - 读/写;布尔型,默认:True

    • height - 读/写;双精度型,默认:960

    • imageCompression - 读/写;字符串型,默认:ADAPTIVE

    • imageCompressionQuality - 读/写;长整型,默认:80

    • imageQuality - 读/写;字符串型,默认:BEST

    • includeAccessibilityTags - 读/写;布尔型,默认:False

    • includeNonVisibleMapLayers - 读/写;布尔型,默认:False

    • keywords - 读/写;字符串型

    • languageCode - 读/写;字符串型

    • layersAndAttributes - 读/写;字符串型,默认:LAYERS_ONLY

    • outputAsImage - 读/写;布尔型,默认:False

    • rasterAsSingleTile - 读/写;布尔型,默认:False

    • removeLayoutBackground - 读/写;布尔型,默认:False

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • simulateOverprint - 读/写;布尔型,默认:False

    • subject - 读/写;字符串型

    • title - 读/写;字符串型

    • width - 读/写;双精度型,默认:960

  • 方法

    • setImageCompression(image_compression)

    • setImageQuality(image_quality)

    • setLayersAndAttributes(layers_attributes)

PictureElement

  • 属性

    • altText - 读/写;字符串型

    • anchor - 只读;字符串型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • sourceImage - 读/写;字符串型

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • getDefinition(cim_version)

    • setAnchor(anchor)

    • setDefinition(definition_object)

PNGFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • colorMode - 读/写;字符串型,默认:32-BIT_WITH_ALPHA

    • filePath - 读/写;字符串型

    • georeferenceMapFrame - 读/写;MapFrame 对象,默认:无

    • height - 读/写;双精度型,默认:960

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • threshold - 读/写;长整型,默认:128

    • transparentBackground - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

    • worldFile - 读/写;布尔型,默认:False

  • 方法

    • setColorMode(png_color_mode)

RasterClassBreak

  • 属性

    • color - 读/写;字典

    • description - 读/写;字符串型

    • label - 读/写;字符串型

    • upperBound - 读/写;双精度型

RasterClassifyColorizer

  • 属性

    • breakCount - 读/写;长整型

    • classBreaks - 读/写;RasterClassBreak 对象列表

    • classificationField - 读/写;字符串型

    • classificationMethod - 读/写;字符串型

    • colorRamp - 读/写;ColorRamp

    • lowerBound - 读/写;双精度型

    • noDataColor - 读/写;字典

    • type - 只读;字符串型

RasterItem

  • 属性

    • color - 读/写;字典

    • description - 读/写;字符串型

    • label - 读/写;字符串型

    • values - 只读;列表

RasterStretchColorizer

  • 属性

    • band - 读/写;长整型

    • colorRamp - 读/写;ColorRamp

    • gamma - 读/写;双精度型

    • invertColorRamp - 读/写;布尔型

    • maxLabel - 读/写;字符串型

    • maxPercent - 读/写;双精度型

    • minLabel - 读/写;字符串型

    • minPercent - 读/写;双精度型

    • standardDeviation - 读/写;双精度型

    • stretchType - 读/写;字符串型

    • type - 只读;字符串型

RasterUniqueValueColorizer

  • 属性

    • colorRamp - 读/写;ColorRamp

    • field - 读/写;字符串型

    • groups - 读/写;ItemGroup 对象列表

    • noDataColor - 读/写;字典

    • type - 只读;字符串型

    • useDefaultColor - 读/写;布尔型

Report

  • 属性

    • definitionQuery - 读/写;字符串型

    • metadata - 读/写;Metadata

    • name - 读/写;字符串型

    • referenceDataSource - 只读;字典

  • 方法

    • export(export_format, {report_export_options}, {display_options})

    • exportToPDF(out_pdf, {page_range_type}, {page_range}, {starting_page_number}, {total_page_number}, {resolution}, {image_quality}, {compress_vector_graphics}, {image_compression},{embed_fonts}, {jpeg_compression_quality}, {embed_color_profile}, {pdf_accessibility}, {convert_markers}, {simulate_overprint})

    • getDefinition(cim_version)

    • listSections({wildcard})

    • openView()

    • setDefinition(definition_object)

    • setReferenceDataSource(data_source)

ReportExportOptions

  • 属性

    • customPages - 读/写;字符串型

    • exportPages - 读/写;字符串型

    • startingPageNumberLabelOffset - 读/写;整型

    • totalPageNumberOverride - 读/写;整型

  • 方法

    • setExportPages(report_export_pages)

ReportLayoutSection

  • 属性

    • name - 读/写;字符串型

    • type - 只读;字符串型

    • visible - 读/写;布尔型

    • URI - 读/写;字符串型

ReportSection

  • 属性

    • definitionQuery - 读/写;字符串型

    • fields - 读/写;列表

    • name - 只读;字符串型

    • referenceDataSource - 只读;字典

    • statistics - 读/写;列表

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • setReferenceDataSource(data_source)

    • setRelatedReportSource (related_report_data_source, related_report_section_name, relate_or_relationship_class_name)

SimpleRenderer

  • 属性

    • description - 读/写;字符串型

    • label - 读/写;字符串型

    • symbol - 读/写;Symbol

    • type - 只读;字符串型

StyleItem

  • 属性

    • category - 只读;字符串型

    • key - 只读;字符串型

    • name - 只读;字符串型

    • style - 只读;字符串型

    • styleClass - 只读;字符串型

    • tags - 只读;字符串型

SVGFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • compressToSVGZ - 读/写;布尔型,默认:False

    • convertMarkers - 读/写;布尔型,默认:False

    • embedFonts - 读/写;布尔型,默认:True

    • filePath - 读/写;字符串型

    • height - 读/写;双精度型,默认:960

    • imageQuality - 读/写;字符串型,默认:BEST

    • includeNonVisibleMapLayers - 读/写;布尔型,默认:False

    • outputAsImage - 读/写;布尔型,默认:False

    • rasterAsSingleTile - 读/写;布尔型,默认:False

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

  • 方法

    • setImageQuality(image_quality)

Symbol

  • 属性

    • angle - 读/写;双精度型

    • color - 读/写;字典

    • name - 只读;字符串型

    • outlineColor - 读/写;字典

    • outlineWidth - 读/写;双精度型

    • size - 读/写;双精度型

    • useRealWorldUnits - 读/写;布尔型

  • 方法

    • applySymbolFromGallery(wildcard, {index})

    • listSymbolsFromGallery({wildcard})

Symbology

Table

  • 属性

    • connectionProperties - 只读;字典

    • dataSource - 只读;字符串型

    • definitionQuery - 读/写;字符串型

    • isBroken - 只读;布尔型

    • isTimeEnabled - 只读;布尔型

    • longName - 只读;字符串型

    • metadata - 读/写;Metadata

    • name - 读/写;字符串型

    • time - 只读;LayerTime

    • URI - 只读;布尔型

  • 方法:

    • disableTime()

    • enableTime({startTimeField}, {endTimeField}, {autoCalculateTimeRange}, {timeDimension})

    • getDefinition(cim_version)

    • getSelectionSet()

    • listCharts({wildcard})

    • listDefinitionQueries({wildcard})

    • openTableView({show_selected})

    • pasteProperties(source_table, {table_paste_properties})

    • saveACopy(file_name)

    • setDefinition(definition_object)

    • setSelectionSet({oidList}, {method})

    • time - 只读;LayerTime 对象

    • updateConnectionProperties(current_connection_info, new_connection_info, {auto_update_joins_and_relates}, {validate}, {ignore_case})

    • updateDefinitionQueries(definitionQueries)

TableFrameElement

  • 属性

    • anchor - 只读;字符串型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • fields - 读/写;字段名称列表

    • isOverflowing - 只读;布尔型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • mapFrame - 读/写;MapFrame 对象

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • query - 只读;字符串型

    • table - 读/写;LayerTable 对象

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • applyStyleItem(style_item)

    • getDefinition(cim_version)

    • setAnchor(anchor)

    • setDefinition(definition_object)

    • setQuery(query_rows)

    • sortFields(field_info)

TextElement

  • 属性

    • anchor - 只读;字符串型

    • elementHeight - 读/写;双精度型

    • elementPositionX - 读/写;双精度型

    • elementPositionY - 读/写;双精度型

    • elementRotation - 读/写;双精度型

    • elementWidth - 读/写;双精度型

    • fontFamilyName - 读/写;字符串型

    • fontStyleName - 读/写;字符串型

    • isOverflowing - 只读;布尔型

    • locked - 读/写;布尔型

    • longName - 读/写;字符串型

    • name - 读/写;字符串型

    • parentGroupElement - 只读;GroupElement

    • text - 读/写;字符串型

    • textAngle - 读/写;双精度型

    • textSize - 读/写;双精度型

    • type - 只读;字符串型

    • visible - 读/写;布尔型

  • 方法

    • applyStyleItem(style_item)

    • clone({suffix})

    • delete()

    • getDefinition(cim_version)

    • setAnchor(anchor)

    • setDefinition(definition_object)

TGAFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • colorMode - 读/写;字符串型,默认:32-BIT_WITH_ALPHA

    • filePath - 读/写;字符串型

    • height - 读/写;双精度型,默认:960

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • transparentBackground - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

  • 方法

    • setColorMode(tga_color_mode)

TIFFFormat

  • 属性

    • clipToElements - 读/写;布尔型,默认:False

    • colorMode - 读/写;字符串型,默认:32-BIT_WITH_ALPHA

    • embedColorProfile - 读/写;布尔型,默认:True

    • filePath - 读/写;字符串型

    • georeferenceMapFrame - 读/写;MapFrame 对象,默认:无

    • geoTIFFTags - 读/写;布尔型,默认:False

    • height - 读/写;双精度型,默认:960

    • imageCompression - 读/写;字符串型,默认:LZW

    • imageCompressionQuality - 读/写,长整型,默认:100

    • resolution - 读/写;布尔型,双精度型:96

    • showSelectionSymbology - 读/写;布尔型,默认:False

    • threshold - 读/写;长整型,默认:128

    • transparentBackground - 读/写;布尔型,默认:False

    • width - 读/写;双精度型,默认:960

    • worldFile - 读/写;布尔型,默认:False

  • 方法

    • setColorMode(color_mode)

    • setImageCompression(tiff_compression)

UnclassedColorsRenderer

  • 属性

    • colorRamp - 读/写;ColorRamp

    • expression - 读/写;字符串型

    • field - 读/写;字符串型

    • lowerLabel - 读/写;字符串型

    • normalizationField - 读/写;字符串型

    • symbolTemplate - 只读;Symbol

    • type - 只读;字符串型

    • upperLabel - 读/写;字符串型

  • 方法

    • updateSymbolTemplate(symbol_template)

UniqueValueRenderer

  • 属性

    • colorRamp - 读/写;ColorRamp

    • defaultSymbol - 读/写;Symbol

    • fields - 读/写;1 个或多个 Field 对象的列表

    • groups - 读/写;ItemGroup 对象列表

    • type - 只读;字符串型

    • useDefaultSymbol - 读/写;布尔型

  • 方法

    • addValues(values_or_items)

    • listMissingValues()

    • removeValues(values_or_items)