Norman, I'd suggest looking at Paul Davis's write up of the externals API. It is designed to do 2 things well:
* keep a background process alive, usually an HTTP server * proxy requests to that HTTP server http://davispj.com/2010/09/26/new-couchdb-externals-api.html I'm not sure if you'd be able to build your Map Server using exactly these APIs, but if you can you'll gain the benefits of less custom code. Or at least it may provide inspiration for how to integrate. Chris On Tue, Jun 28, 2011 at 11:51 AM, Norman Barker <[email protected]> wrote: > Hi, > > I am planning to wrap MapServer as a supervised process within CouchDB > using Erlang. MapServer is a CGI application, it should be > straightforward. The aim will be to store the MapServer map files > (just text docs) that can passed in with every CGI call as JSON docs > within CouchDB. The hook will be be register MapServer as an external > process within CouchDB. > > If someone has already thought of this then let me know, I see GDAL > has support for CouchDB as a client driver (using http though) so > serving geojson through MapServer WFS or rendering over WMS should be > possible. > > Let me know if you are interested, I should have some available for > review middle of next week, I am just sounding out for now. > > The Erlang method of communication to C/C++ over stdio fits (in my > mind) perfectly with the existing MapServer CGI model. GeoCouch can > then be a supported backend of MapServer. > > cc'd Frank and Even rather than cross-posting as they seem to have > some couch interest. > > thanks, > > Norman > -- Chris Anderson http://jchrisa.net http://couchbase.com
