Changeset 2833 for TI05-delivery/ows_framework/trunk
- Timestamp:
- 21/08/07 10:05:25 (12 years ago)
- Location:
- TI05-delivery/ows_framework/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_common/ows_common/wcs.py
r2592 r2833 9 9 """ 10 10 11 #NOTE, much of this is straight from WMS and needs to be overhauled. 11 #NOTE, much of this is straight from WMS and needs to be overhauled. TODO 12 12 13 13 … … 17 17 class WcsDatasetSummary(DatasetSummary): 18 18 """ 19 We don't know how WMS will map Layer attributes onto an extension of DatasetSummary20 so a pragmatic approach is taken here.21 22 @ivar CRSs23 @type CRSs: iterable of str24 @ivar styles: Style descriptors, default ['']25 @type styles: iterable of Style objects26 @ivar dimensions27 @type dimensions: dictionary mapping dimension names to Dimension objects28 @ivar attribution29 @type attribution: None or Attribution object30 @ivar authorityURLs31 @type authorityURLs: iterable of AuthorityUrl objects32 @ivar identifiers33 @type identifiers: iterable of Identifier objects34 @ivar dataURLs35 @type dataURLs: iterable of DataUrl objects36 @ivar featureListURLs37 @type featureListURLS: iterable of FeatureListURL objects38 @ivar minScaleDenominator39 @type minScaleDenominator: None or double40 @ivar maxScaleDenominator41 @type maxScaleDenominator: None or double42 43 19 """ 44 def __init__(self, CRSs=[], styles=[''], dimensions={}, attribution=None, authorityURLs=[], 45 description=None, dataURLs=[], featureListURLs=[], 46 minScaleDenominator=None, maxScaleDenominator=None, **kw): 20 def __init__(self, CRSs=[], description=None, formats=[],supportedCRSs=[],**kw): 47 21 super(WcsDatasetSummary, self).__init__(**kw) 48 22 49 23 self.CRSs = CRSs 50 self.styles = styles51 self.dimensions = dimensions52 self.attribution = attribution53 self.authorityURLs = authorityURLs54 24 self.description=description 55 self.dataURLs = dataURLs 56 self.featureListURLs = featureListURLs 57 self.minScaleDenominator = minScaleDenominator 58 self.maxScaleDenominator = maxScaleDenominator 25 self.formats=formats 26 self.supportedCRSs=supportedCRSs 59 27 60 61 class Style(object):62 """63 @ivar name64 @type name: str65 @ivar title66 @type title: str67 @ivar abstract68 @type abstract: None or str69 @ivar legendURLs70 @type legendURLS: iterable of LegendURL objests71 @ivar styleSheetURL72 @type styleSheetURL: None or FormattedURL object73 @ivar styleURL74 @type styleURL: None or FormattedURL object75 76 """77 def __init__(self, name, title, abstract=None, legendURLs=[], styleSheetURL=None,78 styleURL=None):79 self.name = name80 self.title = title81 self.abstract = abstract82 self.legendURLs = legendURLs83 self.styleSheetURL = styleSheetURL84 self.styleURL = styleURL85 28 86 29 class FormattedURL(object): … … 96 39 self.onlineResource = onlineResource 97 40 98 class LegendURL(FormattedURL):99 """100 @ivar width101 @type width: None or int102 @ivar height:103 @type height: None or int104 105 """106 def __init__(self, width, height, **kw):107 super(LegendURL, self).__init__(**kw)108 109 self.width = width110 self.height = height111 41 112 42 class Dimension(Domain): -
TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs.py
r2831 r2833 113 113 cvgAbstract=[feature.description.CONTENT] 114 114 bbox=c.dataset.getBoundingBox() #TODO, use the bounding box of the feature not the dataset. 115 crslist=['ndgcrs1', 'ndgcrs2'] #TODO, get these crs from the csml features 115 116 return WcsDatasetSummary(identifier=feature.id, 116 117 titles=cvgTitle, 117 118 boundingBoxes=[BoundingBox([bbox[0],bbox[1]], [bbox[2],bbox[3]], 118 crs='CRS:84')], dimensions=dims, description=cvgDescription,abstracts=cvgAbstract 119 crs='CRS:84')], description=cvgDescription,abstracts=cvgAbstract, formats=['application/cf-netcdf'], 120 supportedCRSs=crslist 119 121 ) 120 122 -
TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ows/wcs_capabilities.kid
r2831 r2833 59 59 <ows:Keywords> 60 60 </ows:Keywords> 61 62 61 <ows:WGS84BoundingBox py:for="bb in ds.boundingBoxes"> 63 62 <ows:LowerCorner>${bb.lowerCorner[0]} ${bb.lowerCorner[1]}</ows:LowerCorner> 64 63 <ows:UpperCorner>${bb.upperCorner[0]} ${bb.upperCorner[1]}</ows:UpperCorner> 65 </ows:WGS84BoundingBox> 64 </ows:WGS84BoundingBox> 65 <SupportedCRS py:for="crs in ds.supportedCRSs" 66 py:content="crs"/> 67 <SupportedFormat py:for="format in ds.formats" 68 py:content="format"/> 66 69 <CoverageSummary py:for="ds1 in ds.datasetSummaries" py:replace="coverageSummary(ds1)"/> 67 70 </CoverageSummary> -
TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/wcs_getCoverageResponse.kid
r2653 r2833 8 8 <ows:Abstract>Created from getCoverage request to NDG WCS</ows:Abstract> 9 9 <Identifier>${c.fileID}</Identifier> 10 <Reference >xlink:href="${c.hyperlink}" xlink:role="urn:ogc:def:role:WCS:1.1:metadata"</Reference>10 <Reference xlink:href="${c.hyperlink}" xlink:role="urn:ogc:def:role:WCS:1.1:metadata"/> 11 11 </Coverage> 12 12 </Coverages>
Note: See TracChangeset
for help on using the changeset viewer.