<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body>
A thought, what about exposing the tool as a Web Service, similar call
to MapServer, only via a WebService.&nbsp; This would help out with the
Thread/Safe issue too as Apache keeps this things generally under
control.&nbsp; Large processes that take some time, might be a problem for
Timeouts.&nbsp; It's just a thought.<br>
<br>
I actually thought about this last year when we were first starting out
with our Services architecture at the City.<br>
<br>
<br>
<br>
bobb<br>
<br>
Lowell.Filak wrote:<br>
<blockquote cite="midsmtpd.63e.43ab1ab3.1e4b7.65@mtaout-w.tc.umn.edu"
 type="cite">
  <pre wrap="">Martin, Aaron, &amp; others. 

This is good news.
I have been trying to get processes like this documented to the wiki (before 
the spamming) and to the new site by replying to emails such as these.
I finally gave up in favor of hiring a contractor to develop a (hopefully) 
uniform scripting language interface between MapScript &amp; GRASS. As a result 
please expect to be contacted by the aforementioned contractor during the 
upcoming feasibility study. 

Lowell 

Martin Hoegh writes: 

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,
I also use Grass for backend. I've written a python script using pexpect to
start and "drive" a grass session. In this way I can use grass's modules
through the script as if I was sitting in front of the terminal. The python
script exposes its functions via SOAP, which allows me to call the script
with what ever I want - normally php. The down side is that grass is not
thread safety, which means you can't start more than one session in a mapset
at the time. My script waits in a loop until the previous spawned session
ends. This is not good for heavy traffic! After calling grass you can use
MapServer to render and display the map, neither directly from the grass
database or let grass export the data to a image file. 

Martin
    </pre>
  </blockquote>
  <pre wrap=""><!----> 


  </pre>
</blockquote>
<br>
</body>
</html>