Spatial data and maps...
A Drupal Perspective
Presented by Alex Parker @ Perth Drupal Meetup 6/8/2013
Scope?
Scope - Brief:
GIS Standards
Open Geospatial Consortium (http://www.opengeospatial.org/)
Standards for:
GIS Standards: SWE
Image source: Open Geospatial Consortium (http://www.opengeospatial.org/)
GIS Standards Summary
More info:
http://en.wikipedia.org/wiki/Open_Geospatial_Consortium
http://www.opengeospatial.org/standards/is
Backend Systems
GIS Backend Options
Dedicated (e.g. Geoserver)
vs
Web Service (Fusion Tables, WebMap)
vs
Roll your own (PHP / Python / JS / PostGIS)
vs
Framework + Modules (e.g. Drupal, Zend)
Dedicated Backend Options
Pros
Built for the job. Fast. Powerful. Consistent.
Cons
Domain knowledge required. In-house skills. Server resource requirements.
Web Service Backend Options
Pros
Pre-built, just import-n-go. Server resource requirements offloaded.
Cons
Service provider lock-in. 3rd party business risk to measure, proprietary data formats.
Framework (e.g. Drupal) Backend Options
Pros
Some control & customisation, leverage existing functionality, use existing in-house skills.
Cons
At the mercy of 3rd party developers for quality code, features and updates.
Drupal 7 GIS Data
Storage: Custom RDMS
Pros
Full control over queries, potentially faster, fully customise functionality.
Cons
Kind of restricted to MySQL spatial extensions. PostGIS types and indexes would be nice.
Verdict
Would do this when performance is key.
Drupal 7 GIS Data
Storage: Use Modules
Pros
Easier to implement, basic skills required, leverage existing functionality.
Cons
As with any reliance on 3rd party code.
Verdict
Would do this when maintainability and ease of use are key. Which is most times.
D7 GIS Data Modules
Example
Three powerful friends:
A useful combo for geocoding addresses.
Geofield project
Google Fusion Tables
https://developers.google.com/maps/documentation/javascript/layers#FusionTables
D7 GIS Data Summary
Now what?
Presentation options
Presentation options
Presentation options
Which web-friendly mapping abstraction layers exist?
Map Abstraction Layers
Among others...
Map Abstraction Layers
Map Abstraction Layers
Pros
Cons
Abstraction Layers: Openlayers
Abstraction Layers: Openlayers
Pros
Cons
Abstraction Layers: Mapstraction
Abstraction Layers: Mapstraction
Abstraction Layers: Leaflet.js
Abstraction Layers: Leaflet.js
Pros
Cons
In Summary
Personal opinions:
In Summary
TL;DR:
Drupal + Leaflet.js + Custom JS = Win.