Changeset 4740
- Timestamp:
- 05/01/09 14:46:33 (12 years ago)
- Location:
- cows/trunk/cows/pylons/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cows/trunk/cows/pylons/templates/wcs_capabilities_1_0_0.xml
r4695 r4740 13 13 <!--! TODO: This currently looks like WMS, change to WCS based on old kid template --> 14 14 15 <WCS_Capabilities xmlns:py="http://genshi.edgewall.org/" xmlns :gml="http://www.opengis.net/gml"15 <WCS_Capabilities xmlns:py="http://genshi.edgewall.org/" xmlns="http://www.opengis.net/wcs" xmlns:gml="http://www.opengis.net/gml" 16 16 version="1.0.0"> 17 17 … … 59 59 60 60 61 <Service py:with="sm=c.capabilities; si=c.capabilities.serviceIdentification"> 62 < Name>OGC:WMS</Name>63 <Title py:content="si.titles[0]"/>64 < Abstract py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/>65 < KeywordList>66 < Keyword py:for="kw in si.keywords"61 <Service py:with="sm=c.capabilities; si=c.capabilities.serviceIdentification"> 62 <description py:if="len(si.abstracts)>0" py:content="si.abstracts[0]"/> 63 <name>OGC:WMS</name> 64 <label py:content="si.titles[0]"/> 65 <keywords py:if="len(si.keywords) is not 0"> 66 <keyword py:for="kw in si.keywords" 67 67 py:content="kw"/> 68 </KeywordList> 69 <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" 70 xlink:href="${h.url_for(qualified=True, action='index')}?"/> 68 </keywords> 69 70 <responsibleParty py:if="sm.serviceProvider is not None" 71 py:with="rp=sm.serviceProvider.serviceContact"> 72 <individualName py:if="rp is not None" py:content="rp.individualName"/> 73 <organisationName py:content="sm.serviceProvider.providerName"/> 74 <positionName py:content="rp.positionName"/> 75 76 <py:with vars="cn=rp.contactInfo" py:if="cn is not None"> 77 <contactInfo> 78 <phone> 79 <voice py:if="cn.phone is not None" 80 py:content="cn.phone.voice"/> 81 <facsimile py:if="cn.phone is not None" 82 py:content="cn.phone.facsimile"/> 83 </phone> 84 <address py:if="cn.address is not None"> 85 <deliveryPoint><py:for each="d in cn.address.deliveryPoints">${d}</py:for></deliveryPoint> 86 <city py:content="cn.address.city"/> 87 <administrativeArea py:content="cn.address.administrativeArea"/> 88 <postalCode py:content="cn.address.postalCode"/> 89 <country py:content="cn.address.country"/> 90 <electronicMailAddress py:if="cn.address is not None" 91 py:content="cn.address.electronicMailAddress"/> 92 </address> 93 </contactInfo> 94 </py:with> 95 </responsibleParty> 71 96 72 <ContactInformation py:if="sm.serviceProvider is not None" 73 py:with="rp=sm.serviceProvider.serviceContact"> 74 <ContactPersonPrimary> 75 <ContactPerson py:if="rp is not None" py:content="rp.individualName"/> 76 <ContactOrganization py:content="sm.serviceProvider.providerName"/> 77 </ContactPersonPrimary> 78 <ContactPosition py:content="rp.positionName"/> 79 80 <py:with vars="cn=rp.contactInfo" py:if="cn is not None"> 81 <ContactAddress py:if="cn.address is not None"> 82 <AddressType>postal</AddressType> 83 <Address> 84 <py:for each="d in cn.address.deliveryPoints">${d}</py:for> 85 </Address> 86 <City py:content="cn.address.city"/> 87 <StateOrProvince py:content="cn.address.administrativeArea"/> 88 <PostCode py:content="cn.address.postalCode"/> 89 <Country py:content="cn.address.country"/> 90 </ContactAddress> 91 <ContactVoiceTelephone py:if="cn.phone is not None" 92 py:content="cn.phone.voice"/> 93 <ContactFacsimileTelephone py:if="cn.phone is not None" 94 py:content="cn.phone.facsimile"/> 95 <ContactElectronicMailAddress py:if="cn.address is not None" 96 py:content="cn.address.electronicMailAddress"/> 97 </py:with> 98 </ContactInformation> 99 100 <Fees py:content="si.fees"/> 101 <AccessConstraints py:content="si.accessConstraints"/> 97 <fees py:content="si.fees"/> 98 <accessConstraints py:content="si.accessConstraints"/> 102 99 </Service> 103 100 … … 105 102 <Capability py:with="sm=c.capabilities; om=sm.operationsMetadata"> 106 103 <py:if test="om is not None"> 107 <?python ops = ['GetCapabilities', ' GetMap', 'GetFeatureInfo'] ?>104 <?python ops = ['GetCapabilities', 'DescribeCoverage', 'GetCoverage'] ?> 108 105 <Request> 109 106 <py:for each="opName in ops" py:if="opName in om.operationDict.keys()"> -
cows/trunk/cows/pylons/templates/wcs_describecoverage_1_0_0.xml
r4695 r4740 11 11 ?> 12 12 13 <!--! TODO: This currently looks like WMS, change to WCS based on old kid template --> 14 <CoverageDescriptions xmlns:py="http://genshi.edgewall.org/" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" version="1.0.0"> 15 <CoverageDescription py:for="cd in c.descriptions"> 16 <ows:Title py:if="cd.titles is not None" py:content="cd.titles"> 17 </ows:Title> 18 </CoverageDescription> 19 </CoverageDescriptions> 13 <CoverageDescription xmlns:py="http://genshi.edgewall.org/" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" version="1.0.0"> 14 <CoverageOffering py:for="cd in c.descriptions"> 15 <description py:if="cd.abstracts is not None" py:content="cd.abstracts"/> 16 <name py:content="cd.identifier"/> 17 <label py:if="cd.titles is not None" py:content="cd.titles"/> 18 <Keywords py:if = "cd.keywords is not None" > 19 <Keyword py:for="key in cd.keywords" py:content="key" /> 20 </Keywords> 21 <lonLatEnvelope py:for="bb in cd.boundingBoxes"> 22 <gml:pos>${bb.lowerCorner[0]} ${bb.lowerCorner[1]}</gml:pos> 23 <gml:pos>${bb.upperCorner[0]} ${bb.upperCorner[1]}</gml:pos> 24 </lonLatEnvelope> 25 <domainSet> 26 <spatialDomain> 27 <!--! TO DO - nD crs --> 28 <gml:Envelope py:for="bb in cd.boundingBoxes" srsName="${bb.crs}"> 29 <gml:pos>${bb.lowerCorner[0]} ${bb.lowerCorner[1]}</gml:pos> 30 <gml:pos>${bb.upperCorner[0]} ${bb.upperCorner[1]}</gml:pos> 31 </gml:Envelope> 32 </spatialDomain> 33 <temporalDomain> 34 <timePeriod> 35 <beginPosition>${cd.timeLimits[0]}</beginPosition> 36 <endPosition>${cd.timeLimits[1]}</endPosition> 37 </timePeriod> 38 </temporalDomain> 39 </domainSet> 40 <rangeSet> 41 <RangeSet> 42 <name>rangeset name</name> 43 <label>rangeset label</label> 44 </RangeSet> 45 </rangeSet> 46 <supportedCRSs> 47 <requestCRSs>${cd.crs}</requestCRSs> 48 <responseCRSs>${cd.crs}</responseCRSs> 49 </supportedCRSs> 50 <supportedFormats> 51 <formats>cf-netcdf</formats> 52 </supportedFormats> 53 <supportedInterpolations> 54 <interpolationMethod>none</interpolationMethod> 55 </supportedInterpolations> 56 </CoverageOffering> 57 </CoverageDescription>
Note: See TracChangeset
for help on using the changeset viewer.