ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Alphabetical list of arcpy.mapping classes

  • arcpy.mapping classes

The arcpy.mapping classes provide access to various methods and properties for the different object types found within a map document (.mxd) or layer file (.lyr). This document is intended to serve as a quick reference. For more specific information, use the links to jump to the individual help pages.

arcpy.mapping classes

DataDrivenPages

  • Methods
    • 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()
  • Properties
    • currentPageID—Read/Write; Long
    • dataFrame—Read-only; DataFrame object
    • indexLayer—Read-only; Layer object
    • pageCount—Read-only; Long
    • pageNameField—Read-only; GP Field object
    • pageRow—Read-only; GP Row object
    • selectedPages—Read-only; Python list of index numbers

DataFrame

  • Methods
    • panToExtent(extent)
    • zoomToSelectedFeatures()
  • Properties
    • credits—Read/Write; String
    • description—Read/Write; String
    • displayUnits—Read/Write; String
    • elementHeight—Read/Write; Double
    • elementPositionX—Read/Write; Double
    • elementPositionY—Read/Write; Double
    • elementWidth—Read/Write; String
    • extent—Read/Write; GP Extent object
    • geographicTransformations—Read/Write; Python list of strings
    • mapUnits—Read-only; String
    • name—Read/Write; String
    • referenceScale—Read/Write; Double
    • rotation—Read/Write; Double
    • scale—Read/Write; Double
    • spatialReference—Read/Write; GP Spatial Reference object
    • time—Read-only; DataFrameTime object
    • type—Read-only; String

DataFrameTime

  • Methods
    • resetTimeExtent()
  • Properties
    • currentTime—Read/Write; Python datetime object
    • endTime—Read/Write; Python datetime object
    • startTime—Read/Write; Python datetime object
    • timeStepInterval—Read-only; Python timedelta object
    • timeWindow—Read/Write; Double
    • timeWindowUnits—Read/Write; String

GraduatedColorsSymbology

  • Methods
    • reclassify()
  • Properties
    • classBreakDescriptions—Read/Write; Python list of strings
    • classBreakLabels—Read/Write; Python list of strings
    • classBreakValues—Read/Write; Python list of strings
    • normalization—Read/Write; String
    • numClasses—Read/Write; Long
    • valueField—Read/Write; String

GraduatedSymbolsSymbology

  • Methods
    • reclassify()
  • Properties
    • classBreakDescriptions—Read/Write; Python list of strings
    • classBreakLabels—Read/Write; Python list of strings
    • classBreakValues—Read/Write; Python list of strings
    • normalization—Read/Write; String
    • numClasses—Read/Write; Long
    • valueField—Read/Write; String

GraphicElement

  • Methods
    • clone({suffix})
    • delete()
  • Properties
    • elementHeight—Read/Write; Double
    • elementPositionX—Read/Write; Double
    • elementPositionY—Read/Write; Double
    • elementWidth—Read/Write; String
    • isGroup— Read-only; Boolean
    • name—Read/Write; String
    • type—Read-only; String

LabelClass

  • Properties
    • className—Read/Write; String
    • expression—Read/Write; String
    • showClassLabels—Read/Write; Boolean
    • SQLQuery—Read/Write; String

Layer

  • Methods
    • 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)
  • Properties
    • brightness—Read/Write; Long
    • contrast—Read/Write; Long
    • credits—Read/Write; String
    • datasetName—Read-only; String
    • dataSource—Read-only; String
    • definitionQuery—Read/Write; String
    • description—Read/Write; String
    • isBasemapLayer—Read-only; Boolean
    • isBroken—Read-only; Boolean
    • isFeatureLayer—Read-only; Boolean
    • isGroupLayer—Read-only; Boolean
    • isNetworkAnalystLayer—Read-only; Boolean
    • isRasterizingLayer—Read-only; Boolean
    • isRasterLayer—Read-only; Boolean
    • isServiceLayer—Read-only; Boolean
    • labelClasses—Read/Write; List of LabelClass objects
    • longName—Read-only; String
    • maxScale—Read/Write; Double
    • minScale—Read/Write; Double
    • name—Read/Write; String
    • serviceProperties—Read-only; Dictionary of property sets
    • showLabels—Read/Write; Boolean
    • symbology—Read-only; Layer symbology object
    • symbologyType—Read-only; String
    • time—Read-only; Layer time object
    • transparency—Read/Write; Long
    • visible—Read/Write; Boolean
    • workspacePath—Read-only; String

