[GRASS-dev] text interface for GRASS70

Martin Landa landa.martin at gmail.com
Tue Mar 22 10:45:57 EDT 2011


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


More information about the grass-dev mailing list