source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/wms_service_metadata.kid @ 2493

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/wms_service_metadata.kid@2493
Revision 2493, 1.8 KB checked in by spascoe, 12 years ago (diff)

Implemented all metadata fields in WMS_Capabilities/Service.

Line 
1<?xml version="1.0"?>
2<?python
3"""Convert a OWS common 1.1.0 compliant ServiceMetadata XML tree into
4WMS 1.3.0 compliant wms:Service XML.
5
6@param ows_c: A ows:Capabilities XML tree node containing
7    ServiceIdentification and ServiceProvider children.
8"""
9
10from ows_server.lib.wms_capabilities import WmsOwsAdapter
11?>
12<WMS_Capabilities version="1.3.0"
13                  xmlns="http://www.opengis.net/wms"
14                  xmlns:py="http://purl.org/kid/ns#"
15                  xmlns:xlink="http://www.w3.org/1999/xlink"
16                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17                  xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_2_0.xsd">
18
19<?python m = WmsOwsAdapter(ows_c) ?>
20
21  <Service>
22    <Name>WMS</Name>
23    <Title py:if="m.title" py:content="m.title"/>
24    <Abstract py:for="a in m.abstracts" py:content="a"/>
25    <KeywordList py:if="m.keywords">
26      <Keyword py:for="k in m.keywords" py:content="k"/>
27    </KeywordList>
28    <OnlineResource py:if="m.onlineResource"
29                    xlink:type="simple"
30                    xlink:href="${m.onlineResource}"/>
31    <ContactInformation>
32      <?python ci = m.contactInformation ?>
33      <ContactPersonPrimary>
34        <ContactPerson py:content="ci['person']"/>
35        <ContactOrganization py:content="ci['organization']"/>
36      </ContactPersonPrimary>
37      <ContactAddress>
38        <Address py:for="a in ci['address']" py:content="a"/>
39        <City py:content="ci['city']"/>
40        <StateOrProvince py:content="ci['state_or_province']"/>
41        <PostCode py:content="ci['postcode']"/>
42        <Country py:content="ci['country']"/>
43      </ContactAddress>
44      <ContactVoiceTelephone py:content="ci['telephone']"/>
45      <ContactFacsimile py:content="ci['fax']"/>
46      <ContactElectronicMailAddress py:content="ci['email']"/>
47    </ContactInformation>
48    <Fees py:content="m.fees"/>
49    <AccessConstraints py:content="m.accessConstraints"/>
50  </Service>
51</WMS_Capabilities>
Note: See TracBrowser for help on using the repository browser.