按字母顺序排序的 arcpy.mapping 常量列表
以下是 arcpy.mapping 参数常量的列表。其中的许多参数可用于多个 arcpy.mapping 函数和/或方法。这些参数大多为可选参数(使用大括号 ({}) 括起),而适当的时候会在值的旁边显示默认值。此文档可专门用作快速参考。有关参数值含义的详细信息,请使用参数名称旁提供的链接参阅函数或方法文档。
arcpy.mapping 常量
{add_position} - 用于 AddLayer 和 AddLayerToGroup
- "AUTO_ARRANGE" - 默认值
- "BOTTOM"
- "TOP"
-
{colorspace} - 用于 ExportToAI、ExportToEPS、DataDrivenPages.exportToPDF 和 ExportToPDF
- "CMYK"
- "RGB" - 默认值
-
{color_mode} - 用于 ExportToBMP、ExportToGIF、ExportToJPEG、ExportToPNG 和 ExportToTIFF
- "1-BIT_MONOCHROME_MASK"
- "1-BIT_MONOCHROME_THRESHOLD"
- "24-BIT_TRUE_COLOR" - ExportToGIF 之外所有函数的默认值
- "8-BIT_GRAYSCALE" - ExportToGIF 的默认值
- "8-BIT_PALETTE"
-
{element_type} - 用于 ListLayoutElements
- "DATAFRAME_ELEMENT"
- "GRAPHIC_ELEMENT"
- "LEGEND_ELEMENT"
- "MAPSURROUND_ELEMENT"
- "PICTURE_ELEMENT"
- "TEXT_ELEMENT"
-
{encryption} - 用于 PDFDocument.updateDocSecurity
- "AES_V1"
- "AES_V2"
- "RC4" - 默认值
-
{gif_compression} - 用于 ExportToGIF
- "LZW"
- "NONE" - 默认值
- "RLE"
-
{image_compression} - 用于 ExportToEPS、DataDrivenPages.exportToPDF 和 ExportToPDF
- "ADAPTIVE" - 默认值
- "JPEG"
- "DEFLATE"
- "LZW"
- "NONE"
- "RLE"
-
{image_quality} - 用于 ExportToAI、ExportToEMF、ExportToEPS、DataDrivenPages.exportToPDF、ExportToPDF 和 ExportToSVG
- "BEST" - 默认值
- "BETTER"
- "FASTER"
- "FASTEST"
- "NORMAL"
-
{insert_position} - 用于 InsertLayer 和 MoveLayer
- "AFTER"
- "BEFORE" - 默认值
-
{layers_attributes} - 用于 DataDrivenPages.exportToPDF 和 ExportToPDF
- "LAYERS_AND_ATTRIBUTES"
- "LAYERS_ONLY" - 默认值
- "NONE"
-
{layer_property} - 用于 Layer.supports
- "BRIGHTNESS"
- "CONTRAST"
- "DATASETNAME"
- "DATASOURCE"
- "DEFINITIONQUERY"
- "DESCRIPTION"
- "LABELCLASSES"
- "LONGNAME"
- "NAME"
- "SERVICEPROPERTIES"
- "SHOWLABELS"
- "TRANSPARENCY"
- "VISIBLE"
- "WORKSPACEPATH"
-
displayUnits - DataFrame 对象的一种属性
- "Centimeters"
- "DecimalDegrees"
- "DecimalDegreesMinutes"
- "DecimalDegreesSeconds"
- "Decimeters"
- "Feet"
- "Inches"
- "Kilometers"
- "Meters"
- "MGRS"
- "Miles"
- "Millimeters"
- "NauticalMiles"
- "Points"
- "Unknown"
- "USNationalGrid"
- "UTM"
- "Yards"
-
{msd_anti_aliasing} - 用于 ConvertToMSD
- "BEST"
- "FAST"
- "FASTEST"
- "NONE" - 默认值
- "NORMAL"
-
{msd_text_anti_aliasing} - 用于 ConvertToMSD
- "FORCE" - 默认值
- "NONE"
- "NORMAL"
-
{multiple_files} - 用于 PDFDocument.exportToPDF
- "PDF_MULTIPLE_FILES_PAGE_INDEX"
- "PDF_MULTIPLE_FILES_PAGE_NAME"
- "PDF_SINGLE_PAGE" - 默认值
-
{page_range_type} - 用于 DataDrivenPages.exportToPDF 和 DataDrivenPages.printPages
- "ALL" - 默认值
- "CURRENT"
- "RANGE"
- "SELECTED"
-
{pdf_layout} - 用于 PDFDocument.updateDocProperties
- "DONT_CARE"
- "ONE_COLUMN"
- "SINGLE_PAGE" - 默认值
- "TWO_COLUMN_LEFT"
- "TWO_COLUMN_RIGHT"
- "TWO_PAGE_LEFT"
- "TWO_PAGE_RIGHT"
-
{pdf_open_view} - 用于 PDFDocument.updateDocProperties
- "ATTACHMENT"
- "FULL_SCREEN"
- "LAYERS"
- "USE_BOOKMARKS"
- "USE_NONE"
- "USE_THUMBS" - 默认值
- "VIEWER_DEFAULT"
-
{permissions} - 用于 PDFDocument.updateDocSecurity
- "ALL" - 默认值
- "ALL_MASTER"
- "COPY"
- "DOC_ASSEMBLY"
- "EDIT"
- "EDIT_NOTES"
- "FILL_AND_SIGN"
- "HIGH_PRINT"
- "OPEN"
- "PRINT"
- "SECURE"
-
{picture_symbol} - 用于 ExportToAI、ExportToEMF、ExportToEPS、DataDrivenPages.exportToPDF、ExportToPDF 和 ExportToSVG
- "RASTERIZE_BITMAP" - 默认值
- "RASTERIZE_PICTURE"
- "VECTORIZE_BITMAP"
-
{ps_lang_level} - 用于 ExportToEPS
- 2
- 3 - 默认值
-
{rle_compression} - 用于 ExportToBMP
- "NONE" - 默认值
- "RLE"
-
{service_capabilities} - 用于 PublishMSDToServer
- "MAPPING" - 默认值
- "KML"
- "WCS"
- "WFS"
- "WMS"
-
{tiff_compression} - 用于 ExportToTIFF
- "DEFLATE"
- "JPEG"
- "LZW"
- "NONE" - 默认值
- "PACK_BITS"
-
timeWindowUnits - DataFrameTime 的一种属性
- "centuries"
- "decades"
- "days"
- "hours"
- "millseconds"
- "minutes"
- "months"
- "seconds"
- "unknown"
- "weeks"
- "years"
-
{version} - 用于 Layer.saveACopy 和 MapDocument.saveACopy
- "10.0" - 默认值
- "8.3"
- "9.0/9.1"
- "9.2"
- "9.3"
-
{workspace_type} - 用于 Layer.replaceDataSource、MapDocument.replaceWorkspacePaths 和 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"