[GRASS-user] Programmatically create location?
Glynn Clements
glynn at gclements.plus.com
Tue Jul 4 15:08:46 EDT 2006
Paul Pick wrote:
> I have a program which will generate products based on
> a (disposable) user-defined lat/lon box, which could be
> located anywhere in the world. How do I go about programmatically
> creating a new location? I looked over the various docs and
> wiki entries and didn't see anything that looked like it.
To create a location, create the location directory, the PERMANENT
directory, and the DEFAULT_WIND file. If you need projection
information, also create the PROJ_INFO and PROJ_UNITS files (see
g.setproj for reference; g.setproj is interactive, so you can't use it
from another program).
To create a new mapset, create the mapset directory and copy the
DEFAULT_WIND file as the WIND file.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list