[GRASS-dev] text interface for GRASS70
Pierre Roudier
pierre.roudier at gmail.com
Wed Mar 23 00:48:00 EDT 2011
Hi Martin and others, and thanks very much for your answers,
Your solution is working well Martin, however for some reason I have
to be root to start grass successfuly.
pierrer at grass:~$ grass70 -c /home/pierrer/grassdata/test2
Traceback (most recent call last):
File "/usr/local/bin/grass70", line 961, in <module>
grass_intro()
File "/usr/local/bin/grass70", line 370, in grass_intro
f = open(path, 'r')
IOError: [Errno 2] No such file or directory:
'/home/pierrer/grassdata/etc/grass_intro'
Pierre
2011/3/23 Martin Landa <landa.martin at gmail.com>:
> Hi,
>
> 2011/3/22 Martin Landa <landa.martin at gmail.com>:
>> at least we could use grass.create_location() [1] for unprojected
>> locations, for the rest is needed running GRASS session (`g.proj`).
>>
>> Martin
>>
>> [1] http://grass.osgeo.org/programming7/namespacepython_1_1core.html#a0e55b38e9bb8c7b104e8884f26dc618a
>
> please try out r45726
>
> $ grass70 -c /home/martin/grassdata/test1
>> g.proj -p
> XY location (unprojected)
>
> $ grass70 -c ~/lakes.shp /home/martin/grassdata/test1
>> g.proj -p
> -PROJ_INFO-------------------------------------------------
> name : Lambert Conformal Conic
> proj : lcc
> datum : nad83
> ellps : grs80
> lat_1 : 36.16666666666666
> lat_2 : 34.33333333333334
> lat_0 : 33.75
> lon_0 : -79
> x_0 : 609601.22
> y_0 : 0
> no_defs : defined
> -PROJ_UNITS------------------------------------------------
> unit : Meter
> units : Meters
> meters : 1
>
> Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
--
Scientist
Landcare Research, New Zealand
More information about the grass-dev
mailing list