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 for 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 constants

  • arcpy.mapping constants

Below is a list of arcpy.mapping parameter constants. Many of these parameters are used with multiple arcpy.mapping functions and/or methods. Most of these parameters are optional—those surrounded by curly brackets ({})—and when appropriate, the default values are indicated next to the value. This document is intended to serve as a quick reference. For more specific information on what the parameter values mean, refer to the function or method documentation by using the links provided next to the parameter name.

arcpy.mapping constants

{add_position}—Used by AddLayer and AddLayerToGroup.

  • "AUTO_ARRANGE"—Default
  • "BOTTOM"
  • "TOP"

—

{colorspace}—Used by DataDrivenPages.exportToPDF, ExportToAI, ExportToEPS, and ExportToPDF.

  • "CMYK"
  • "RGB"—Default

—

{color_mode}—Used by ExportToBMP, ExportToGIF, ExportToJPEG, ExportToPNG, and ExportToTIFF.

  • "1-BIT_MONOCHROME_MASK"
  • "1-BIT_MONOCHROME_THRESHOLD"
  • "24-BIT_TRUE_COLOR"—Default for all functions except ExportToGIF
  • "8-BIT_GRAYSCALE"—Default for ExportToGIF
  • "8-BIT_PALETTE"

—

connection_type—Used by CreateGISServerConnectionFile.

  • "ADMINISTER_GIS_SERVICES"
  • "PUBLISH_GIS_SERVICES"
  • "USE_GIS_SERVICES"

—

{dataset_option}—Used by ExportReport.

  • "ALL"
  • "DEFINITION_QUERY"
  • "EXTENT"
  • "SELECTED"
  • "USE_RLF"—Default

—

displayUnits—A property of the DataFrame object.

  • "Centimeters"
  • "DecimalDegrees"
  • "DecimalDegreesMinutes"
  • "DecimalDegreesSeconds"
  • "Decimeters"
  • "Feet"
  • "Inches"
  • "Kilometers"
  • "Meters"
  • "MGRS"
  • "Miles"
  • "Millimeters"
  • "NauticalMiles"
  • "Points"
  • "Unknown"
  • "USNationalGrid"
  • "UTM"
  • "Yards"

—

{element_type}—Used by ListLayoutElements.

  • "DATAFRAME_ELEMENT"
  • "GRAPHIC_ELEMENT"
  • "LEGEND_ELEMENT"
  • "MAPSURROUND_ELEMENT"
  • "PICTURE_ELEMENT"
  • "TEXT_ELEMENT"

—

{encryption}—Used by PDFDocument.updateDocSecurity.

  • "AES_V1"
  • "AES_V2"
  • "RC4"—Default

—

{gif_compression}—Used by ExportToGIF.

  • "LZW"
  • "NONE"—Default
  • "RLE"

—

{image_compression}—Used by DataDrivenPages.exportToPDF, ExportToEPS, and ExportToPDF.

  • "ADAPTIVE"—Default
  • "DEFLATE"
  • "JPEG"
  • "LZW"
  • "NONE"
  • "RLE"

—

{image_quality}—Used by DataDrivenPages.exportToPDF, ExportToAI, ExportToEMF, ExportToEPS, ExportToPDF, ExportToSVG, and PrintMap.

  • "BEST"—Default
  • "BETTER"
  • "FASTER"
  • "FASTEST"
  • "NORMAL"

—

{insert_position}—Used by InsertLayer and MoveLayer.

  • "AFTER"
  • "BEFORE"—Default

—

{layers_attributes}—Used by DataDrivenPages.exportToPDF and ExportToPDF.

  • "LAYERS_AND_ATTRIBUTES"
  • "LAYERS_ONLY"—Default
  • "NONE"

—

{layer_property}—Used by Layer.supports.

  • "BRIGHTNESS"
  • "CONTRAST"
  • "CREDITS"
  • "DATASETNAME"
  • "DATASOURCE"
  • "DEFINITIONQUERY"
  • "DESCRIPTION"
  • "LABELCLASSES"
  • "LONGNAME"
  • "MAXSCALE"
  • "MINSCALE"
  • "NAME"
  • "SERVICEPROPERTIES"
  • "SHOWLABELS"
  • "SYMBOLOGY"
  • "SYMBOLOGYTYPE"
  • "TIME"
  • "TRANSPARENCY"
  • "VISIBLE"
  • "WORKSPACEPATH"

—

{msd_anti_aliasing}—Used by ConvertToMSD.

  • "BEST"
  • "FAST"
  • "FASTEST"
  • "NONE"—Default
  • "NORMAL"

—

{msd_text_anti_aliasing}—Used by ConvertToMSD.

  • "FORCE"—Default
  • "NONE"
  • "NORMAL"

