Changes between Initial Version and Version 1 of BluePrintGISLayerClass


Ignore:
Timestamp:
01/04/09 22:36:12 (16 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintGISLayerClass

    v1 v1  
     1The GIS module may benefit from writing a LAYER class.[[BR]]
     2Layer Types would extend this base class.
     3
     4Each Layer Type would be a single Table & hence could use the standard RESTlike controller.[[BR]]
     5This should ease maintenance compared to the [wiki:DeveloperGuidelinesGIS current process].
     6
     7Have the Map Service Catalogue have a tab per Type(*).[[BR]]
     8Each has its own self-processing SQLFORM (generated by T2)[[BR]]
     9(This would make it like S2, which works well)
     10
     11It should make us friendlier to non-JavaScript browsers (such as Mobile devices), since currently we rely on gis_layers.js to show us only relevant fields. (An alternative use for this script would be to pull in new SQLFORM object via ?format=plain instead of adjusting fields displayed/hidden).
     12
     13This gives us better control of the display order for Layers & better modularity of Layer-processing JS code (1 file per layer type).
     14
     15*: Alternatives could be collapsible sections (like appadmin) or submenus on left-hand navigation.
     16
     17 * [http://jqueryfordesigners.com/jquery-tabs/ JQuery-Tabs]: "if the markup is well designed, it will automatically degrade nicely without JavaScript enabled"
     18---
     19Objects contain both data and functionality together.[[BR]]
     20A Class in essence defines a new data type.[[BR]]
     21 => The Class is not the Controller alone, but the Resource (including Controller)[[BR]]
     22 => Each Resource type should extend a base Resource (which extends...?)[[BR]]
     23Currently our resources are defined in the model & hence of type gluon.sql.SQLTable (inc SQLFields)
     24 * http://openbookproject.net/thinkcs/python/english2e/ch13.xhtml
     25 * http://diveintopython.org/object_oriented_framework/defining_classes.html
     26 * http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm
     27----
     28NB A similar solution probably applies for 'PERSON' as well.
     29----
     30[wiki:BluePrintGeographicInformationSystems GIS BluePrints]