GetPackageInfo

サマリー

Returns a dictionary that contains information about a package file.

構文

GetPackageInfo (input_package)
パラメーター説明データ タイプ
input_package

The path to the package file.

String
戻り値
データ タイプ説明
Dictionary

A dictionary containing the properties of the package file.

The dictionary keys are as follows:

KeysValues

credits

The credits for the package. This is generally the name of the organization that is given credit for authoring and providing the content for the package.

description

The description of the package.

name

The name of the package.

summary

The summary of package.

tags

The tags used to describe and identify the package.

type

The package type.

  • Geoprocessing Package—The package is a geoprocessing package (.gpkx).
  • Layer Package—The package is a layer package (.lpkx).
  • Locator Package—The package is a locator package (.gcpk).
  • Map Package—The package is a map package (.mpkx).
  • Mobile Map Package—The package is a mobile map package (.mmpk).
  • Mobile Scene Package—The package is a mobile scene package (.mspk).
  • Project Package—The package is a project package (.ppkx).
  • Vector Tile Package —The package is a vector tile package (.vtpk).

version

The package version.

コードのサンプル

GetPackageInfo example

Returns information about a package.

import arcpy
import pprint

pprint.pprint(arcpy.GetPackageInfo("c:/packages/maps/Leith.mpkx"))

このトピックの内容