Update GeoNames (Topographic Production)

Zusammenfassung

Updates the name field on input features based on the information from GeoNames_FeaturesP and GEONAMES_TABLE.

Verwendung

Parameter

BeschriftungErläuterungDatentyp
Input Features

The input features that will be updated. Each Input Features value should have field names matching the values specified for the Named Feature ID Field, Name ID Field, and Name Field parameters.

Feature Layer
GeoNames Features

The input GeoNames features that identify unique named feature locations.

Feature Layer
GeoNames Table

A table containing name records related to the input GeoNames features.

Table View
Named Feature ID Field

The field storing GeoNames named feature identifier values. These values should not be null or empty on the input features.

Field
Name ID Field

The field to store GeoNames name identifier values.

Field
Name Field

The field to store GeoNames name values.

Field

Abgeleitete Ausgabe

BeschriftungErläuterungDatentyp
Updated Features

Features where named_feature_id_field, name_id_field, and name_field have been updated with information from GeoName features.

Feature Layer

arcpy.topographic.UpdateGeoNames(in_features, in_geonames_features, in_geonames_table, named_feature_id_field, name_id_field, name_field)
NameErläuterungDatentyp
in_features
[in_features,...]

The input features that will be updated. Each in_features value should have field names matching the values specified for the named_feature_id_field, name_id_field, and name_field parameters.

Feature Layer
in_geonames_features

The input GeoNames features that identify unique named feature locations.

Feature Layer
in_geonames_table

A table containing name records related to the input GeoNames features.

Table View
named_feature_id_field

The field storing GeoNames named feature identifier values. These values should not be null or empty on the input features.

Field
name_id_field

The field to store GeoNames name identifier values.

Field
name_field

The field to store GeoNames name values.

Field

Abgeleitete Ausgabe

NameErläuterungDatentyp
out_features

Features where named_feature_id_field, name_id_field, and name_field have been updated with information from GeoName features.

Feature Layer

Codebeispiel

UpdateGeoNames example (stand-alone script)

This stand-alone script updates features based on GeoNames_FeaturesP and GEONAMES_TABLE.

# Name: UpdateGeoNames_sample.py
# Description: Updating a feature class based on the GeoNames_FeaturesP and GEONAMES_TABLE

# Import System Modules
import arcpy

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

# Setting Local Variables
in_features = r'C:\Temp\Test.gdb\RiverLines'
in_geonames_features = r'C:\Temp\Test.gdb\GeoNames_FeaturesP'
in_geonames_table = r'C:\Temp\Test.gdb\GEONAMES_TABLE'

# Applying GeoNames to the feature class
arcpy.topographic.UpdateGeoNames(in_features, in_geonames_features, in_geonames_table, 'NFI', 'NFN', 'NAM')

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

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert Production Mapping
  • Advanced: Erfordert Production Mapping

Verwandte Themen