[GRASS-user] Calling GRASS functionality from outside - how to create location

Markus Neteler neteler at osgeo.org
Wed Oct 17 07:08:29 PDT 2012


On Wed, Oct 17, 2012 at 3:50 PM, Margherita Di Leo <diregola at gmail.com> wrote:
> The problem is that I would need to create the location within the script
> running.
> Is this possible and how?

The GRASS 7 startup script allows to create new locations:
http://grass.osgeo.org/grass70/manuals/html70_user/grass7.html

(For GRASS 6 there is a similar script in Addons.)

There is also a Python function for this:
python::core::create_location()
http://grass.osgeo.org/programming7/namespacepython_1_1core.html#a82acc872f87a3f3c3fb46cd0a2769662

Markus


More information about the grass-user mailing list