—

{multiple_files}—Used by PDFDocument.exportToPDF.

  • "PDF_MULTIPLE_FILES_PAGE_INDEX"
  • "PDF_MULTIPLE_FILES_PAGE_NAME"
  • "PDF_SINGLE_PAGE"—Default

—

{page_range_type}—Used by DataDrivenPages.exportToPDF and DataDrivenPages.printPages.

  • "ALL"—Default
  • "CURRENT"
  • "RANGE"
  • "SELECTED"

—

{pdf_layout}—Used by PDFDocument.updateDocProperties.

  • "DONT_CARE"
  • "ONE_COLUMN"
  • "SINGLE_PAGE"—Default
  • "TWO_COLUMN_LEFT"
  • "TWO_COLUMN_RIGHT"
  • "TWO_PAGE_LEFT"
  • "TWO_PAGE_RIGHT"

—

{pdf_open_view}—Used by PDFDocument.updateDocProperties.

  • "ATTACHMENT"
  • "FULL_SCREEN"
  • "LAYERS"
  • "USE_BOOKMARKS"
  • "USE_NONE"
  • "USE_THUMBS"—Default
  • "VIEWER_DEFAULT"

—

{permissions}—Used by PDFDocument.updateDocSecurity.

  • "ALL"—Default
  • "ALL_MASTER"
  • "COPY"
  • "DOC_ASSEMBLY"
  • "EDIT"
  • "EDIT_NOTES"
  • "FILL_AND_SIGN"
  • "HIGH_PRINT"
  • "OPEN"
  • "PRINT"
  • "SECURE"

—

{picture_symbol}—Used by DataDrivenPages.exportToPDF, ExportToAI, ExportToEMF, ExportToEPS, ExportToPDF, and ExportToSVG.

  • "RASTERIZE_BITMAP"—Default
  • "RASTERIZE_PICTURE"
  • "VECTORIZE_BITMAP"

—

{ps_lang_level}—Used by ExportToEPS.

  • 2
  • 3—Default

—

{record_set}—Used by ExportReport.

  • "ALL"
  • "SELECTED"
  • "USE_RLF"—Default

—

{rle_compression}—Used by ExportToBMP.

  • "NONE"—Default
  • "RLE"

—

{save_username_password}—Used by CreateGISServerConnectionFile.

  • "DO_NOT_SAVE_USERNAME"—Default
  • "SAVE_USERNAME"—Default

—

{service_capabilities}—Used by PublishMSDToServer.

  • "MAPPING"—Default
  • "KML"
  • "WCS"
  • "WFS"
  • "WMS"

—

{server_type}—Used by CreateGISServerConnectionFile.

  • "ARCGIS_SERVER"—Default
  • "SPATIAL_DATA_SERVER"

—

{server_type}—Used by CreateMapSDDraft.

  • "ARCGIS_SERVER"—Default
  • "FROM_CONNECTION_FILE"
  • "MY_HOSTED_SERVICES"
  • "SPATIAL_DATA_SERVER"

—

symbologyType—A property of the Layer object.

  • "GRADUATED_COLORS"
  • "GRADUATED_SYMBOLS"
  • "OTHER"
  • "RASTER_CLASSIFIED"
  • "UNIQUE_VALUES"

—

{tiff_compression}—Used by ExportToTIFF.

  • "DEFLATE"
  • "JPEG"
  • "LZW"
  • "NONE"—Default
  • "PACK_BITS"

—

timeWindowUnits—A property of DataFrameTime.

  • "centuries"
  • "decades"
  • "days"
  • "hours"
  • "millseconds"
  • "minutes"
  • "months"
  • "seconds"
  • "unknown"
  • "weeks"
  • "years"

—

{version}—Used by Layer.saveACopy and MapDocument.saveACopy.

  • "10.1"—Default
  • "10.0"
  • "8.3"
  • "9.0/9.1"
  • "9.2"
  • "9.3"

—

{workspace_type}—Used by Layer.replaceDataSource, MapDocument.replaceWorkspacePaths, and TableView.replaceDataSource.

  • "ACCESS_WORKSPACE"
  • "ARCINFO_WORKSPACE"
  • "CAD_WORKSPACE"
  • "EXCEL_WORKSPACE"
  • "FILEGDB_WORKSPACE"
  • "NONE"
  • "OLEDB_WORKSPACE"
  • "PCCOVERAGE_WORKSPACE"
  • "RASTER_WORKSPACE"
  • "SDE_WORKSPACE"
  • "SHAPEFILE_WORKSPACE"
  • "TEXT_WORKSPACE"
  • "TIN_WORKSPACE"
  • "VPF_WORKSPACE"

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • 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 © 2019 Esri. | Confidentialité | Légal