描述
Exports the metadata for datasets within a Bathymetric Information System (BIS) workspace.
使用方法
You can export the metadata for all datasets within your BIS workspace or, optionally, for datasets consisting of a single surface model within your BIS workspace.
The exported metadata includes Extended Metadata, Collection Metadata, and Internal Metadata (for any BAG datasets), as well as various other properties of each dataset, such as cell size and dataset name.
The metadata fields and values that are exported will be consistent with those that appear in the Explore Bathymetry window. Field values for any Extended or Collection metadata fields that are not enabled as searchable from their respective Metadata Configuration Editor dialog box will also be exported.
Metadata fields and field values for retired fields will not be exported.
For enterprise BIS workspaces, only metadata for the most recent version of a model can be exported.
If the tool is run while adding bathymetry to a BIS workspace, the export will contain records for only those datasets that existed in the BIS prior to running the Add Bathymetry tool.
语法
arcpy.bathymetry.ExportBisMetadata(bis_workspace, out_table, {bis_model})
参数 | 说明 | 数据类型 |
bis_workspace | The Bathymetric Information System (BIS) from which the metadata should be exported. This parameter accepts any geodatabase (.gdb) or enterprise database connection file (.sde) that has been registered as a BIS on the most recently upgraded version. | Workspace |
out_table | The output geodatabase table that will be created containing each dataset's metadata values. | Table |
bis_model (可选) | The BIS surface model from which the metadata should be exported. If no value is given, the metadata for all datasets in the BIS will be exported. | String |
代码示例
ExportBisMetadata example (stand-alone script)
The following stand-alone script demonstrates how to use the tool.
# Name: ExportBisMetadata_Ex1.py
# Description: Exports metadata for a few bathymetry datasets within the BIS geodatabase
# Requirements: ArcGIS Bathymetry
import arcpy
arcpy.CheckOutExtension("Bathymetry")
# set up parameters
bis_workspace = r"C:\Data\BIS.gdb"
out_table = r"C:\Data\BIS_Exports.gdb\San_Diego_Bathymetry_Metadata"
bis_model = "San Diego Bathymetry"
# execute the tool
arcpy.ExportBisMetadata_bathymetry(bis_workspace, out_table, bis_model)
环境
许可信息
- Basic: 否
- Standard: 需要 ArcGIS Bathymetry
- Advanced: 需要 ArcGIS Bathymetry