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 for 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

Help

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Daten verwalten
  • Werkzeuge
  • Mehr ...

WFS To Geodatabase

Mit der Production Mapping-Lizenz verfügbar.

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

Zusammenfassung

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

Verwendung

  • 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.

Syntax

WFSToGeodatabase(wfs_server, in_target_gdb, {xml_workspace}, {in_aoi_features}, {username}, {password})
ParameterErläuterungDatentyp
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
(optional)

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

File
in_aoi_features
(optional)

Features will be loaded from the specified area of interest.

Feature Layer
username
(optional)

User name credential if applicable to the service.

String
password
(optional)

Password credential if applicable to the service.

String Hidden

Codebeispiel

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)

Umgebungen

  • Aktueller Workspace

Lizenzinformationen

  • ArcGIS Desktop Basic: Nein
  • ArcGIS Desktop Standard: Erfordert Production Mapping
  • ArcGIS Desktop Advanced: Erfordert Production Mapping

Verwandte Themen

  • An overview of the Conversion toolset

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS Plattform

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

Über Esri

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