ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

GeoNames To Geodatabase

  • Zusammenfassung
  • Verwendung
  • Syntax
  • Codebeispiel
  • Umgebungen
  • Lizenzinformationen

Zusammenfassung

Loads GeoNames data into a feature class and table. The feature class is composed of point features, and the table contains fields with information concerning the naming conventions used for the features. The feature class contains the Unique Feature Identifier (UFI) and Unique Name Identifier (UNI), which match the same fields in the GeoNames table.

Verwendung

  • Before loading the GeoNames data into your database, the feature class and table must already exist. Fresh copies of the GeoNames feature class and table are located at C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.5\Geonames\Schema\Gdb\Geonames_Template.zip. Extract Geonames_Template.zip and copy the feature class and table into your working database.

  • If your organization already has a GeoNames database, this database may be used as long as it contains the UFI and UNI fields.

Syntax

arcpy.defense.GeoNamesToGeodatabase(in_source, in_feature_class, in_allow_duplicates, in_table)
ParameterErklärungDatentyp
in_source

Path to the source file containing GeoNames information. This needs to be a properly formatted GeoNames file.

Shapefile; Text File
in_feature_class

The GeoNames feature class; this feature class should be in the working database.

Feature Class
in_allow_duplicates

Allows duplicate features in the GeoNames feature class.

  • ALLOW_DUPLICATES —Allows the tool to import features even if there is already an entry in the GeoNames feature class and table.
  • DON'T_ALLOW_DUPLICATES —Prevents the tool from importing features if there is another feature with the same geometry and attributes in the GeoNames feature class or GeoNames table. This is the default.
Boolean
in_table

The GeoNames table; this table should be in the working database.

Table

Abgeleitete Ausgabe

NameErklärungDatentyp
out_featureclass

Feature Class
out_tableTable

Codebeispiel

GeoNamesToGeodatabase example (stand-alone script)

The following script is an example of calling GeoNamesToGeodatabase in a stand-alone Python script:

# Importing arcpy module
import arcpy

# Checking out Defense extension
arcpy.CheckOutExtension('defense')

# Setting variables for parameters
source_file = r'C:\Data\ha.txt'
feature_class = r'C:\Data\MGCP_TRD_4_2.gdb\GeoNames_FeaturesP'
in_table = r'C:\Data\MGCP_TRD_4_2.gdb\GEONAMES_TABLE'

# Calling GeoNames to Geodatabase tool
arcpy.defense.GeoNamestoGeodatabase(source_file, feature_class, 'DONT_ALLOW_DUPLICATES', in_table)

# Checking in Defense extension
arcpy.CheckInExtension('defense')

Umgebungen

  • Aktueller Workspace

Lizenzinformationen

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

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches