[greenstone-users] Adding geolocation data links to greenstone

From Gregory S. Williamson
DateWed, 27 Jul 2005 22:00:19 -0700
Subject [greenstone-users] Adding geolocation data links to greenstone
Dear peoples,

I am working out a way to add basic geolocation data to our project (<http://shapingsf.org/> -- the link in the top center). This is reasonably easy to code, since the project is focussed on one city, currently.

I've got code that will extract addresses and do a basic lookup of the lattitude and longitude of the places mentioned. (This code is from a perl module for US geocoding at <http://search.cpan.org/~sderle/Geo-Coder-US/>. Now I want to make it useful.

I could write some code that would add it to the html files that we import into greenstone so that each would have some hrefs to the actual server that creates maps (running Minnesota Map Server (<http://ms.gis.umn.edu/>).

The problem with this is that any change in that address (or other parts of the cgi that controls the map display) would require us to recreate the entire project. Not unworkable as this project is currently fairly small, but something of a pain in terms of time and possibility for errors.

I am wondering if I can embed the relevant data as Metadata tags in the html, and then hack some macro to instantiate such data as a link with whatever our current MMS server is and the relevant style and section tags.

I am not sure which macros would be the proper place for this sort of thing, or if there might be other solutions that might be appropriate.

Greg W.

p.s. I'll be glad to share any useful bits with others who have interest, although I know of no such geolocation package that is current for outside of the US, which is rather limiting.