[GRASS-user] Start in text mode: define new location with proj.4 string
Nikos Alexandris
nik at nikosalexandris.net
Wed Jul 11 00:22:28 PDT 2018
* Micha Silver <tsvibar at gmail.com> [2018-07-10 22:34:53 +0300]:
> Reading the Startup page I do not see a way to apply the proj.4 string
> to
> create a new location on the command line. I know this is an option with
> the
> GUI location wizard but do not see the appropriate '-c' modifier to do
> this
> on the command line. If one of the startup manual options will do this,
> and
> I'm just not seeing it, please point me to it.
>
> Rich
>
> What you've suggested in past posts seems to work fine (point to a
> shapefile with accompanying *.prj):
>
> grass -c /home/micha/work/BIDR/Ashalim/GIS/analysis_regions.shp
> test_location
> Creating new GRASS GIS location/mapset...
> .....
> GRASS 7.4.0 (test_location):~ > g.proj -p
> -PROJ_INFO-------------------------------------------------
> name : Israel_1993_Israeli_TM_Grid
> ellps : grs80
> proj : tmerc
> lat_0 : 31.73439361111111
> lon_0 : 35.20451694444445
> k : 1.0000067
> x_0 : 219529.584
> y_0 : 626907.39
> no_defs : defined
> -PROJ_UNITS------------------------------------------------
> unit : Meter
> units : Meters
> meters : 1
> GRASS 7.4.0 (test_location):~ >
>
> Unless I'm not understanding the problem.
The grass --help does not mention support for "Proj" strings. Only
geo(-referenced)file and EPSG.
Usage:
grass75 [-h | -help | --help | --h] [-v | --version]
[-c | -c geofile | -c EPSG:code[:datum_trans]]
[-e] [-f] [-text | -gtext | -gui] [--config param]
[[[GISDBASE/]LOCATION_NAME/]MAPSET]
grass75 [FLAG]... GISDBASE/LOCATION_NAME/MAPSET --exec EXECUTABLE [EPARAM]...
grass75 -c [geofile | EPSG] --tmp-location --exec EXECUTABLE [EPARAM]...
Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180711/5ffe4ec2/attachment.sig>
More information about the grass-user
mailing list