Ignore:
Timestamp:
26/09/07 15:32:30 (12 years ago)
Author:
domlowe
Message:

improved crs support in wcs

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs.py

    r2897 r2905  
    3535from ows_server.models.wcs_CoverageDescription import CoverageDescription 
    3636 
    37 import pylons 
     37 
     38import logging 
     39logger = logging.getLogger('ows_server.controllers.csml_wcs') 
     40 
    3841 
    3942try: 
     
    5760        } 
    5861 
     62    #def __call__(self, environ, start_response): 
     63            #return super(CsmlWcsController, self).__call__(environ, start_response) 
    5964 
    6065 
     
    153158            feature = self.features[f] 
    154159            csmlbbox=feature.getCSMLBoundingBox() 
    155             if csmlbbox is None: #use the bounding box of the feature not the dataset. 
     160            if csmlbbox is None: #use the bounding box of the dataset. 
    156161                bbox=dsbbox   
    157162                timeLimits=dstimes 
     
    164169            CoverageDescriptions.append(cd) 
    165170        return CoverageDescriptions 
    166  
    167  
    168  
    169171 
    170172    @operation 
     
    243245    # Dimension parameters Time, Elevation, etc. are handled separately 
    244246    def GetCoverage(self, uri, version, format, identifier, boundingbox, timesequence, store=False, status=False): 
    245         # Retrieve dataset and selected feature             
     247        # Retrieve dataset and selected feature           
    246248        try: 
    247249            rstatus,dataset=interface.GetParsedCSML(uri)                 
     
    260262            lat=feature.getLatitudeAxis() 
    261263            t=feature.getTimeAxis() 
     264            print '%s %s %s'%(lon,lat,t) 
    262265            if None in [lon, lat, time]: 
    263266                #TODO need to return a suitable wcs error. 
     
    288291     
    289292            # Extract via CSML.subsetToGridSeries() 
     293             
     294            print 'SEL %s'%sel 
    290295            if store: 
    291296                #need to farm off to WPS 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/base.py

    r2878 r2905  
    3232class BaseController(WSGIController): 
    3333     
    34     def __call__(self, environ, start_response): 
     34    def __call__(self, environ, start_response):         
    3535        # Insert any code to be run per request here. The Routes match 
    3636        # is under environ['pylons.routes_dict'] should you want to check 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/wcs_DescribeCoverageResponse.kid

    r2864 r2905  
    1818        <Domain> 
    1919            <SpatialDomain> 
    20                 <ows:WGS84BoundingBox py:for="bb in cd.boundingBoxes" crs="${bb.crs}"> 
     20                <ows:BoundingBox py:for="bb in cd.boundingBoxes" crs="${bb.crs}"> 
    2121                    <ows:LowerCorner>${bb.lowerCorner[0]}  ${bb.lowerCorner[1]}</ows:LowerCorner> 
    2222                    <ows:UpperCorner>${bb.upperCorner[0]}  ${bb.upperCorner[1]}</ows:UpperCorner> 
    23                 </ows:WGS84BoundingBox> 
    24                 <GridCRS></GridCRS> 
     23                </ows:BoundingBox> 
     24                <GridCRS> 
     25                    <GridBaseCRS></GridBaseCRS> 
     26                    <GridType></GridType> 
     27                    <GridOrigin></GridOrigin> 
     28                    <GridOffsets></GridOffsets> 
     29                    <GridCS></GridCS> 
     30                </GridCRS> 
    2531            </SpatialDomain> 
    2632            <TemporalDomain> 
Note: See TracChangeset for help on using the changeset viewer.