Changes between Version 2 and Version 3 of OwsFramework


Ignore:
Timestamp:
01/05/07 16:25:12 (12 years ago)
Author:
spascoe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OwsFramework

    v2 v3  
    2323[[Image(Logical Model.PNG, width=100%)]] 
    2424 
     25== Possible URL scheme == 
     26 
     27{{{http://<service-base>/<data-granule-path>/wms}}}: A WMS service for a data granule. 
     28 
     29{{{http://<service-base>/<data-granule-path>/wps}}}: A WPS exposing affordances on the data granule. 
     30 
     31{{{http://<service-base>/<data-granule-path>/<custom-action>}}}: Any required CSML-API functionality that can't easily be encapsulated in an OWS. 
     32 
     33This might translate into Routes calls like: 
     34 
     35{{{ 
     36#!python 
     37 
     38m.connect(':dg_path/wms', controller='wms') 
     39m.connect(':dg_path/wps', controller='wps') 
     40m.connect(':dg_path/:action', controller='customActions') 
     41 
     42}}} 
     43  
     44 
     45 
    2546== Sample pseudo-code == 
    2647 
     
    3253from myservice.lib.base import * 
    3354from ows_framework import OWSController 
     55from ows_csml import csmlStore 
    3456 
    3557class WMSController(OWSController): 
     
    3961 
    4062    """ 
    41     def GetCapabilities(self): 
     63    def GetCapabilities(self, dg_path): 
    4264        """GetCapabilities Operation. 
    4365 
    4466        OWSController automatically dispatches requests to the method 
    45         with the same name as the REQUEST parameter. 
     67        with the same name as the REQUEST parameter.  The dg_path parameter 
     68        is available due to it's occurance in the Routes configuration. 
    4669 
    4770        """ 
     71 
     72        # Get the CSML-API dataset object according to the dg_path argument. 
     73        # Some sort of CSML repository object is envisaged. 
     74        dataset = csmlStore.getDataset(dg_path) 
     75         
    4876        # Populate self.capabilities according to service-specific features. 
    4977        self.serviceMetadata.serviceProvider.set(individualName='Bob', 
     
    5381        # ... etc. interface TBD. 
    5482 
    55         # Get object(s) modelling the WMS service information 
     83        # Get object(s) modelling the WMS service information using the 
     84        # CSML dataset variable. 
    5685        # TBD. 
    5786 
     
    78107}}} 
    79108         
     109