Skip to content
Teofilo Sibileau edited this page Jul 18, 2014 · 3 revisions

Geo File Entity

The idea behind the Geo File Entity is to offer a drupal entity (similar to the file entity) to store files that hold geographic data.

The ultimate goal is to provide a quick and reproducible way to produce new bundles providing:

  • Common hook_menu item to render bundle pages
  • Common set of permissions

For now, we only provide bundles for:

  • Geojson Files

We are planning to extend the functionality to hold:

  • KML Files
  • Shape files

Installation

Geo File Entity

Install from github zip

# cd into your site's docroot and:
cd sites/all
wget https://github.com/NuCivic/geo_file_entity/archive/master.zip
unzip master.zip
mv geo_file_entity-master geo_file_entity
cd ../../
drush make --no-core sites/all/geo_file_entity/geo_file_entity.make
drush -y en geo_file_entity

Install from git working copy

# cd into your site's docroot and:
cd sites/all
git clone git@github.com:NuCivic/geo_file_entity.git
cd ../../
drush make --no-core sites/all/geo_file_entity/geo_file_entity.make
drush -y en geo_file_entity

Geojson bundle

drush -y en geo_file_entity_geojson_bundle