按字母顺序排序的 arcpy.mp 类列表
arcpy.mp 类可访问 ArcGIS Pro 工程或图层文件中不同对象类型的各种方法和属性。 此文档可专门用作快速参考。 有关详细信息,请使用链接跳转至各帮助页面。
arcpy.mp 类
属性
clipToElements- 读/写;布尔型,默认:FalseconvertMarkers- 读/写;布尔型,默认:FalseembedColorProfile- 读/写;布尔型,默认:TrueembedFonts- 读/写;布尔型,默认:TruefilePath- 读/写;字符串型height- 读/写;双精度型,默认:960imageCompression- 读/写;字符串型,默认:ADAPTIVEimageCompressionQuality- 读/写;长整型,默认:80imageQuality- 读/写;字符串型,默认:BESTremoveLayoutBackground- 读/写;布尔型,默认:Trueresolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960
方法
setImageCompression(image_compression)setImageQuality(image_quality)
属性
activeMap- 只读;Map对象databases- 只读;Python 字典的ListdateSaved- 只读;DatetimedefaultGeodatabase- 读/写;StringdefaultToolbox- 读/写;StringdocumentVersion- 只读;StringfilePath- 只读;StringfolderConnections- 只读;Python 字典的ListhomeFolder- 读/写;StringisReadOnly- 只读;Booleanmetadata- 读/写;Metadatastyles- 只读;Python 字符串的Listtoolboxes- 只读;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})
属性
clipToElements- 读/写;布尔型,默认:FalsecolorMode- 读/写;字符串型,默认:24-BIT_TRUE_COLORfilePath- 读/写;字符串型georeferenceMapFrame- 读/写;MapFrame 对象,默认:无height- 读/写;双精度型,默认:960resolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsethreshold- 读/写;长整型,默认:128width- 读/写;双精度型,默认:960worldFile- 读/写;布尔型,默认:False
方法
setColorMode(bmp_color_mode)
属性
description- 读/写;字符串型hasThumbnail- 只读;布尔型map- 只读;Map对象name- 读/写;字符串型
方法
updateThumbnail()
属性
方法
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)
属性
heading- 读/写;双精度型mode- 读/写;字符串型pitch- 读/写;双精度型roll- 读/写;双精度型scale- 读/写;双精度型X- 读/写;双精度型Y- 读/写;双精度型Z- 读/写;双精度型
方法
getExtent()setExtent(extent)
属性
description- 读/写;字符串型label- 读/写;字符串型symbol- 读/写;SymbolupperBound- 读/写;双精度型
属性
name- 只读;字符串型
属性
antialiasing- 读/写;字符串型
方法
setAntialiasing({antialiasing})
属性
dataSource- 只读;字符串型name- 读/写;字符串型visible- 读/写;布尔型
属性
name- 读/写;字符串型URI- 只读;字符串型verticalExaggeration- 读/写;双精度型
方法
listElevationSources({wildcard})
属性
clipToElements- 读/写;布尔型,默认:FalseconvertMarkers- 读/写;布尔型,默认:FalsefilePath- 读/写;字符串型height- 读/写;双精度型,默认:960imageQuality- 读/写;字符串型,默认:BESToutputAsImage- 读/写;布尔型,默认:Falseresolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960
方法
setImageQuality(image_quality)
属性
clipToElements- 读/写;布尔型,默认:FalseconvertMarkers- 读/写;布尔型,默认:FalseembedFonts- 读/写;布尔型,默认:TruefilePath- 读/写;字符串型height- 读/写;双精度型,默认:960imageCompression- 读/写;字符串型,默认:DEFLATEimageQuality- 读/写;字符串型,默认:BESToutputAsImage- 读/写;布尔型,默认:Falseresolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960
方法
setImageCompression(eps_compression)setImageQuality(image_quality)
属性
clipToElements- 读/写;布尔型,默认:FalsecolorMode- 读/写;字符串型,默认:8-BIT_ADAPTIVE_PALETTEfilePath- 读/写;字符串型georeferenceMapFrame- 读/写;MapFrame 对象,默认:无height- 读/写;双精度型,默认:960resolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsethreshold- 读/写;长整型,默认:128width- 读/写;双精度型,默认:960worldFile- 读/写;布尔型,默认:False
方法
setColorMode(gif_color_mode)
属性
breakCount- 读/写;整型classBreaks- 读/写;ClassBreak对象列表classificationField- 读/写;字符串型classificationMethod- 读/写;字符串型colorRamp- 读/写;ColorRampdeviationInterval- 读/写;双精度型intervalSize- 读/写;双精度型lowerBound- 读/写;双精度型normalizationField- 读/写;字符串型normalizationType- 读/写;字符串型type- 只读;字符串型
属性
backgroundSymbol- 读/写;SymbolbreakCount- 读/写;整型classBreaks- 读/写;ClassBreak对象列表classificationField- 读/写;字符串型classificationMethod- 读/写;字符串型colorRamp- 读/写;ColorRampdeviationInterval- 读/写;双精度型intervalSize- 读/写;双精度型lowerBound- 读/写;双精度型maximumSymbolSize- 读/写;双精度型minimumSymbolSize- 读/写;双精度型normalizationField- 读/写;字符串型normalizationType- 读/写;字符串型symbolTemplate- 只读;Symboltype- 只读;字符串型
方法
updateSymbolTemplate(symbol_template)
属性
anchor- 只读;字符串型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elementWidth- 读/写;双精度型isGroup- 只读;布尔型locked- 读/写;布尔型longName- 读/写;字符串型name- 读/写;字符串型parentGroupElement- 只读;GroupElementtype- 只读;字符串型visible- 读/写;布尔型
方法
applyStyleItem(style_item)clone({suffix})delete()getDefinition(cim_version)setAnchor(anchor)setDefinition(definition_object)
属性
anchor- 只读;字符串型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elements- 只读;元素列表elementWidth- 读/写;双精度型isGroup- 只读;布尔型locked- 读/写;布尔型longName- 读/写;字符串型name- 读/写;字符串型parentGroupElement- 只读;GroupElementtype- 只读;字符串型visible- 读/写;布尔型
方法
getDefinition(cim_version)setAnchor(anchor)setDefinition(definition_object)ungroupElements()
属性
description- 读/写;字符串型label- 读/写;字符串型symbol- 读/写;Symbolvalues- 只读;值列表
属性
heading- 读/写;字符串型items- 读/写;Item或RasterItem对象列表
属性
clipToElements- 读/写;布尔型,默认:FalsecolorMode- 读/写;字符串型,默认:24-BIT_TRUE_COLORfilePath- 读/写;字符串型georeferenceMapFrame- 读/写;MapFrame 对象,默认:无height- 读/写;双精度型,默认:960imageCompressionQuality- 读/写、双精度型:80resolution- 读/写;双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960worldFile- 读/写;布尔型,默认:False
方法
setColorMode(jpeg_color_mode)
属性
expression- 读/写;字符串型name- 读/写;字符串型SQLQuery- 读/写;字符串型visible- 读/写;布尔型
方法
getDefinition(cim_version)setDefinition(definition_object)
属性
brightness- 读/写;长整型connectionProperties- 只读;字典contrast- 读/写;长整型dataSource- 只读;字符串型definitionQuery- 读/写;字符串型elevation- 只读;LayerElevationobjectgroupType- 只读;字符串型is3DLayer- 只读;布尔型isBasemapLayer- 只读;布尔型isBroken- 只读;布尔型isFeatureLayer- 只读;布尔型isGraphicsLayer- 只读;布尔型isGroupLayer- 只读;布尔型isNetworkAnalystLayer- 只读;布尔型isNetworkDatasetLayer- 只读;布尔型isParcelFabricLayer- 只读;布尔型isRasterLayer- 只读;布尔型isSceneLayer- 只读;布尔型isTimeEnabled- 只读;布尔型isTopologyLayer- 只读;布尔型isWebLayer- 只读;布尔型longName- 只读;字符串型maxThreshold- 读/写;双精度型metadata- 读/写;MetadataminThreshold- 读/写;双精度型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)
属性
cartographicOffset- 读/写;双精度型elevationMode- 只读;字符串型verticalExaggeration- 读/写;双精度型verticalUnits- 读/写;字符串型
方法
setElevationMode()setVerticalUnits(file_name)
属性
filePath- 只读;字符串型metadata- 读/写;Metadataversion- 只读;字符串型
方法
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})
属性
daylightSavings- 读/写;布尔型endTime- 读/写;日期时间endTimeField- 读/写;字符串型startTime- 读/写;日期时间startTimeField- 读/写;字符串型timeDimension- 读/写;字符串型timeFormat- 读/写;字符串型timeOffset- 读/写;双精度型timeOffsetUnits- 读/写;字符串型timeStepInterval- 读/写;双精度型timeStepIntervalUnits- 读/写;字符串型timeZone- 读/写;字符串型timeZoneIANA- 读/写;字符串型
属性
colorModel- 只读;字符串型mapSeries- 只读;MapSeries或BookmarkMapSeriesmetadata- 读/写;Metadataname- 读/写;字符串型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)
属性
anchor- 只读;字符串型columnCount- 读/写;长整型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elementWidth- 读/写;双精度型fittingStrategy- 读/写;字符串型isOverflowing- 只读;布尔型items- 只读;LegendItem对象列表locked- 读/写;布尔型longName- 读/写;字符串型mapFrame- 读/写;MapFrame对象name- 读/写;字符串型parentGroupElement- 只读;GroupElementshowTitle- 读/写;布尔型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)
属性
arrangement- 读/写;字符串型column- 读/写;长整型name- 只读;字符串型patchHeight- 读/写;双精度型patchWidth- 读/写;双精度型showFeatureCount- 读/写;布尔型showVisibleFeatures- 读/写;布尔型type- 只读;字符串型visible- 读/写;布尔型
方法
applyStyleItem(style_item)
属性
colorModel- 只读;字符串型defaultCamera- 读/写;Camera对象defaultView- 只读;MapView对象excludedLayersFromClipping- 读/写;列表mapType- 只读;字符串型mapUnits- 读/写;字符串型metadata- 读/写;Metadataname- 读/写;字符串型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)
属性
altText- 读/写;字符串型anchor- 只读;字符串型camera- 读/写;camera对象elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elementWidth- 读/写;双精度型locked- 读/写;布尔型longName- 读/写;字符串型map- 读/写;Map对象name- 读/写;字符串型parentGroupElement- 只读;GroupElementtime- 只读;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)
属性
方法
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)
属性
customPages- 读/写;字符串型exportFileOptions- 读/写;字符串型exportPages- 读/写;字符串型showExportCount- 读/写;布尔型
方法
setExportFileOptions(export_file_options)setExportPages(export_pages)
属性
anchor- 只读;字符串型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elementWidth- 读/写;双精度型locked- 读/写;布尔型longName- 读/写;字符串型mapFrame- 读/写;MapFrame对象name- 读/写;字符串型parentGroupElement- 只读;GroupElementtype- 只读;字符串型visible- 读/写;布尔型
方法
applyStyleItem(style_item)getDefinition(cim_version)setAnchor(anchor)setDefinition(definition_object)
属性
currentTimeEnd- 读/写;日期时间currentTimeSpan- 只读;双精度型currentTimeSpanUnits- 只读;字符串型currentTimeStart- 读/写;日期时间isTimeEnabled- 读/写;布尔型timeInclusion- 只读;字符串型timeStepInterval- 只读;双精度型timeStepIntervalUnits- 只读;字符串型
方法
setTimeInclusion(time_inclusion)timeStep(reference_time, interval, interval_units)
属性
方法
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)
属性
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})
属性
author- 读/写;字符串型clipToElements- 读/写;布尔型,默认:FalsecompressVectorGraphics- 读/写;布尔型,默认:TrueconvertMarkers- 读/写;布尔型,默认:FalseembedColorProfile- 读/写;布尔型,默认:TrueembedFonts- 读/写;布尔型,默认:TruefilePath- 读/写;字符串型georefInfo- 读/写;布尔型,默认:Trueheight- 读/写;双精度型,默认:960imageCompression- 读/写;字符串型,默认:ADAPTIVEimageCompressionQuality- 读/写;长整型,默认:80imageQuality- 读/写;字符串型,默认:BESTincludeAccessibilityTags- 读/写;布尔型,默认:FalseincludeNonVisibleMapLayers- 读/写;布尔型,默认:Falsekeywords- 读/写;字符串型languageCode- 读/写;字符串型layersAndAttributes- 读/写;字符串型,默认:LAYERS_ONLYoutputAsImage- 读/写;布尔型,默认:FalserasterAsSingleTile- 读/写;布尔型,默认:FalseremoveLayoutBackground- 读/写;布尔型,默认:Falseresolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:FalsesimulateOverprint- 读/写;布尔型,默认:Falsesubject- 读/写;字符串型title- 读/写;字符串型width- 读/写;双精度型,默认:960
方法
setImageCompression(image_compression)setImageQuality(image_quality)setLayersAndAttributes(layers_attributes)
属性
altText- 读/写;字符串型anchor- 只读;字符串型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elementWidth- 读/写;双精度型locked- 读/写;布尔型longName- 读/写;字符串型name- 读/写;字符串型parentGroupElement- 只读;GroupElementsourceImage- 读/写;字符串型type- 只读;字符串型visible- 读/写;布尔型
方法
getDefinition(cim_version)setAnchor(anchor)setDefinition(definition_object)
属性
clipToElements- 读/写;布尔型,默认:FalsecolorMode- 读/写;字符串型,默认:32-BIT_WITH_ALPHAfilePath- 读/写;字符串型georeferenceMapFrame- 读/写;MapFrame 对象,默认:无height- 读/写;双精度型,默认:960resolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsethreshold- 读/写;长整型,默认:128transparentBackground- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960worldFile- 读/写;布尔型,默认:False
方法
setColorMode(png_color_mode)
属性
color- 读/写;字典description- 读/写;字符串型label- 读/写;字符串型upperBound- 读/写;双精度型
属性
breakCount- 读/写;长整型classBreaks- 读/写;RasterClassBreak 对象列表classificationField- 读/写;字符串型classificationMethod- 读/写;字符串型colorRamp- 读/写;ColorRamplowerBound- 读/写;双精度型noDataColor- 读/写;字典type- 只读;字符串型
属性
color- 读/写;字典description- 读/写;字符串型label- 读/写;字符串型values- 只读;列表
属性
band- 读/写;长整型colorRamp- 读/写;ColorRampgamma- 读/写;双精度型invertColorRamp- 读/写;布尔型maxLabel- 读/写;字符串型maxPercent- 读/写;双精度型minLabel- 读/写;字符串型minPercent- 读/写;双精度型standardDeviation- 读/写;双精度型stretchType- 读/写;字符串型type- 只读;字符串型
属性
属性
definitionQuery- 读/写;字符串型metadata- 读/写;Metadataname- 读/写;字符串型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)
属性
customPages- 读/写;字符串型exportPages- 读/写;字符串型startingPageNumberLabelOffset- 读/写;整型totalPageNumberOverride- 读/写;整型
方法
setExportPages(report_export_pages)
属性
name- 读/写;字符串型type- 只读;字符串型visible- 读/写;布尔型URI- 读/写;字符串型
属性
definitionQuery- 读/写;字符串型fields- 读/写;列表name- 只读;字符串型referenceDataSource- 只读;字典statistics- 读/写;列表type- 只读;字符串型visible- 读/写;布尔型
方法
setReferenceDataSource(data_source)setRelatedReportSource (related_report_data_source, related_report_section_name, relate_or_relationship_class_name)
属性
description- 读/写;字符串型label- 读/写;字符串型symbol- 读/写;Symboltype- 只读;字符串型
属性
category- 只读;字符串型key- 只读;字符串型name- 只读;字符串型style- 只读;字符串型styleClass- 只读;字符串型tags- 只读;字符串型
属性
clipToElements- 读/写;布尔型,默认:FalsecompressToSVGZ- 读/写;布尔型,默认:FalseconvertMarkers- 读/写;布尔型,默认:FalseembedFonts- 读/写;布尔型,默认:TruefilePath- 读/写;字符串型height- 读/写;双精度型,默认:960imageQuality- 读/写;字符串型,默认:BESTincludeNonVisibleMapLayers- 读/写;布尔型,默认:FalseoutputAsImage- 读/写;布尔型,默认:FalserasterAsSingleTile- 读/写;布尔型,默认:Falseresolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960
方法
setImageQuality(image_quality)
属性
angle- 读/写;双精度型color- 读/写;字典name- 只读;字符串型outlineColor- 读/写;字典outlineWidth- 读/写;双精度型size- 读/写;双精度型useRealWorldUnits- 读/写;布尔型
方法
applySymbolFromGallery(wildcard, {index})listSymbolsFromGallery({wildcard})
属性
colorizer- 只读;RasterClassifyColorizer、RasterUniqueValueColorizerrenderer- 只读;GraduatedColorsRenderer、GraduatedSymbolsRenderer、SimpleRenderer或UniqueValueRenderer
方法
updateColorizer(colorizer_name)updateRenderer(renderer_name)
属性
connectionProperties- 只读;字典dataSource- 只读;字符串型definitionQuery- 读/写;字符串型isBroken- 只读;布尔型isTimeEnabled- 只读;布尔型longName- 只读;字符串型metadata- 读/写;Metadataname- 读/写;字符串型time- 只读;LayerTimeURI- 只读;布尔型
方法:
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)
属性
anchor- 只读;字符串型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementWidth- 读/写;双精度型fields- 读/写;字段名称列表isOverflowing- 只读;布尔型locked- 读/写;布尔型longName- 读/写;字符串型mapFrame- 读/写;MapFrame对象name- 读/写;字符串型parentGroupElement- 只读;GroupElementquery- 只读;字符串型type- 只读;字符串型visible- 读/写;布尔型
方法
applyStyleItem(style_item)getDefinition(cim_version)setAnchor(anchor)setDefinition(definition_object)setQuery(query_rows)sortFields(field_info)
属性
anchor- 只读;字符串型elementHeight- 读/写;双精度型elementPositionX- 读/写;双精度型elementPositionY- 读/写;双精度型elementRotation- 读/写;双精度型elementWidth- 读/写;双精度型fontFamilyName- 读/写;字符串型fontStyleName- 读/写;字符串型isOverflowing- 只读;布尔型locked- 读/写;布尔型longName- 读/写;字符串型name- 读/写;字符串型parentGroupElement- 只读;GroupElementtext- 读/写;字符串型textAngle- 读/写;双精度型textSize- 读/写;双精度型type- 只读;字符串型visible- 读/写;布尔型
方法
applyStyleItem(style_item)clone({suffix})delete()getDefinition(cim_version)setAnchor(anchor)setDefinition(definition_object)
属性
clipToElements- 读/写;布尔型,默认:FalsecolorMode- 读/写;字符串型,默认:32-BIT_WITH_ALPHAfilePath- 读/写;字符串型height- 读/写;双精度型,默认:960resolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:FalsetransparentBackground- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960
方法
setColorMode(tga_color_mode)
属性
clipToElements- 读/写;布尔型,默认:FalsecolorMode- 读/写;字符串型,默认:32-BIT_WITH_ALPHAembedColorProfile- 读/写;布尔型,默认:TruefilePath- 读/写;字符串型georeferenceMapFrame- 读/写;MapFrame 对象,默认:无geoTIFFTags- 读/写;布尔型,默认:Falseheight- 读/写;双精度型,默认:960imageCompression- 读/写;字符串型,默认:LZWimageCompressionQuality- 读/写,长整型,默认:100resolution- 读/写;布尔型,双精度型:96showSelectionSymbology- 读/写;布尔型,默认:Falsethreshold- 读/写;长整型,默认:128transparentBackground- 读/写;布尔型,默认:Falsewidth- 读/写;双精度型,默认:960worldFile- 读/写;布尔型,默认:False
方法
setColorMode(color_mode)setImageCompression(tiff_compression)
属性
方法
updateSymbolTemplate(symbol_template)