Geofield is a module for storing geographic data in Drupal 7. It supports all geo-types (points, lines, polygons, multitypes etc.)
How can you help?
Interested in seeing this module hit 1.0? Our goal is to have a full release by the end of January, with a Release Candidate by the end of December. We need people testing the module, filing issues and writing documentation.
Widgets (Data Input)
Latitude and Longitude
Supports entering data as both Decimal Degrees (122.340932) and Degrees-Minutes-Seconds (-123° 49' 55.2" W). The Degrees-Minutes-Seconds input is very tolerant of inconsistent input.
Bouding Box
Four textfields where lat / lon can be entered
Well Known Text (WKT)
A textarea for direct WKT input
Draw on an OpenLayers map
Allows drawing of Points, Lines, Polygons and Bouding Boxes
Geocode from another field
There is good Integrations with the Drupal 7 version of the Geocoder module (http://drupal.org/project/geocoder). This allows you to use data from one field to populate your geofield automatically. Supported geocoders include:
- Google Geocoder: Addressfield, textfield
- KML: filefield, textfield
- GPX: filefield, textfield
- GeoJSON: filefield, textfield
- Geotagged Image: filefield, imagefield
Formatters (Data Output)
Latitude and Longitude
Supports display as both Decimal Degrees (122.340932) and Degrees-Minutes-Seconds (-123° 49' 55.2" W)
Well Known Text (WKT)
GeoJSON
KML
KML is the format used by Google Earth
GPX
GPX is the format used by GPS devices
OpenLayers Map
Display your data on a map, can use all of OpenLayers mapping functionality including behaviors and styles.
Setup and configuration
Install using drush with drush-make installed and everything will happen automatically.
Manual Process:
Install the Libraries modules
Install the geoPHP library
geoPHP is a library for doing basic geospatial operations entirely in PHP and is required by geofield.
If you enable geofield using drush with drush-make installed, then geoPHP library will be automatically downloaded. To download manually:
- If it is not already present, create a libraries directory inside your Drupal installation’s sites/all folder.
- Download the geoPHP library from https://github.com/downloads/phayes/geoPHP/geoPHP.tar.gz
- Unarchive the library files and place in
sites/all/libraries - Your directory structure should look like:
/sites/all/libraries/geoPHP/geoPHP.inc
Compatible Modules
- OpenLayers: A very powerful mapping system based on the OpenLayers JavaScript library.
- Static Map: Simple maps based on Google Maps
- Leaflet: Moderately powerful mapping system based on the Leaflet JavaScript library
- Geocoder: Transform addresses, images, or file-uploads into Geofield locations
- Geocoder AutoComplete: Auto-complete widget for Geocoder
- Address Field: Holds internationally compatible postal addresses based on xNAL. Compatible with Geocoder.
- Openlayers Apachesolr: Integrates OpenLayers, Apache Solr, and Geofield
- Openlayers CCK Migrate: Migrate your old D6 openlayer_wkt fields to Geofield
- RSS Field Formatters: Provides
<georss:point>element for geofields - Views GeoJSON: Allows outputting of geofields into geoJSON using a view
- Search API Location: Adds geospatial-based searching to the Search API module.
- Spatial Tools for D7: Tools for processing spatial files (ESRI Shapefiles, KML). This module is still very much in development
Resources
- Documentation (needs work)
- README.txt
- Book: Mapping with Drupal
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Fields, Location
- Reported installs: 2401 sites currently report using this module. View usage statistics.
- Last modified: January 26, 2012