Apply Feature Level Metadata (Topographic Production)

Краткая информация

Applies values from a metadata record in the FeatureLevelMetadata table to selected features that have matching attribute fields.

Использование

  • The Metadata Favorite parameter value is a record in the FeatureLevelMetadata table. The tool will apply a record's associated values to corresponding attributes for the specified features in the Input Features parameter.

  • The FeatureLevelMetadata table is included with the ArcGIS Defense Mapping and ArcGIS Production Mapping product data files.

  • The field types in the FeatureLevelMetadata table must match the field types in the feature layers being updated. If they don't, the tool will fail with an error message indicating that the field types must match before processing.

Параметры

ПодписьОписаниеТип данных
Input Features

The inputs to which the Metadata Favorite parameter value will be applied.

Feature Layer
Input Metadata Table

The path to the metadata table containing the records that will be used to populate attributes.

Table View
Metadata Favorite

The record that will be used to populate attributes. The available options depend on the records available in the metadata table.

String

Производные выходные данные

ПодписьОписаниеТип данных
Updated Features

The Input Features layer with updated attributes.

Feature Layer; Feature Class

arcpy.topographic.ApplyFeatureLevelMetadata(in_features, in_metadata_table, metadata_favorite)
ИмяОписаниеТип данных
in_features
[in_features,...]

The inputs to which the metadata_favorite parameter value will be applied.

Feature Layer
in_metadata_table

The path to the metadata table containing the records that will be used to populate attributes.

Table View
metadata_favorite

The record that will be used to populate attributes. The available options depend on the records available in the metadata table.

String

Производные выходные данные

ИмяОписаниеТип данных
updated_features

The in_features layer with updated attributes.

Feature Layer; Feature Class

Пример кода

ApplyFeatureLevelMetadata example (stand-alone script)

The following code sample demonstrates how to use the ApplyFeatureLevelMetadata function in Python.

# Name: ApplyFeatureLevelMetadata_sample.py
# Description: Use the Apply Feature Level Metadata tool to apply values from a
# metadata record in the Feature Level Metadata table to selected features
# that have matching attribute fields

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('Foundation')

# Setting Local Variables
in_features = r'C:\Data\MGCP_TRD_4_6.gdb\MGCP\AerofacA'
in_metadata_table = r'C:\Data\MGCP_TRD_4_6.gdb\FeatureLevelMetadata'
metadata_favorite = 'Favorite1'

# Execute Apply Feature Level Metadata
arcpy.topographic.ApplyFeatureLevelMetadata(in_features, in_metadata_table, metadata_favorite)

# Check In Extensions
arcpy.CheckInExtension('Foundation')

Параметры среды

Этот инструмент не использует параметры среды геообработки

Информация о лицензиях

  • Basic: Нет
  • Standard: Обязательно Production Mapping
  • Advanced: Обязательно Production Mapping

Связанные разделы