Changeset 3278


Ignore:
Timestamp:
28/01/08 14:10:55 (12 years ago)
Author:
mkochan
Message:
 
Location:
DPPP/kml/csml2kml/python/pylonsstack/pylonsstack/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DPPP/kml/csml2kml/python/pylonsstack/pylonsstack/controllers/csmlGrapher.py

    r3276 r3278  
    1717log = logging.getLogger(__name__) 
    1818 
    19 # [TODO] . Remove plotting via temp file. 
    20 #        . Add correct labeling of time axis 
     19# [TODO] . Add correct labeling of time axis 
    2120#        . Comments 
    2221#        . Add security (especially checking of input parameters). 
     22#        . Add configurable URL for the data source web service (preferably explicitly on localhost) 
    2323class CsmlgrapherController(BaseController): 
    2424 
    2525    def plot(self): 
     26        ''' 
     27        Handler for plotting a specific PointSeries feature (feature_id) of a specific station (station_id). 
     28        Retrieves the data from a web service, which should preferably run on the same machine.  
    2629 
     30        Request parameters:    station_id    Unique identifier of a requested station. 
     31                               feature_id    Unique identifier of a requested CSML PointSeries feature. 
     32                  
     33        Response:              MIME-type: image/png; graph of the time series for the CSML PointSeries feature 
     34        ''' 
    2735        def _plot_feature(feature): 
    2836            ''' 
     
    125133                    pass  # tempFile undefined -- no need to close 
    126134        else: 
    127             raise HTTPNotFound('Feature not found (wrong feature ID given)') 
     135            raise HTTPNotFound('Feature not found') 
  • DPPP/kml/csml2kml/python/pylonsstack/pylonsstack/controllers/dummyGeoServer.py

    r3273 r3278  
    66log = logging.getLogger(__name__) 
    77 
     8# [TODO] . Add security (especially checking of input parameters). 
    89class DummygeoserverController(BaseController): 
    910    ''' 
    1011    A mock up GeoServer that we use simply to make sure we are getting the CSML from a URL. 
    1112    The action names and parameters format is completely made up and for temporary development purposes only. 
    12     [NOTE] At the moment, this uses CSML. But GeoServer returns GML. Possible solutions: 
    13            . make GeoServer return GML (Arif) -- looks like way to go 
     13    [NOTE] Concerning GeoServer definition of the term "feature". In GeoServer, any physical "thing" is 
     14           a feature. Therefore a station is *also* a GeoServer feature. In the next iteration, 
     15           dummyGeoServer will only have a feature_id parameter, and this will return either 
     16           whole station CSML or csmlfeature CSML. 
    1417    ''' 
    15  
    16     def index(self): 
    17         # Return a rendered template 
    18         #   return render('/some/template.mako') 
    19         # or, Return a response 
    20         return 'Hello World' 
    2118 
    2219    def GetStationCSMLFeatures(self): 
Note: See TracChangeset for help on using the changeset viewer.