Alphabetical list of arcpy.mp constants

Below is a list of arcpy.mp parameter constants. Many of these parameters are used with multiple arcpy.mp 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.mp constants

{add_position}—Used by addLayer and addLayerToGroupand addItem methods on the LayerFile, LegendElement and Map classes.

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

{arrangement}—Defined on the LegendItem class.

  • "PatchLabelDescription"
  • "PatchDescriptionLabel"
  • "LabelPatchDescription"
  • "LabelDescriptionPatch"
  • "DescriptionPatchLabel"
  • "DescriptionLabelPatch"

{bmp_color_mode}—Used by the exportToBMP method on the Layout, MapFrame, and MapView classes.

  • "8-BIT_ADAPTIVE_PALETTE"
  • "8-BIT GRAYSCALE"
  • "24-BIT_TRUE_COLOR"- Default

{bmp_image_compression}—Used by the exportToBMP method on the Layout, MapFrame, and MapView classes.

  • "NONE"- Default
  • "RLE"

cim_version—Used by the getDefinition method on the Layer, Layout, Map, Report and Table classes.

  • "V2"
  • "V3"

{color_mode}—Used by exportToPNG and exportToTIFF methods on the Layout, MapFrame and MapView classes.

  • "8-BIT_ADAPTIVE_PALETTE"
  • "8-BIT_GRAYSCALE"
  • "24-BIT_TRUE_COLOR"—Default
  • "32-BIT_WITH_ALPHA"
  • "32-BIT_CMYK_TRUE_COLOR"
  • "40-BIT_CMYK_WITH_ALPHA"

{colorizer_name}—Used by the updateColorizer method on the Symbology class.

  • "RasterClassifyColorizer"
  • "RasterStretchColorizer"
  • "RasterUniqueValueColorizer"

{element_type}—Used by the listElements method on the Layout class.

  • ""—Default
  • "GRAPHIC_ELEMENT"
  • "LEGEND_ELEMENT"
  • "MAPFRAME_ELEMENT"
  • "MAPSURROUND_ELEMENT"
  • "PICTURE_ELEMENT"
  • "TEXT_ELEMENT"

{encryption}—Used by the updateDocSecurity method on the PDFDocument class.

  • "RC4"—Default

{extrusion_type}—Used by the extrusion method on the Layer class.

  • "ABSOLUTE_HEIGHT"
  • "BASE_HEIGHT"
  • "MAX_HEIGHT"
  • "MIN_HEIGHT"
  • "NONE"—Default

{fittingStrategy}—Defined on the LegendElement class.

  • "AdjustFontSize"
  • "AdjustColumns"
  • "AdjustColumnsAndFont"
  • "AdjustFrame"
  • "ManualColumns"—Default

{gif_color_mode}—Used by the exportToGIF method on the Layout, MapFrame, and MapView classes.

  • "8-BIT GRAYSCALE"
  • "8-BIT_ADAPTIVE_PALETTE" - Default

{image_compression}—Used by the exportToPDF method on the Layout, MapFrame, MapSeries and MapView classes.

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

{image_quality}—Used by the exportToPDF method on the Layout, MapFrame, MapSeries and MapView classes.

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

{insert_position}—Used by theinsertLayer and moveLayer methods on the LayerFile and Map classes.

  • "AFTER"
  • "BEFORE"—Default

{interval_units}—Used by the timeStep method on the MapTime class.

  • "CENTURIES"
  • "DAYS"
  • "DECADES"
  • "HOURS"
  • "MILLISECONDS"
  • "MINUTES"
  • "MONTHS"
  • "SECONDS"
  • "WEEKS"
  • "YEARS"

{jpeg_color_mode}—Used by exportToJPEGmethod on the Layout, MapFrame and MapView classes.

  • "8-BIT_GRAYSCALE"
  • "24-BIT_TRUE_COLOR"—Default

{layer_property}—Used by the supports method on the Layer class.

  • "BRIGHTNESS"
  • "CONTRAST"
  • "DATASOURCE"
  • "DEFINITIONQUERY"
  • "LONGNAME"
  • "MAXTHRESHOLD"
  • "MINTHRESHOLD"
  • "NAME"
  • "TIME"
  • "TRANSPARENCY"
  • "VISIBLE"

{layers_attributes}—Used by the ExportToPDF method on the Layout, MapFrame, MapSeries and MapView classes.

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

{map_type}—Used by the createMap method on the ArcGISProject class.

  • "GLOBE"
  • "MAP"—Default
  • "SCENE"

{method}—Used by the setSelectionSet method on the Layer and Table classes.

  • "DIFFERENCE"
  • "INTERSECT"
  • "NEW"—Default
  • "SYMDIFFERENCE"
  • "UNION"

{multiple_files}—Used by the ExportToPDF method on the MapSeries class.

  • "PDF_MULTIPLE_FILES_PAGE_NAME"
  • "PDF_MULTIPLE_FILES_PAGE_NUMBER"
  • "PDF_SINGLE_FILE"—Default

{page_range_type}—Used by the ExportToPDF method on the MapSeries class.

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

{pdf_layout}—Used by the updateDocProperties method on the PDFDocument class.

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

{pdf_open_view}—Used by the updateDocProperties method on the PDFDocument class.

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

{permissions}—Used by the updateDocSecurity method on the PDFDocument class.

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

{renderer_name}—Used by the updateRenderer method on the Symbology class.

  • "GraduatedColorsRenderer"
  • "GraduatedSymbolsRenderer"
  • "SimpleRenderer"
  • "UnclassedColorsRenderer"
  • "UniqueValueRenderer"

{server_type}—Used by the CreateWebLayerSDDraft function.

  • "MY_HOSTED_SERVICES"—Default

{server_type}—Used by the getWebLayerSharingDraft method on the Map class.

  • "HOSTING_SERVER"
  • "FEDERATED_SERVER"

{service_type}—Used by the CreateWebLayerSDDraft function.

  • "FEATURE_ACCESS"—Default
  • "TILED"

{service_type}—Used by the getWebLayerSharingDraft method on the Map class.

  • "FEATURE"
  • "MAP_IMAGE"
  • "TILE"

{tiff_compression}—Used by the exportToTIFF method on the Layout, MapFrame and MapView classes.

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

{time_inclusion}—Used by the setTimeInclusion method on the MapTime class.

  • "EXCLUDE_START_AND_END"
  • "INCLUDE_ONLY_END"
  • "INCLUDE_ONLY_START"
  • "INCLUDE_START_AND_END"

{timeUnits}—Used by multiple properties in the LayerTime and MapTime classes.

  • "MILLISECONDS"
  • "SECONDS"
  • "MINUTES"
  • "HOURS"
  • "DAYS"
  • "WEEKS"
  • "MONTHS"
  • "YEARS"
  • "DECADES"
  • "CENTURIES"

{view_type}—Used by the closeViews method on the ArcGISProject class.

  • "LAYOUTS"
  • "MAPS"
  • "MAPS_AND_LAYOUTS"—Default
  • "REPORTS"

{web_service_type}—Used by the addDataFromPath method on the Map class.

  • "ARCGIS_SERVER_WEB"
  • "AUTOMATIC"—Default
  • "KML"
  • "VECTOR_TILE"
  • "WMS"

En este tema
  1. arcpy.mp constants