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:

  1. If it is not already present, create a libraries directory inside your Drupal installation’s sites/all folder.
  2. Download the geoPHP library from https://github.com/downloads/phayes/geoPHP/geoPHP.tar.gz
  3. Unarchive the library files and place in sites/all/libraries
  4. Your directory structure should look like: /sites/all/libraries/geoPHP/geoPHP.inc

Compatible Modules

Resources

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0-rc1 tar.gz (32.33 KB) | zip (41.16 KB) 2012-Feb-05 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (32.35 KB) | zip (41.17 KB) 2012-Feb-05 Notes

Project Information


Maintainers for Geofield

  • Brandonian - 56 commits
    last: 2 days ago, first: 26 weeks ago
  • dtarc - 2 commits
    last: 4 weeks ago, first: 49 weeks ago
  • phayes - 85 commits
    last: 6 weeks ago, first: 1 year ago
  • davidseth - 4 commits
    last: 15 weeks ago, first: 39 weeks ago
  • nikhilbhai - 2 commits
    last: 49 weeks ago, first: 49 weeks ago

Issues for Geofield

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 20 Apr 11
nobody click here