first commit - extracted from pduchesne/ckanext-spatial