Changeset 2825
- Timestamp:
- 17/08/07 14:58:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ows/wcs_capabilities.kid
r2729 r2825 30 30 31 31 <!--! Named template definitions --> 32 < Operation py:def="opXML(op)" name="${op.name}" >32 <owcs:Operation py:def="opXML(op)" name="${op.name}" > 33 33 <?python formats = op.parameters.get('Format') ?> 34 34 <Format py:if="formats is not None" 35 35 py:for="f in formats.possibleValues.allowedValues" 36 36 py:content="f"/> 37 <DCPType> 38 <HTTP> 39 <Get py:if="op.get is not None"> 40 <OnlineResource xlink:type="simple" xlink:href="${op.get.href}"/> 41 </Get> 42 <Post py:if="op.post is not None"> 43 <OnlineResource xlink:type="simple" xlink:href="${op.post.href}"/> 44 </Post> 45 </HTTP> 46 </DCPType> 47 </Operation> 37 <owcs:DCP> 38 <owcs:HTTP> 39 <owcs:Get py:if="op.get is not None" xlink:type="simple" xlink:href="${op.get.href}"> 40 </owcs:Get> 41 <owcs:Post py:if="op.post is not None" xlink:type="simple" xlink:href="${op.post.href}"> 42 </owcs:Post> 43 </owcs:HTTP> 44 </owcs:DCP> 45 </owcs:Operation> 48 46 49 47 … … 74 72 si = c.service_metadata.serviceIdentification 75 73 ?> 76 < Service>77 < Name>WCS</Name>78 < Title py:content="si.titles[0]"/>79 < Abstract py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/>80 < KeywordList>81 < Keyword py:for="kw in si.keywords"74 <owcs:ServiceIdentification> 75 <ows:Name>WCS</ows:Name> 76 <ows:Title py:content="si.titles[0]"/> 77 <ows:Abstract py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/> 78 <ows:Keywords> 79 <ows:Keyword py:for="kw in si.keywords" 82 80 py:content="kw"/> 83 </KeywordList> 84 <!--! <OnlineResource xlink:type="simple" xlink:href="${h.url_for()}"/> --> 85 <ContactInformation py:if="sm.serviceProvider is not None"> 81 </ows:Keywords> 82 <owcs:ServiceType>OCG WCS</owcs:ServiceType> 83 <owcs:ServiceTypeVersion>1.1.0</owcs:ServiceTypeVersion> 84 <owcs:Fees py:content="si.fees"/> 85 <owcs:AccessConstraints py:content="si.fees"/> 86 <AccessConstraints py:content="si.accessConstraints"/> 87 </owcs:ServiceIdentification> 88 89 <ows:ServiceProvider py:if="sm.serviceProvider is not None"> 86 90 <?python rp = sm.serviceProvider.serviceContact ?> 87 <ContactPersonPrimary> 88 <ContactPerson py:if="rp is not None" py:content="rp.individualName"/> 89 <ContactOrganisation py:content="sm.serviceProvider.providerName"/> 90 </ContactPersonPrimary> 91 <ContactPosition py:content="rp.positionName"/> 91 <ows:ProviderName py:content="sm.serviceProvider.providerName"/> 92 <ows:ServiceContact> 93 <ows:IndividualName py:if="rp is not None" py:content="rp.individualName"/> 94 <ows:PositionName py:content="rp.positionName"/> 95 <?python cn = rp.contactInfo ?> 96 <div py:if="cn is not None" py:strip="1"> 97 <ows:ContactInfo> 98 <ows:Phone> 99 <ows:Voice py:if="cn.phone is not None" 100 py:content="cn.phone.voice"/> 101 <ows:Facsimile py:if="cn.phone is not None" 102 py:content="cn.phone.facsimile"/> 103 </ows:Phone> 104 <ows:Address py:if="cn.address is not None"> 105 <ows:DeliveryPoint> 106 <span py:for="d in cn.address.deliveryPoints" py:replace="d"/> 107 </ows:DeliveryPoint> 108 <ows:City py:content="cn.address.city"/> 109 <ows:AdministrativeArea py:content="cn.address.administrativeArea"/> 110 <ows:PostalCode py:content="cn.address.postalCode"/> 111 <ows:Country py:content="cn.address.country"/> 112 <ows:ElectronicMailAddress py:if="cn.address is not None" 113 py:content="cn.address.electronicMailAddress"/> 114 </ows:Address> 115 </ows:ContactInfo> 116 </div> 117 </ows:ServiceContact> 92 118 93 <?python cn = rp.contactInfo ?> 94 <div py:if="cn is not None" py:strip="1"> 95 <ContactAddress py:if="cn.address is not None"> 96 <AddressType>postal</AddressType> 97 <Address> 98 <span py:for="d in cn.address.deliveryPoints" py:replace="d"/> 99 </Address> 100 <City py:content="cn.address.city"/> 101 <StateOrProvince py:content="cn.address.administrativeArea"/> 102 <PostCode py:content="cn.address.postalCode"/> 103 <Country py:content="cn.address.country"/> 104 </ContactAddress> 105 <ContactVoiceTelephone py:if="cn.phone is not None" 106 py:content="cn.phone.voice"/> 107 <ContactFacsimileTelephone py:if="cn.phone is not None" 108 py:content="cn.phone.facsimile"/> 109 <ContactElectronicMailAddress py:if="cn.address is not None" 110 py:content="cn.address.electronicMailAddress"/> 111 </div> 112 </ContactInformation> 113 <Fees py:content="si.fees"/> 114 <AccessConstraints py:content="si.accessConstraints"/> 119 120 121 </ows:ServiceProvider> 115 122 <!--! These fields are represented in ows_common as service constraints --> 116 123 <?python om = sm.operationsMetadata ?> … … 121 128 <MinWidth py:if="'MinimumWidth' in om.constraints" 122 129 py:content="om.constraints['MinimumWidth'].possibleValues.allowedValues[0]"/> 123 <Capability> 124 <Request> 130 131 132 <owcs:OperationsMetadata> 125 133 <ops py:for="opName, op in om.operationDict.items()" 126 134 py:content="operation(opName, op)" 127 135 py:strip="1"/> 128 </Request>129 136 <?python exceptions = op.parameters.get('ExceptionFormat') ?> 130 137 <Exception py:if="exceptions is not None"> … … 133 140 </Exception> 134 141 <!--! <Layer py:replace="layer(sm.contents.datasetSummaries[0])"/> --> 135 </ Capability>136 </Service>137 <Content >142 </owcs:OperationsMetadata> 143 144 <Contents> 138 145 <CoverageSummary py:replace="coverageSummary(sm.contents.datasetSummaries[0])"/> 139 </Content >146 </Contents> 140 147 </Capabilities>
Note: See TracChangeset
for help on using the changeset viewer.