[GRASS-user] create location from CLI
Dave Roberts
droberts at montana.edu
Tue Sep 6 06:21:30 PDT 2016
Dear All,
I'm trying to understand the simplest way in GRASS7 to create a
location from the command line without using a georeferenced file. So
far, it appears to be
% grass70 -c newLocation
at the OS prompt, followed by
GRASS GIS 7.0.4 > g.proc -c wkt=some WKT text file
inside of the new GRASS location (which temporarily has a generic XY
non-projection). Two things:
1) I can't seem to coerce grass70 or g.proj to do this in a single step
from the OS command line (probably missing environment variables when
trying to go straight to g.proj from OS CLI).
2) I would prefer to use g.proj -c proj4=some PROJ4 string or file but I
can't seem to get g.proj to parse any proj4 strings either from stdin or
a file, even substituting the output from a g.proj -j command from a
working location.
GRASS 7.0.4
grass70 --config
x86_64-pc-linux-gnu
./configure --prefix=/opt/grass
--with-freetype-includes=/usr/include/freetype2 --with-wxwidgets
--with-readline --with-pthread --with-netcdf --with-nls --with-geos
--with-postgres
uname -a
Linux luthertucker 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST
2016 x86_64 GNU/Linux
Thanks, Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts office 406-994-4548
Professor and Head FAX 406-994-3190
Department of Ecology email droberts at montana.edu
Montana State University
Bozeman, MT 59717-3460
More information about the grass-user
mailing list