Use the INSPIRE Feature Download service
このトピックの内容
INSPIRE Feature Download service capabilities
After creating the INSPIRE Feature Download service, it is ready to be invoked. This topic discusses accessing the INSPIRE Feature Download service's GetCapabilities URL, which you can then use to communicate in feature download requests.
To obtain the feature download service URL and test, follow the steps below.
- Open ArcCatalog.
- Click your ArcGIS Server connection.
- Right-click the feature download service you created and select Service Properties
- Select the Capabilities tab and highlight the INSPIRE Feature Download capability.
- Copy the URL to the right in the text box.
- Paste the INSPIRE feature download URL into the
address bar of your browser and append ?REQUEST=GetCapabilities&SERVICE=WFS at the end of the URL, so that the final URL resembles one of the following (substituting your server name and service name):
- If you used a map
document to create the service:
http://serverName:6080/arcgis/rest/services/serviceName/MapServer/exts/InspireFeatureDownload/service
- If you used a
geodatabase connection to create the service:
http://serverName:6080/arcgis/rest/services/serviceName/GeoDataServer/exts/InspireFeatureDownload/service
- If you used a map
document to create the service:
- Click Enter to proceed to the URL endpoint.
The response will be a capabilities document of the INSPIRE Feature Download service in the default language configured for the service.
注意:
Multilingual support is currently only available for the http/GET GetCapabilities request.
Samples
This section provides some sample WFS 2.0.0 URLs for services created from map documents based on ArcGIS for INSPIRE (the URL is slightly different in the online resource URL portion for services created based on geodata; the other parts are the same). The data returned will be in GML format:
- GetFeatureById (predefined)
http://serverName:6080/arcgis/rest/services/serviceName/MapServer/exts/InspireFeatureDownload/service?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=auAdmBoundaryL.1727&LANGUAGE=ENG
- GetDatasetByCrs (predefined)
http://serverName:6080/arcgis/rest/services/serviceName/MapServer/exts/InspireFeatureDownload/service?SERVICE=WFS&VERSION=2.0.0&COUNT=1&REQUEST=GetFeature&STOREDQUERY_ID=urn:x-ii:def:query:OGC-WFS::GetDatasetByCrs&CRS=EPSG:25830
- GetFeature (direct download)
http://serverName:6080/arcgis/rest/services/serviceName/MapServer/exts/InspireFeatureDownload/service?Service=WFS&count=10&REQUEST=GetFeature&VErsion=2.0.0&TYPENAMES=au:AdministrativeBoundary
It is also possible to extract data through http POST for
download services in ArcGIS for INSPIRE; the syntax
follows the WFS 2.0.0 specifications. For example, the following is the
post request for getFeaturebyId:<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature
service="WFS"
version="2.0.0"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd">
<wfs:StoredQuery id="urn:ogc:def:query:OGC-WFS::GetFeatureById">
<wfs:Parameter name="id">auAdmUnitS.1883</wfs:Parameter>
</wfs:StoredQuery>
</wfs:GetFeature>