Code Week #3
Naveen Panwar edited this page Jun 7, 2014
·
8 revisions
Weekly Report (1st June to 7th June) -
Aim - Prepare the technical design pipeline for PostGIS view module.
Things, I have done this week
- Understood the current implementation of geometric field display in Cartaro.
-
Available pipeline -
- PostGIS (To store the raw geometric data)
- Geo-Server (To prepare geometric layer[WMS])
- OpenLayers (To display WMS layer)
-
Proposed pipeline -
- PostGIS
- View Module - Build the spatial query, execute the query, get the data and pass it to OpenLayers using handler.
- OpenLayers
-
Available pipeline -
Technical Design for Module (folder structure and class description) -
-
postgis/ -
- postgis.openlayers.inc - Provides hooks for integration with OpenLayers.
-
postgis/views/ -
- postgis.views.inc - Hooks for views integration. A class that contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.
- postgis_views_handler_filter_geometry.inc - Provide filter for geo-spatial data.
-
postgis/views/handlers/ -
- Implement all handlers which are needed. like: sort, field, argument proximity, filter etc.
-
Available filter -
- 'ST_Contains', 'ST_Intersects', 'ST_Disjoint'
-
Plugin -
- /plugins/geoserver/layer_types/geoserver_layer_type_postgis_field.inc - GeoServer layer type for PostGIS fields. [Contain select query]
Things to do next week
- Working on relationship plugin.
- Understand how exactly view module query on Postgres DB and pass the result to OpenLayers.
Reference Modules/Files -
- Geofield - https://drupal.org/project/geofield
- geofield.views.inc
- geofield.openlayers.inc
- /handlers/geofield_handler_filter.inc
- /handlers/geofield_handler_argument_proximity.inc
- View - https://drupal.org/project/views
- view.inc
Am I blocked on anything ?
No