Send grass-windows mailing list submissions to grass-windows@lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-windows or, via email, send a message with subject or body 'help' to grass-windows-requ...@lists.osgeo.org You can reach the person managing the list at grass-windows-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of grass-windows digest..." Today's Topics: 1. grass start bat in windows (maven apache) 2. Re: grass start bat in windows (Glynn Clements) 3. Re: grass start bat in windows (maven apache) ---------------------------------------------------------------------- Message: 1 Date: Mon, 1 Feb 2010 10:38:15 +0800 From: maven apache <apachemav...@gmail.com> Subject: [GRASS-windows] grass start bat in windows To: grass-windows@lists.osgeo.org Message-ID: <b6ae15041001311838s28574d4eg576d46212e573...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi: I want to write a bat to starat grass in command line . Thant's to say how to set the environment variables and grass vairables in the bat file. In fact I want to call garss in my java web application, so I think if I can write a bat to start grass, then I can do the same job(set envrionment variables) in my codes, then call garss. Is there anyone who has same experience? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20100201/b9b38d01/attachment-0001.html ------------------------------ Message: 2 Date: Mon, 1 Feb 2010 03:39:59 +0000 From: Glynn Clements <gl...@gclements.plus.com> Subject: Re: [GRASS-windows] grass start bat in windows To: maven apache <apachemav...@gmail.com> Cc: grass-windows@lists.osgeo.org Message-ID: <19302.19727.687191.887...@cerise.gclements.plus.com> Content-Type: text/plain; charset=us-ascii maven apache wrote: > I want to write a bat to starat grass in command line . > > Thant's to say how to set the environment variables and grass vairables in > the bat file. > > In fact I want to call garss in my java web application, so I think if I can > write a bat to start grass, then I can do the same job(set envrionment > variables) in my codes, then call garss. > > Is there anyone who has same experience? Try something like the following: set WINGISBASE=C:\GRASS-64-SVN set GISBASE=C:/GRASS-64-SVN set PATH=%WINGISBASE%/bin;%WINGISBASE%/lib;%PATH% set GRASS_MESSAGE_FORMAT=silent set GIS_LOCK=0 set GRASS_VERSION=6.5.svn WD=... UNIQUE=... set GISRC=%WD%/gisrc_%UNIQUE% copy %WD%\grassrc6 %GISRC% rem create a new mapset for this session g.mapset -c mapset_%UNIQUE% You will need to set WD to a working directory, and set UNIQUE to a unique value for each session (on Unix, $$ contains the PID of the shell process; you'll need to figure out something for Windows). -- Glynn Clements <gl...@gclements.plus.com> ------------------------------ Message: 3 Date: Mon, 1 Feb 2010 13:05:07 +0800 From: maven apache <apachemav...@gmail.com> Subject: Re: [GRASS-windows] grass start bat in windows Cc: grass-windows@lists.osgeo.org Message-ID: <b6ae15041001312105h33bb456k68d5946564564...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" 2010/2/1 Glynn Clements <gl...@gclements.plus.com> > > maven apache wrote: > > > I want to write a bat to starat grass in command line . > > > > Thant's to say how to set the environment variables and grass vairables > in > > the bat file. > > > > In fact I want to call garss in my java web application, so I think if I > can > > write a bat to start grass, then I can do the same job(set envrionment > > variables) in my codes, then call garss. > > > > Is there anyone who has same experience? > > Try something like the following: > > set WINGISBASE=C:\GRASS-64-SVN > set GISBASE=C:/GRASS-64-SVN > set PATH=%WINGISBASE%/bin;%WINGISBASE%/lib;%PATH% > set GRASS_MESSAGE_FORMAT=silent > > set GIS_LOCK=0 > set GRASS_VERSION=6.5.svn > > WD=... > UNIQUE=... > set GISRC=%WD%/gisrc_%UNIQUE% > copy %WD%\grassrc6 %GISRC% > > rem create a new mapset for this session > g.mapset -c mapset_%UNIQUE% > This is my bat: ----------------------- *set WINGISBASE=F:\anzhuang\GRASS-6-SVN set GISBASE=F:\anzhuang\GRASS-6-SVN set PATH=%WINGISBASE%/bin;%WINGISBASE%/lib;%PATH% set GRASS_MESSAGE_FORMAT=silent set GIS_LOCK=0 set GRASS_VERSION=6.5.svn set WD=C:/Documents and Settings/Administrator set GISRC=%WD%/grassrc6 rem create a new mapset for this session g.mapset -c mapset_a* ----------------------- I wonder the unique parameter is required or optional,however this bat does not work. It seems that some libraries are not added. > > You will need to set WD to a working directory, and set UNIQUE to a > unique value for each session (on Unix, $$ contains the PID of the > shell process; you'll need to figure out something for Windows). > > -- > Glynn Clements <gl...@gclements.plus.com> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20100201/4ed86d57/attachment-0001.html ------------------------------ _______________________________________________ grass-windows mailing list grass-windows@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-windows End of grass-windows Digest, Vol 42, Issue 1 ********************************************