[GRASS-user] automating map production in Grass

Jachym Cepicky jachym.cepicky at gmail.com
Thu Feb 21 01:43:53 EST 2008


Hi,

Alysson Whitlam píše v St 20. 02. 2008 v 18:08 -0500:
> Hi,
>  
> I am just beginning to work with Grass, although I am fairly
> experienced with ArcGIS, including scripting for map production and
> geoprocessing (Python and VBA). Basically, I am looking to automate
> map production in Grass, using a script (Python or Perl
> preferably?). (I have to output several hundred maps, based on
> sections of a polygon layer). Since I am just beginning to use Grass,
> I am wondering if anyone could please give me an idea if this type of
> task can be accomplished in Grass.
>  
> Thanks very much,
> Alysson

Map production is in GRASS a little bit tricky, even for those, who did
never use ArcGIS before. You have to create configuration file, and run
ps.map with it. Advantage is, you can automate the whole process.
Configuration file can be generated on-the-fly and reused x-times.
Disadvantage is, you have to crate the file. See ps.map manual page for
more info [1].

As for scripting language: You can use actually every scripting language
you know. Preferably BASH, but you can use Python and Perl as well, and
I would not be wondering, if VBA would be working as well. See g.parser
manual page for details [2].

Anyway, you should get familiar with the command line in GRASS, because
of scripting in GRASS does use the same approach. You are not working
with objects, you are using whole modules, which are doing the work for
you.

Jachym

[1] http://grass.osgeo.org/grass63/manuals/html63_user/ps.map.html
[2] http://grass.osgeo.org/grass63/manuals/html63_user/g.parser.html

-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20080221/3dd85f01/attachment.bin


More information about the grass-user mailing list