ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

Geodatabase To GeoNames

  • 概要
  • 使用法
  • 構文
  • コードのサンプル
  • 環境
  • ライセンス情報

概要

Exports the GeoNames features in a geodatabase to a text file.

This tool can be used after GeoNames data has been loaded into your database and associated with features. You would then edit and update the GeoNames features, as necessary, and export them to a text file. This text file is created in Unicode Transfer Format (UTF) in 8-bit or 16-bit format so you can load the GeoNames data into data in different locales.

At a minimum, the GeoNames feature class must contain the unique feature identifier (UFI) and unique name identifier (UNI) fields. The text file is created for features from the country you choose using the GeoNames feature class and table in your geodatabase.

It is assumed that the name of the feature class and table are Geonames_FeaturesP and Geonames_Table, respectively, but you can also use GeoNames files your organization may have already created.

使用法

  • Due to schema changes in the GeoNames table, you may need to import the new schema into your existing GeoNames table. 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.

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

構文

arcpy.defense.GeodatabaseToGeoNames(in_feature_class, in_table, out_text_file, in_country_code, in_output_format)
パラメーター説明データ タイプ
in_feature_class

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

Feature Class
in_table

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

Table
out_text_file

The path to the output GeoNames text file.

Text File
in_country_code

Choose the country code that corresponds with the country for which you want to export GeoNames features.

String
in_output_format

The output format of the file. You can use either an 8-bit or 16-bit format.

  • UTF8 —This is the default 8-bit format.
  • UTF16 —This is the 16-bit format.
String

コードのサンプル

GeodatabaseToGeoNames example (stand-alone script)

The following script is an example of calling the GeodatabaseToGeoNames tool in a stand-alone Python script.

# Importing arcpy module
import arcpy

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

# Setting variables for parameters
feature_class = r'C:\Data\MGCP_TRD_4_2.gdb\GeoNames_FeaturesP'
in_table = r'C:\Data\MGCP_TRD_4_2.gdb\GEONAMES_TABLE'
output_file = r'C:\Data\GeoNames_HA.txt'
country_code = 'HA'

# Calling GeoNames to Geodatabase tool
arcpy.defense.GeodatabasetoGeoNames(feature_class, in_table, output_file, country_code, 'UTF8')

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

環境

  • 現在のワークスペース

ライセンス情報

  • Basic: いいえ
  • Standard: 次のものが必要 Defense Mapping
  • Advanced: 次のものが必要 Defense Mapping

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

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

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル