ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Справка
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Картографическая платформа вашей организации

ArcGIS Desktop

Полноценная профессиональная ГИС

ArcGIS Enterprise

ГИС предприятия

ArcGIS for Developers

Инструменты для встраивания приложений с местоположениями

ArcGIS Solutions

Бесплатные шаблоны карт и приложений для отрасли

ArcGIS Marketplace

Получение приложения и данных для вашей организации.

  • Документация
  • Поддержка
Esri
  • Войти
user
  • Мой профиль
  • Выход

Help

  • На главную
  • Начало работы
  • Карта
  • Анализ
  • Управление данными
  • Инструменты
  • Больше...

WFS To Geodatabase

Доступно с лицензией Production Mapping.

  • Краткая информация
  • Использование
  • Синтаксис
  • Пример кода
  • Параметры среды
  • Информация о лицензиях

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

Loads data from a WFS service to a file geodatabase which can then be used to create map products.

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

  • If you want a single database for each area of interest, the tool must be run separately for each selected area of interest.

  • The features from the WFS that lie within the selected area of interest will be imported into the database.

  • If the AOI Layer is left empty, the entire service will be imported.

  • Domains and subtypes can be used if a premade schema XML file that contains them is entered in the XML Workspace.

Синтаксис

WFSToGeodatabase(wfs_server, in_target_gdb, {xml_workspace}, {in_aoi_features}, {username}, {password})
ПараметрОбъяснениеТип данных
wfs_server

The URL of the service containing the WFS data.

String
in_target_gdb

The output geodatabase that contains the WFS features.

Workspace
xml_workspace
(Дополнительный)

The database schema to be used, replacing the schema located in the service.

File
in_aoi_features
(Дополнительный)

Features will be loaded from the specified area of interest.

Feature Layer
username
(Дополнительный)

User name credential if applicable to the service.

String
password
(Дополнительный)

Password credential if applicable to the service.

String Hidden

Пример кода

WFSToGeodatabase example (stand-alone script)

The following stand-alone sample script demonstrates how to use WFSToGeodatabase.

# Name: WFSToGeodatabaseExample.py
# Description: Import WFS data into a new file geodatabase in a specificed area of interest.
# Author: Esri
# Date: June 2015

# Import arcpy module
import arcpy

# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")

# Define variables
wfs_service = "http://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer"
output_geodatabase = "C:/data/SampleWorldCities.gdb"
xml_workspace = "C:/schema/SampleWorldCities.xml"
aoi_layer = "C:/data/AOI.gdb/AOIfeatureclass"

#Select AOI polygon
arcpy.SelectLayerByAttribute_management(aoi_layer, 'NEW_SELECTION', 'ObjectID = 1')

# Execute WFSToGeodatabase
arcpy.WFSToGeodatabase_production(wfs_service, output_geodatabase, xml_workspace, aoi_layer)

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

  • Текущая рабочая область (Current Workspace)

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

  • ArcGIS Desktop Basic: Нет
  • ArcGIS Desktop Standard: Требует Production Mapping
  • ArcGIS Desktop Advanced: Требует Production Mapping

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

  • An overview of the Conversion toolset

ArcGIS Desktop

  • На главную
  • Документация
  • Поддержка

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Об Esri

  • О нас
  • Карьера
  • Блог Esri
  • Конференция пользователей
  • Саммит разработчиков
Esri
Расскажите нам, что вы думаете.
Copyright © 2019 Esri. | Конфиденциальность | Правовая информация