maproxy可以充当Inspire View服务。视图服务是具有扩展功能文档的WMS 1.3.0。
1.8.1 新版功能.
视图服务可以链接到现有的元数据文档,也可以嵌入服务和层元数据。这两个选项在技术指导文件中描述为场景1和场景2。
场景1使用到现有Inspire Discovery Services(CSW)的链接。您可以链接到服务和每个层的元数据文档。
对于服务,您需要使用 inspire_md
内块 services.wms
具有 type: linked
. 例如::
services:
wms:
md:
title: Example INSPIRE View Service
inspire_md:
type: linked
metadata_url:
media_type: application/vnd.iso.19139+xml
url: http://example.org/csw/doc
languages:
default: eng
View Services规范使用WMS 1.3.0扩展的层元数据功能。参考 layers metadata documentation .
例如::
layers:
- name: example_layer
title: Example Layer
md:
metadata:
- url: http://example.org/csw/layerdoc
type: ISO19115:2003
format: text/xml
场景2将元数据直接嵌入到功能文档中。一些元数据元素被映射到WMS功能中的等效元素。资源标题设置为普通 title 例如,选项。其他元素需要在 inspire_md
用块 type: embedded
.
下面是一个完整的例子:
services:
wms:
md:
title: Example INSPIRE View Service
abstract: This is an example service with embedded INSPIRE metadata.
online_resource: http://example.org/
contact:
person: Your Name Here
position: Technical Director
organization: Acme Inc.
address: Fakestreet 123
city: Somewhere
postcode: 12345
country: Germany
phone: +49(0)000-000000-0
fax: +49(0)000-000000-0
email: info@example.org
access_constraints: constraints
fees: 'None'
keyword_list:
- vocabulary: GEMET
keywords: [Orthoimagery]
inspire_md:
type: embedded
resource_locators:
- url: http://example.org/metadata
media_type: application/vnd.iso.19139+xml
temporal_reference:
date_of_creation: 2015-05-01
metadata_points_of_contact:
- organisation_name: Acme Inc.
email: acme@example.org
conformities:
- title:
COMMISSION REGULATION (EU) No 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards interoperability of spatial data sets and services
date_of_publication: 2010-12-08
uris:
- OJ:L:2010:323:0011:0102:EN:PDF
resource_locators:
- url: http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2010:323:0011:0102:EN:PDF
media_type: application/pdf
degree: notEvaluated
mandatory_keywords:
- infoMapAccessService
- humanGeographicViewer
keywords:
- title: GEMET - INSPIRE themes
date_of_last_revision: 2008-06-01
keyword_value: Orthoimagery
metadata_date: 2015-07-23
metadata_url:
media_type: application/vnd.iso.19139+xml
url: http://example.org/csw/doc
你可以把所有的日期都表示为 date_of_creation
, date_of_publication
或 date_of_last_revision
.
View Services规范使用WMS 1.3.0扩展的层元数据功能。参考 layers metadata documentation 所有可用选项。
例如::
layers:
- name: example_layer
title: Example Layer
legendurl: http://example.org/example_legend.png
md:
abstract: Some abstract
keyword_list:
- vocabulary: GEMET
keywords: [Orthoimagery]
metadata:
- url: http://example.org/csw/layerdoc
type: ISO19115:2003
format: text/xml
identifier:
- url: http://www.example.org
name: example.org
value: "http://www.example.org#cf3c8572-601f-4f47-a922-6c67d388d220"
视图服务总是需要指示层名称、摘要、地图标签等的语言。您只能配置一种语言,因为maproxy不支持多语言配置。您需要将默认语言设置为 ISO 639-2/alpha-3 代码:
inspire_md:
languages:
default: eng
....