ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

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)

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Production Mapping
  • ArcGIS Desktop Advanced: 需要 Production Mapping

相关主题

  • An overview of the Conversion toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2019 Esri. | 隐私政策 | 法律声明