ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

WFS To Geodatabase

Disponible con licencia de Production Mapping.

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información de licenciamiento

Resumen

Loads data from a Web Feature Service (WFS) to a file geodatabase that can then be used to create map products.

Uso

  • If you've stored a connection to the WFS as a GIS server in your Catalog window, you can specify this connection file as the WFS server. Using the connection file rather than the URL allows you to define an additional setting for how to connect to the service. For more information about the WFS connection string format, see Accessing your data from the WFS connection.

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

  • The AOI Layer can be used to limit the features extracted from the WFS to a spatial extent. Features that lie within the bounding box of the selected area of interest will be imported into the database. The extent of the area of interest is used instead of the exact geometry.

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

  • Domains and subtypes can be used if an existing schema XML file containing them is entered in the XML Workspace.

  • Service information, user name, and password will be contained within the geodatabase.

  • You must have the Production Mapping extension and license to use this database after this tool is run.

  • The tool expects the default axis order of the services to be defined as Latitude/Longitude (y,x). If the WFS service is defined with a different axis order, the data will likely be imported in the wrong geographic location. To import data from a service using a different axis order, you will need to create a WFS connection and enable the Flip axis order advanced setting. For more information, see Adding a WFS connection.

Sintaxis

arcpy.production.WFSToGeodatabase(wfs_server, in_target_gdb, {xml_workspace}, {in_aoi_features}, {username}, {password})
ParámetroExplicaciónTipo de datos
wfs_server

The URL of the service containing the WFS data or the WFS connection file.

String; Workspace
in_target_gdb

The output geodatabase that contains the WFS features.

Workspace
xml_workspace
(Opcional)

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

File
in_aoi_features
(Opcional)

Features will be loaded from the specified area of interest.

Feature Layer
username
(Opcional)

User name credential if applicable to the service.

String
password
(Opcional)

Password credential if applicable to the service.

String Hidden

Muestra de código

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)

Entornos

  • Espacio de trabajo actual

Información de licenciamiento

  • Basic: No
  • Standard: Requiere Production Mapping
  • Advanced: Requiere Production Mapping

Temas relacionados

  • An overview of the Conversion toolset

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal