Geographer

Geographic Tools for Plone 3

Geographer is the successor to PleiadesGeocoder? for Plone 3. It provides basic geospatial capabilities for Plone 3, specifically: geospatial annotation of content based on emerging standards. Point, line, and polygon annotations are possible. Geo-annotated object may then be represented in KML and GeoRSS documents via zgeo.kml and zgeo.atom.

Geographer also interoperates with the Quintagroup geolocation and Jarn Maps products. Content objects that have been geo-located with those products are automatically available to users of Geographer.

Contact: Sean Gillies <sgillies@…>

Help

Install

The dependencies on simplejson and zgeo.geographer are easily satisfied via easy_install

$ easy_install simplejson
$ easy_install zgeo.geographer

Might as well get zgeo.atom and zgeo.kml while you're at it so you can try the KML and GeoRSS views.

Install Geographer by checking the code out from the repository into your Plone products directory

$ svn co http://svn.gispython.org/svn/primagis/Geographer/tags/rel-0.1 Geographer

or

$ svn co http://svn.gispython.org/svn/primagis/Geographer/trunk Geographer

Next, register ZCML slugs as described in the  Plone tutorial. Easiest way to do it is download the attachment (end of this page) and extract into your etc/site-packages.

and restart Zope/Plone. Then install Geographer through the control panel.

Usage

Content objects that provide Products.Geographer.interfaces.IGeoreferenceable and have registered adapters to zgeo.geographer.interfaces.IGeoreferenced can be annotated via the edit-geo-form.

Geographer marks all AT content types as providers of IGeoreferenceable and IGeoItem. In Python, content objects can be geo-annotated like so:

  >>> ob = app['plone']['batlas']['65']
  >>> geo = IGeoreferenced(ob)
  >>> coordinates = (((28.54268, 38.08102, 0.0), ...))
  >>> geo.setGeoInterface('Polygon', coordinates)
  >>> geo.type
  'Polygon'
  >>> geo.coordinates
  (((28.54268, 38.08102, 0.0), ...))

Browse source

[Tickets]

Support

See  http://lists.gispython.org/mailman/listinfo/community.

Credits

 Sean Gillies (for Pleiades)

Pleiades is an international research network and associated web portal and content management system devoted to the study of ancient geography.

See  http://icon.stoa.org/trac/pleiades/wiki.

Funding for the creation of this software was provided by a grant from the U.S. National Endowment for the Humanities ( http://www.neh.gov).

Attachments