LayerTime

  • Properties
    • daylightSavings—Read-only; Boolean
    • displayDataCumulatively—Read-only; Boolean
    • endTime—Read-only; Python datetime object
    • endTimeField—Read-only; String
    • isTimeEnabled—Read-only; Boolean
    • startTime—Read-only; Python datetime object
    • startTimeField—Read-only; String
    • timeFormat—Read-only; String
    • timeOffset—Read-only; Python timedelta object
    • timeStepInterval—Read-only; Python timedelta object
    • timeZone—Read-only; String

LegendElement

  • Methods
    • 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})
  • Properties
    • autoAdd—Read/Write; Boolean
    • elementHeight—Read/Write; Double
    • elementPositionX—Read/Write; Double
    • elementPositionY—Read/Write; Double
    • elementWidth—Read/Write; String
    • isOverflowing—Read-only; Boolean
    • items—Read-only; Python list of strings
    • name—Read/Write; String
    • parentDataFrameName—Read-only; String
    • title—Read/Write; String
    • type—Read-only; String

MapDocument

  • Methods
    • 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})
  • Properties
    • activeDataFrame—Read-only; DataFrame object
    • activeView—Read/Write; String
    • author—Read/Write; String
    • credits—Read-only; String
    • dataDrivenPages—Read-only; DataDrivenPages object
    • dateExported—Read-only; Python datetime object
    • datePrinted—Read-only; Python datetime object
    • dateSaved—Read-only; Python datetime object
    • description—Read/Write; String
    • filePath—Read-only; String
    • hyperlinkBase—Read/Write; String
    • isDDPEnabled—Read-only; Boolean
    • pageSize—Read-only; Python named tuple
    • relativePaths—Read/Write; Boolean
    • summary—Read/Write; String
    • tags—Read/Write; String
    • title—Read/Write; String

MapsurroundElement

  • Properties
    • elementHeight—Read/Write; Double
    • elementPositionX—Read/Write; Double
    • elementPositionY—Read/Write; Double
    • elementWidth—Read/Write; String
    • name—Read/Write; String
    • parentDataFrameName—Read-only; String
    • type—Read-only; String

PDFDocument

  • Methods
    • 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})
  • Properties:
    • pageCount—Read-only; Long

PictureElement

  • Properties
    • elementHeight—Read/Write; Double
    • elementPositionX—Read/Write; Double
    • elementPositionY—Read/Write; Double
    • elementWidth—Read/Write; String
    • name—Read/Write; String
    • sourceImage—Read/Write; String
    • type—Read-only; String

RasterClassifiedSymbology

  • Methods
    • reclassify()
  • Properties
    • classBreakDescriptions—Read/Write; Python list of strings
    • classBreakLabels—Read/Write; Python list of strings
    • classBreakValues—Read/Write; Python list of strings
    • excludedValues—Read/Write; String
    • normalization—Read/Write; String
    • numClasses—Read/Write; Long
    • valueField—Read/Write; String

StyleItem

  • Properties
    • itemName—Read-only; String
    • itemCategory—Read-only; String
    • styleFolderName—Read-only; String

TableView

  • Methods
    • findAndReplaceWorkspacePath(find_workspace_path, replace_workspace_path, {validate})
    • getSelectionSet()
    • replaceDataSource(workspace_path, workspace_type, dataset_name, {validate})
    • setSelectionSet(method, oidList)
  • Properties
    • datasetName—Read-only; String
    • dataSource—Read-only; String
    • definitionQuery—Read/Write; String
    • isBroken—Read-only; Boolean
    • name—Read/Write; String
    • workspacePath—Read-only; String

TextElement

  • Methods
    • clone({suffix})
    • delete()
  • Properties
    • elementHeight—Read/Write; Double
    • elementPositionX—Read/Write; Double
    • elementPositionY—Read/Write; Double
    • elementWidth—Read/Write; String
    • fontSize—Read/Write; Double
    • name—Read/Write; String
    • text—Read/Write; String
    • type—Read-only; String

UniqueValuesSymbology

  • Methods
    • addAllValues()
  • Properties
    • classDescriptions—Read/Write; Python list of strings
    • classLabels—Read/Write; Python list of strings
    • classValues—Read/Write; Python list of strings
    • showOtherValues—Read/Write; Boolean
    • valueField—Read/Write; String

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

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

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal