[GRASSLIST:861] Grass5 and Mapserver

Anybody using Grass5 with Mapserver? I'm hoping to display "street maps"
in a browser window. I have purchased the "Grass approach" book, but it's
going to take 15days to get here, which is 14 days to long :wink:

I am.

My application uses GRASS to perform raster (r.mapcalc) calculations
with user inputs to create species suitability 'maps' that are based on
climate and soil conditions.

Check it out at http://mistral.coas.oregonstate.edu/forages

I'm very impressed with mapserver. In fact, I used to have this web
application running in ArcIMS but got so frustrated with it that I
ported it to mapserver and I'm MUCH PLEASED!!! You will be too.

Matt

(RedHat8.0, Apache2.0, Mapserver 3.7, Php4.2.3, Grass5.0)

-----Original Message-----
From: owner-GRASSLIST@baylor.edu [mailto:owner-GRASSLIST@baylor.edu] On
Behalf Of Bruce Bushby
Sent: Tuesday, July 29, 2003 10:44 PM
To: GRASS mail list
Subject: [GRASSLIST:861] Grass5 and Mapserver

Anybody using Grass5 with Mapserver? I'm hoping to display "street maps"
in a browser window. I have purchased the "Grass approach" book, but
it's
going to take 15days to get here, which is 14 days to long :wink:

Anybody using Grass5 with Mapserver? I'm hoping to display "street maps"
in a browser window. I have purchased the "Grass approach" book, but it's
going to take 15days to get here, which is 14 days to long :wink:

Google says:
http://pinus.chinju.ac.kr/grass/start.html

How can I suppress shell std output using G_system()?
maybe ...
G_system("r.mapcalc >> temp.txt")
.... but it doesn't seems to me to be enough just redirect it.
Suggestions?

Thanks you all.
Massimiliano

On Thu, Jul 31, 2003 at 03:11:55PM +1200, Hamish wrote:

> Anybody using Grass5 with Mapserver? I'm hoping to display "street maps"
> in a browser window. I have purchased the "Grass approach" book, but it's
> going to take 15days to get here, which is 14 days to long :wink:

Google says:
http://pinus.chinju.ac.kr/grass/start.html

Right now I have updated the related GRASS 5.1 tutorial:
http://grass.itc.it/grass51/tutorial/ex_complex.htm

Cheers

Markus Neteler

Massimiliano Cannata wrote:

How can I suppress shell std output using G_system()?
maybe ...
G_system("r.mapcalc >> temp.txt")
.... but it doesn't seems to me to be enough just redirect it.

The above appends stdout to the file, but it leaves stderr untouched
(i.e. it's probably going to the terminal). Try:

  G_system("r.mapcalc >> temp.txt 2>&1");

There are many possibilities for setting up the standard descriptors;
they will be described in the manpage for the shell, e.g. bash.

Although, if you want portability, and have "ash" installed, refer to
the manpage for ash rather than the one for bash, as bash has many
extensions which don't work with other shells.

--
Glynn Clements <glynn.clements@virgin.net>

On Thu, Jul 31, 2003 at 12:47:40PM +0200, Markus Neteler wrote:

On Thu, Jul 31, 2003 at 03:11:55PM +1200, Hamish wrote:
> > Anybody using Grass5 with Mapserver? I'm hoping to display "street maps"
> > in a browser window. I have purchased the "Grass approach" book, but it's
> > going to take 15days to get here, which is 14 days to long :wink:
>
>
> Google says:
> http://pinus.chinju.ac.kr/grass/start.html

Right now I have updated the related GRASS 5.1 tutorial:
http://grass.itc.it/grass51/tutorial/ex_complex.htm

...a typo, sorry:
http://grass.itc.it/grass51/tutorial/ex_complex.html

is the correct address.

Markus Neteler