Changes between Version 22 and Version 23 of NERCPortals


Ignore:
Timestamp:
26/03/08 14:44:36 (11 years ago)
Author:
mkochan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NERCPortals

    v22 v23  
    111111 
    112112Assuming that the pylon is served at URL ''{{{http://server:port}}}'', the web service can be used in two ways: 
    113  - To provide a listing of CSML features available for a given station identified by its name (e.g. "{{{FAIR ISLE}}}", as opposed to the station ID, e.g. "{{{midas.station.3}}}"): 
     113 - Using the {{{list}}} sub-service to provide a listing of CSML features available for a given station: 
    114114{{{ 
    115 http://server:port/csmlGrapher/list?station_name=FAIR%20ISLE 
     115http://server:port/csmlGrapher/list?station_name=STATION%20NAME 
    116116}}} 
    117  - The {{{plot}}} function... 
     117   Note that the station is identified by its name (e.g. "{{{FAIR ISLE}}}", rather than station ID (e.g. "{{{midas.station.3}}}"); this is due to how GeoServer identifies the stations. 
     118 - Using the {{{plot}}} sub-service to plot a specific CSML feature of a specific station: 
     119{{{ 
     120http://server:port/csmlGrapher/list?station_name=STATION%20NAME&feature_id=feature_id 
     121}}} 
     122  The HTML produced by csmlGrapher's {{{list}}} sub-service produces links containing the corresponding {{{plot}}} sub-service URLs. 
    118123 
    119 The web service can return the following HTTP errors: 
    120  - x 
    121  - y 
    122  - z 
     124== Development notes == 
    123125 
    124 == Code notes == 
     126It is recommended that for future/ongoing development purposes, a "development egg" is created, by running: 
     127{{{ 
     128python setup.py develop --install-dir <install_dir_name> 
     129}}} 
     130using the {{{setup.py}}} files in the root directories of the {{{csml2kml}}} and {{{csml2kmlpylon}}} packages. The egg-links will get created in {{{<install_dir_name>}}} directory; the {{{$PYTHONPATH}}} environment variable will have to contain this directory. 
    125131 
    126 === Code notes towards {{{csml2kml}}}  === 
     132=== Development notes for {{{csml2kml}}}  === 
    127133 
    128134The egg's {{{csml2kml}}} directory contains all Python modules, and the following 4 sub-directories: 
     
    132138 - {{{output}}} - empty after installation, optionally usable for output of scripts and tests 
    133139 
    134 The modules  
     140The modules... 
    135141 
    136142There is a naming convention that wrappers of entities which normally exist as XML elements are prefixed with XML spacename. For instance, a class WMSLayer is a wrapper for an element ''<wms:Layer>''. Wrappers for KML elements (in {{{kml}}} namespace), which are used for output, contain a {{{build()}}} method, which builds each instance into an {{{ElementTree.Element}}} object. On the contrary, wrappers for elements in {{{wms}}} and {{{np}}} namespaces contain {{{parseXML()}}} method, as they are used for input. 
    137143 
    138 === Code notes towards {{{csml2kmlpylon}}}  === 
     144=== Development notes for {{{csml2kmlpylon}}}  === 
    139145