Introducir los archivos para el Servicio de descarga de datasets predefinidos de INSPIRE
Puedes crear un Servicio de descarga de datasets predefinidos de INSPIRE basado en la implementación de la guía técnica de ATOM para la implementación de los servicios de descarga de INSPIRE de la versión 3.1.
Para habilitar el servicio de descarga de datasets predefinidos de INSPIRE, se necesitan los siguientes archivos de entrada:
- Archivo ATOM del servicio: archivo del nivel más alto del servicio ATOM que contiene los vínculos a los archivos del dataset de ATOM. Los vínculos a cada archivo de dataset ATOM son entradas separadas. A continuación, se muestra un ejemplo.
- Archivo de ATOM del dataset: este archivo contiene vínculos a los datasets. Puede incluir varias entradas para el dataset y cada entrada representa una combinación del CRS y el formato de datos para el dataset. A continuación, se muestra un ejemplo.
- Archivo descriptor de OpenSearch: este archivo define las operaciones de OpenSearch para el servicio de descarga de INSPIRE basado en ATOM que incluye: q, para la búsqueda de parámetros en texto libre, describe el dataset espacial y la operación de obtención del dataset. A continuación, se muestra un ejemplo.
Es posible crear más de un archivo de servicio y de dataset ATOM para admitir más de un idioma en un solo servicio. Los vínculos mutuos entre estos archivos deben estar rellenados correctamente para que se devuelva el contenido correcto en las operaciones que dependen del idioma. Consulte la guía técnica para la implementación de los servicios de descarga que está disponible en el sitio web de INSPIRE para obtener descripciones detalladas sobre las especificaciones de idioma.
Cómo se crean los servicios de descarga de datasets predefinidos de INSPIRE
El servicio de descarga de datasets predefinidos de INSPIRE se puede habilitar en cualquier servicio de mapas. Se recomienda habilitarlo junto con un servicio de visualización o descarga de entidades de INSPIRE. Siga los pasos a continuación:
- Inicie ArcCatalog.
- Selecciona el servicio desees agregar al servicio de descarga de datasets predefinidos de INSPIRE.
- Haz clic con el botón derecho del ratón en el servicio y, a continuación, en Propiedades del servicio.
- Accede a la sección Capacidades y habilita el servicio de descarga de datasets predefinidos de INSPIRE.
- Haz clic en las capacidades del Servicio de descarga de datasets predefinidos de INSPIRE.
- Haz clic en Elegir archivo ATOM del servicio de descarga, selecciona el archivo ATOM del servicio y haz clic en Abrir.
- Haz clic en Aceptar. Si se produce algún error de validación en el archivo de entrada, repite estos pasos hasta que se corrija el error.
Una vez que se reinicia el servicio, el servicio de descarga de datasets predefinidos de INSPIRE configurado queda expuesto al directorio REST de ArcGIS Server (por ejemplo http://servername:6080/arcgis/rest/services/<nombre_del_servicio>/MapServer/exts/InspirePredefinedDatasetDownload).
Muestras
En esta sección se proporcionan archivos de ejemplo ATOM para servicios y datasets, y de descriptores de OpenSearch.
- ATOM de servicio
Introducir los archivos para el Servicio de descarga de datasets predefinidos de INSPIRE <?xml version="1.0" encoding="UTF-8"?> <!--please reference Technical Guidance for the implementation of INSPIRE Download Services (http://inspire.jrc.ec.europa.eu/documents/Network_Services/Technical_Guidance_Download_Services_v3.1.pdf) for detailed descriptions of each elements--> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:inspire_dls="http://inspire.ec.europa.eu/schemas/inspire_dls/1.0" xml:lang="en"> <!-- title for the download service ATOM (required), see example below --> <title>a human readable title for the feed</title> <!-- subtitle (optional), see example below --> <subtitle>The subtitle of an Atom feed</subtitle> <!-- metadata link for this download service ATOM (required), see example below --> <link href="http://servername/geoportal/rest/document?id={5A0A943B-D6AE-403D-886B-B02944D0E4B3}" rel="describedby" type="application/xml"/> <!-- link to service atom file itself (required), please match the file name with the actual name of the download service ATOM file, it should be a local file path (absolute or related), not remote URLS see example below --> <link href="serviceatoma1.xml" hreflang="en" rel="self" title="This document" type="application/atom+xml"/> <!-- link to opensearch description document (required), please match the actual download service ATOM file name used for the opensearch description document, see example below --> <link title="Open Search Description" type="application/opensearchdescription+xml" rel="search" href="opensearchdescriptiona1.xml" hreflang="en"/> <!-- id references to the download service ATOM file (required), it should match with the href attribute value of the link with the rel value "self". see example below --> <id>serviceatoma1.xml</id> <!-- rights or restrictions for download service ATOM (required), see example below --> <rights>Copyright (c) 2012, XYZ; all rights reserved</rights> <!-- updated (required), contain the date, time and timezone at which the download service ATOM was last updated --> <updated>2012-03-31T13:45:03Z</updated> <!-- author (required), contact information for an individual or organisation responsible for the download service ATOM --> <author> <name>FirstName LastName</name> <email>doe@xyz.org</email> </author> <!-- dataset entry ( at least one entry is required, you can add multiple entries if you need to serve multiple dataset atom files) --> <entry> <!-- spatial dataset uri code (required), spatial_dataset_identifier_code and spatial_dataset_identifier_namespace elements together define the Spatial Dataset Unique Resource Identifier for the dataset --> <inspire_dls:spatial_dataset_identifier_code>waternetwork</inspire_dls:spatial_dataset_identifier_code> <!-- namespace (required) --> <inspire_dls:spatial_dataset_identifier_namespace>http://www.esri.com/inspire/atom</inspire_dls:spatial_dataset_identifier_namespace> <!-- link to the dataset metadata record (required) --> <link href="http://servername/geoportal/rest/document?id={5A0A943B-D6AE-403D-886B-B02944D0E4B3}" rel="describedby" type="application/xml"/> <!-- link to dataset atom file (required) --> <link rel="alternate" href="datasetatoma1.xml" type="application/atom+xml" hreflang="en" title="dataset link"/> <!-- optional link to download services getcapabilities (only required for hybrid implementations) --> <link rel="related" href="http://servername/arcgis/rest/services/a4iatom/MapServer/exts/InspireFeatureDownload/service?Request=GetCapabilities&service=WFS" type="application/xml" title="Service implementing Direct Access operations"/> <!-- id to the dataset atom file (required), the file should match with link to dataset atom file --> <id>datasetatoma1.xml</id> <!-- title for the dataset (required) --> <title>The dataset title</title> <!-- updated (required), the date, time and timezone at which the entry was last updated --> <updated>2012-03-31T13:45:03Z</updated> <!-- rights (optional, only required if different from the feed section) --> <rights>Copyright (c) 2012, XYZ; all rights reserved</rights> <!-- author (optional, only required if different from the feed section) --> <author> <name>FirstName LastName</name> <email>doe@xyz.org</email> </author> <!-- summary (optional), detailed description of the dataset entry --> <summary>this is a summary data for this dataset</summary> <!-- georss (optional), the bounding box of the dataset --> <georss:polygon>47.202 5.755 55.183 5.755 55.183 15.253 47.202 15.253 47.202 5.755</georss:polygon> <!-- CRS (required), refer to a known definition of a coordinate reference system --> <category term="http://www.opengis.net/def/crs/EPSG/0/4258" label="ETRS89"/> </entry> <!-- add additional entry section if needed --> </feed>
- ATOM de dataset
<?xml version="1.0" encoding="UTF-8"?> <!--please reference Technical Guidance for the implementation of INSPIRE Download Services (http://inspire.jrc.ec.europa.eu/documents/Network_Services/Technical_Guidance_Download_Services_v3.1.pdf) for detailed descriptions of each elements--> <feed xmlns ="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:inspire_dls="http://inspire.ec.europa.eu/schemas/inspire_dls/1.0" xml:lang="en"> <!-- title for the dataset ATOM (required), see example below --> <title>Title of dataset ATOM</title> <!-- subtitle for the dataset ATOM (optional), see example below --> <subtitle>Subtitle of dataset ATOM</subtitle> <!-- metadata link for this dataset ATOM (required), see example below --> <link href="http://servername/geoportal/rest/document?id={5A0A943B-D6AE-403D-886B-B02944D0E4B3}" rel="describedby" type="application/xml"/> <!-- link to dataset ATOM file itself (required), please match the file name with the actual name of the dataset ATOM file, it should be a local file path (absolute or related), not remote URLs, see example below --> <link href="datasetatoma1.xml" hreflang="en" rel="self" title="This document" type="application/atom+xml"/> <!-- link to parent download service ATOM (optional) --> <link href="serviceatoma1.xml" rel="up" type="application/atom+xml" hreflang="en" title="The parent service feed document"/> <!-- id references the dataset ATOM file (required), it should match with the href attribute value of the link with the rel value "self". see example below --> <id>datasetatoma1.xml</id> <!-- rights or restrictions for download service ATOM (required), see example below --> <rights>Copyright (c) 2012, XYZ; all rights reserved</rights> <!-- updated (required), the date, time and timezone at which the dataset ATOM was last updated --> <updated>2012-03-31T13:45:03Z</updated> <!-- author (required), contact information for an individual or organisation responsible for the dataset ATOM --> <author> <name>Firstname Lastname</name> <email>doe@xyz.org</email> </author> <!-- link to spatial object type (required), the link shall refer to the INSPIRE Registry unless the data does not conform to any Data Specification in which case a link to a local definition of the Spatial Object Type shall be used instead. --> <link href="http://inspire-registry.jrc.ec.europa.eu/registers/FCD/items/412" rel="describedby" type="text/html" hreflang="en" title="title"/> <!-- downloadable file entry (at least one entry is required), there should be one entry for each format and CRS combination --> <entry> <!-- title for this dataset entry (required) --> <title>title for the dataset entry</title> <!-- updated (required), the date, time and timezone at which the dataset entry was last updated --> <updated>2012-03-31T13:45:03Z</updated> <!-- id to this dataset entry (required) --> <id>CCM21_WGS84_Lakes</id> <!-- link to dataset (required). Note that the type attribute must reflect one of the types listed in the openSearch descritor document --> <link rel="alternate" href="http://inspire-geoportal.ec.europa.eu/demos/ccm/files/CCM21_WGS84_Lakes.zip" type="application/x-filegdb" hreflang="en" length="34987" title="The dataset encoded as a dataset in WGS84 in zip format"/> <!-- NOTE: if you have multiple dataset, a description of the dataset structure shall be provided either in an atom 'content' element as free text, or in an external document. See example below--> <!-- <content>description of the dataset that has multiple physical files</content> <link rel="alternate" href="http://xyz.org/data/abc/waternetwork_description.html" type="text/html" title="Description of Water Network files"/> --> <!-- link to each file for dataset containing multiple datasets, only apply if there are multiple files in a dataset, one link for each physical file. --> <!-- <link rel="section" href="http://inspire-geoportal.ec.europa.eu/demos/ccm/files/CCM21_WGS84_Lakes1.zip" type="application/x-filegdb" hreflang="en" title="Water Network encoded as a GeoTiff – part 1" bbox="50.0 5.0 50.9 5.9" time="2012-06-01T13:00:00Z" /> <link rel="section" href="http://inspire-geoportal.ec.europa.eu/demos/ccm/files/CCM21_WGS84_Lakes2.zip" type="application/x-filegdb" hreflang="en" title="Water Network encoded as a GeoTiff – part 2" bbox="50.0 5.0 50.9 5.9" time="2012-06-01T13:00:00Z" /> --> <!-- CRS (required), refer to a known definition of a coordinate reference system --> <category term ="http://www.opengis.net/def/crs/EPSG/0/4258" label=" ETRS89"/> <!-- georss (optional), the bounding box of the dataset --> <georss:polygon>47.202 5.755 55.183 5.755 55.183 15.253 47.202 15.253 47.202 5.755</georss:polygon> </entry> <!-- add additional entry section if needed --> </feed>
- Descriptor de OpenSearch
<?xml version="1.0" encoding="UTF-8"?> <!--please referrence Technical Guidance for the implementation of INSPIRE Download Services (http://inspire.jrc.ec.europa.eu/documents/Network_Services/Technical_Guidance_Download_Services_v3.1.pdf) for detailed descriptions of each elements--> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:inspire_dls="http://inspire.ec.europa.eu/schemas/inspire_dls/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- shortname (required by the opensearch specification)--> <ShortName>a4iopensearch</ShortName> <!-- description (required by the opensearch specification)--> <Description>ArcGIS for INSPIRE OpenSearch Description</Description> <!-- name of the opensearch document (required), the name should match with the name of the actual file--> <Url type="application/opensearchdescription+xml" rel="self" template="opensearchdescriptiona1.xml"/> <!-- url template for general search queries required, do not modify the URL. The prefix URL will be replaced with what is defined in ArcCatalog for Predefined Download Service settings (online resource) when the service is created, the url may depend on web adaptor settings--> <Url type="text/html" rel="results" template="http://inspiresrv2:6080/arcgis/rest/services/a4imxd/MapServer/exts/InspirePredefinedDatasetDownload/openSearch?q={searchTerms}"/> <!-- url template for describe spatial dataset operation (required), the prefix URL will be replaced with what is defined in ArcCatalog for Predefined Download Service settings (online resource) when the service is created, the url may depend on web adaptor settings--> <Url type="application/atom+xml" rel="describedby" template="http://inspiresrv2:6080/arcgis/rest/services/a4imxd/MapServer/exts/InspirePredefinedDatasetDownload/openSearch?spatial_dataset_identifier_code={inspire_dls:spatial_dataset_identifier_code}&spatial_dataset_identifier_namespace={inspire_dls:spatial_dataset_identifier_namespace}&language={language}"/> <!-- NOTE: the following sections may need modifications --> <!-- url template for get spatial dataset operation (required). The prefix URL will be replaced with what is defined in ArcCatalog for Predefined Download Service settings (online resource) when the service is created, the url may depend on web adaptor settings. The following is an example for get spatial dataset operation for format type application/x-filegdb, if you have other format types, add additional url templates. --> <Url type="application/zip" rel="results" template="http://inspiresrv2:6080/arcgis/rest/services/a4imxd/MapServer/exts/InspirePredefinedDatasetDownload/openSearch?spatial_dataset_identifier_code={inspire_dls:spatial_dataset_identifier_code}&spatial_dataset_identifier_namespace={inspire_dls:spatial_dataset_identifier_namespace}&crs={inspire_dl:crs}&language={language}&type=application/x-filegdb"/> <!-- query element (required)--> <Query role="example" inspire_dls:spatial_dataset_identifier_namespace="http://www.esri.com/inspire/atom" inspire_dls:spatial_dataset_identifier_code="waternetwork" inspire_dls:crs="http://www.opengis.net/def/crs/EPSG/0/4326" language="en" title="a4i" count="1"/> <!-- at least language element required--> <Language>en</Language> </OpenSearchDescription>