下面是 arcpy.mapping 参数常量的列表。 其中的许多参数可用于多个 arcpy.mapping 函数和/或方法。 这些参数大多为可选参数(使用大括号 ({}) 括起),而适当的时候会在值的旁边显示默认值。 此文档可专门用作快速参考。 有关参数值含义的具体信息,请使用在参数名称旁提供的链接参阅函数或方法文档。
arcpy.mapping 常量
{add_position} - 用于 AddLayer 和 AddLayerToGroup。
- "AUTO_ARRANGE" - 默认值
- "BOTTOM"
- "TOP"
—
{colorspace} - 用于 DataDrivenPages.exportToPDF、ExportToAI、ExportToEPS 和 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"
—
connection_type - 用于 CreateGISServerConnectionFile。
- "ADMINISTER_GIS_SERVICES"
- "PUBLISH_GIS_SERVICES"
- "USE_GIS_SERVICES"
—
{dataset_option} - 用于 ExportReport。
- "ALL"
- "DEFINITION_QUERY"
- "EXTENT"
- "SELECTED"
- "USE_RLF" - 默认值
—
displayUnits - DataFrame 对象的属性。
- "Centimeters"
- "DecimalDegrees"
- "DecimalDegreesMinutes"
- "DecimalDegreesSeconds"
- "Decimeters"
- “Feet”
- "Inches"
- "Kilometers
- “Meters”
- "MGRS"
- "Miles"
- "Millimeters"
- "NauticalMiles"
- "Points"
- “Unknown”
- "USNationalGrid"
- "UTM"
- "Yards"
—
{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} - 用于 DataDrivenPages.exportToPDF、ExportToEPS 和 ExportToPDF。
- "ADAPTIVE" - 默认值
- "DEFLATE"
- "JPEG"
- "LZW"
- "NONE"
- "RLE"
—
{image_quality} - 用于 DataDrivenPages.exportToPDF、ExportToAI、ExportToEMF、ExportToEPS、ExportToPDF、ExportToSVG 和 PrintMap。
- "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"
- "CREDITS"
- "DATASETNAME"
- "DATASOURCE"
- "DEFINITIONQUERY"
- "DESCRIPTION"
- "LABELCLASSES"
- "LONGNAME"
- "MAXSCALE"
- "MINSCALE"
- "NAME"
- "SERVICEPROPERTIES"
- "SHOWLABELS"
- "SYMBOLOGY"
- "SYMBOLOGYTYPE"
- "TIME"
- "TRANSPARENCY"
- "VISIBLE"
- "WORKSPACEPATH"
—
{msd_anti_aliasing} - 用于 ConvertToMSD。
- "BEST"
- "FAST"
- "FASTEST"
- "NONE" - 默认值
- "NORMAL"
—
{msd_text_anti_aliasing} - 用于 ConvertToMSD。
- "FORCE" - 默认值
- "NONE"
- "NONE"
—
{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} - 用于 DataDrivenPages.exportToPDF、ExportToAI、ExportToEMF、ExportToEPS、ExportToPDF 和 ExportToSVG。
- "RASTERIZE_BITMAP" - 默认值
- "RASTERIZE_PICTURE"
- "VECTORIZE_BITMAP"
—
{ps_lang_level} - 用于 ExportToEPS。
- 2
- 3 - 默认值
—
{record_set} - 用于 ExportReport。
- "ALL"
- "SELECTED"
- "USE_RLF" - 默认值
—
{rle_compression} - 用于 ExportToBMP。
- "NONE" - 默认值
- "RLE"
—
{save_username_password} - CreateGISServerConnectionFile。
- "DO_NOT_SAVE_USERNAME" - 默认值
- "SAVE_USERNAME" - 默认值
—
{service_capabilities} - 用于 PublishMSDToServer。
- "MAPPING" - 默认值
- "KML"
- "WCS"
- "WFS"
- "WMS"
—
{server_type} - 用于 CreateGISServerConnectionFile。
- "ARCGIS_SERVER" - 默认值
- "SPATIAL_DATA_SERVER"
—
{server_type} - 用于 CreateMapSDDraft。
- "ARCGIS_SERVER" - 默认值
- "FROM_CONNECTION_FILE"
- "MY_HOSTED_SERVICES"
- "SPATIAL_DATA_SERVER"
—
symbologyType - 图层对象的属性。
- "GRADUATED_COLORS"
- "GRADUATED_SYMBOLS"
- "OTHER"
- "RASTER_CLASSIFIED"
- "UNIQUE_VALUES"
—
{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.8" - 默认值
- "10.7"
- "10.6"
- "10.5"
- "10.4"
- "10.3"
- "10.1"
- "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"