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. Re: Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) (Brian Sanjeewa Rupasinghe) 2. Re: Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) (Glynn Clements) 3. Re: Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) (Brian Sanjeewa Rupasinghe) 4. Re: Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) (Glynn Clements) 5. Re: Creating Python scripts that call GRASS functionality from outside (Markus Neteler) 6. Re: Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) (Brian Sanjeewa Rupasinghe) ---------------------------------------------------------------------- Message: 1 Date: Fri, 21 Dec 2012 20:29:33 +0000 From: Brian Sanjeewa Rupasinghe <jink...@gmail.com> To: "Gade, David SWT" <david.g...@usace.army.mil>, grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) Message-ID: <CAEMA-4g0o=wYrRdGHs6LFkMgNQXZjtqHuSg--n2xEab=qdq...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" I checked the file but it is not available in drive C: However, GRASS works. On Fri, Dec 21, 2012 at 7:57 PM, Gade, David SWT <david.g...@usace.army.mil>wrote: > '.grassrc6' -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/grass-windows/attachments/20121221/ae9f4995/attachment-0001.html> ------------------------------ Message: 2 Date: Fri, 21 Dec 2012 21:40:19 +0000 From: Glynn Clements <gl...@gclements.plus.com> To: Brian Sanjeewa Rupasinghe <jink...@gmail.com> Cc: grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) Message-ID: <20692.55107.260088.942...@cerise.gclements.plus.com> Content-Type: text/plain; charset=us-ascii Brian Sanjeewa Rupasinghe wrote: > I checked the file but it is not available in drive C: However, GRASS works. > > On Fri, Dec 21, 2012 at 7:57 PM, Gade, David SWT > <david.g...@usace.army.mil>wrote: > > > '.grassrc6' The normal location for GRASS 6.x on Windows is: %APPDATA%\GRASS6\grassrc6 On Windows 7, a typical setting for %APPDATA% is C:\Users\<username>\AppData\Roaming The file needs to contain settings for GISDBASE, LOCATION_NAME and MAPSET. GRASS_DB_ENCODING may need to be set for vector modules. -- Glynn Clements <gl...@gclements.plus.com> ------------------------------ Message: 3 Date: Fri, 21 Dec 2012 22:42:51 +0000 From: Brian Sanjeewa Rupasinghe <jink...@gmail.com> To: Glynn Clements <gl...@gclements.plus.com>, grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) Message-ID: <CAEMA-4gknpif4LM6hbSUR=th1tnqegwq4kaszx-9yduykvg...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Thanks. It is found in C:\Users\<username>\AppData\Roaming. However the file name is grassrc6 and not .grassrc6. Is it ok? On Fri, Dec 21, 2012 at 9:40 PM, Glynn Clements <gl...@gclements.plus.com>wrote: > C:\Users\<username>\AppData\Roaming > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/grass-windows/attachments/20121221/78d79250/attachment-0001.html> ------------------------------ Message: 4 Date: Sat, 22 Dec 2012 13:39:26 +0000 From: Glynn Clements <gl...@gclements.plus.com> To: Brian Sanjeewa Rupasinghe <jink...@gmail.com> Cc: grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) Message-ID: <20693.47118.431237.954...@cerise.gclements.plus.com> Content-Type: text/plain; charset=us-ascii Brian Sanjeewa Rupasinghe wrote: > Thanks. It is found in C:\Users\<username>\AppData\Roaming. However the > file name is grassrc6 and not .grassrc6. > Is it ok? Yes. It doesn't matter what the file is called, so long as %GISRC% points to it and it contains the necessary settings. -- Glynn Clements <gl...@gclements.plus.com> ------------------------------ Message: 5 Date: Sat, 22 Dec 2012 17:33:32 +0100 From: Markus Neteler <nete...@osgeo.org> To: Brian Sanjeewa Rupasinghe <jink...@gmail.com> Cc: Glynn Clements <gl...@gclements.plus.com>, grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Creating Python scripts that call GRASS functionality from outside Message-ID: <CALFmHhvJMh6o1jsgYSYRcfpEn0U81DocmWcZi7d4i_7_+=t...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 On Fri, Dec 21, 2012 at 8:51 PM, Brian Sanjeewa Rupasinghe <jink...@gmail.com> wrote: > I uninstalled GRASS and then re-installed with spearfish data set with its > spearfish60 location and user1 mapset. Still i cannot see .grassrc6 file > created. It is created during the first session *using* GRASS GIS. So you may enter into the Spearfish location, user1 mapset, then leave GRASS and the file should be there. Markus ------------------------------ Message: 6 Date: Sat, 22 Dec 2012 16:57:26 +0000 From: Brian Sanjeewa Rupasinghe <jink...@gmail.com> To: Glynn Clements <gl...@gclements.plus.com>, grass-windows@lists.osgeo.org Subject: Re: [GRASS-windows] Creating Python scripts that call GRASS functionality from outside (UNCLASSIFIED) Message-ID: <caema-4iklyhq+-enm7afjjkvwq9z17vdvrmfyv7naog7ovi...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi, Even if the GISRC environmental variable set, i cannot call GRASS libraries from Python 2.7 IDLE. For example, when i import grass from grass.lib, it gives the following error in Python IDLE (GUI) ImportError: No module named grass.lib Here is the env.bat file i modified. Newly added lines are below rem #--- set GRASS_WISH=%GISBASE%\extrabin\wish.exe set GRASS_PYTHON=python set GRASS_PROJSHARE=%GISBASE%\proj set GRASS_HTML_BROWSER=explorer set GRASS_SH=%GISBASE%\msys\bin\sh.exe set PYTHONHOME=%GISBASE%\Python27 set GDAL_DATA=%GISBASE%\share\gdal set PROJ_LIB=%GISBASE%\proj set GEOTIFF_CSV=%GISBASE%\share\epsg_csv set PATH=%GISBASE%\msys\bin;%PATH% set PATH=%GISBASE%\extrabin;%GISBASE%\extralib;%PATH% set PATH=%GISBASE%\tcl-tk\bin;%GISBASE%\sqlite\bin;%GISBASE%\gpsbabel;%PATH% set PATH=%GISBASE%\bin;%PATH% rem #---- set PATH=%GISBASE%\lib;%PATH% set PATH= %GISBASE%\etc;%PATH% set PATH=%GISBASE%\etc\python;%PATH% set PATH=C:\Python27;%PATH% set GISRC= C:\Users\KABS\AppData\Roaming\GRASS6\grassrc6 set LD_LIBRARY_PATH = %GISBASE%\lib set PYTHONLIB= C:\Python27 set PYTHONPATH= %GISBASE%\etc\python;%PYTHONPATH% On Sat, Dec 22, 2012 at 3:58 PM, Brian Sanjeewa Rupasinghe < jink...@gmail.com> wrote: > Many thanks. I got it. > > On Sat, Dec 22, 2012 at 1:39 PM, Glynn Clements > <gl...@gclements.plus.com>wrote: > > >> Brian Sanjeewa Rupasinghe wrote: >> . >> > Thanks. It is found in C:\Users\<username>\AppData\Roaming. However the >> > file name is grassrc6 and not .grassrc6. >> > Is it ok? >> >> Yes. >> >> It doesn't matter what the file is called, so long as %GISRC% points >> to it and it contains the necessary settings. >> >> -- >> Glynn Clements <gl...@gclements.plus.com> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/grass-windows/attachments/20121222/a9ae9f31/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 68, Issue 3 ********************************************