[STATSGRASS] Re: Problem with gmeta6() in spgrass6.
Roger Bivand
Roger.Bivand at nhh.no
Thu Jun 22 15:31:16 EDT 2006
On Wed, 21 Jun 2006, Markus Neteler wrote:
> Dear Roger,
>
> [to also contribute something here]
Very nice, thanks very much, will be in the next release.
Roger
>
> to fix this problem, simply change the call/parsing in
> gmeta6():
>
> The original code does:
>
> > system("g.region -p3")
> projection: 3 (Längen- und Breitengrad)
> zone: 0
> datum: wgs84
> ellipsoid: wgs84
> north: 46:06:39N
> south: 45:57:18N
> west: 11:02:42E
> east: 11:19:06E
> top: 1.00000000
> bottom: 0.00000000
> nsres: 0:00:03
> nsres3: 0:00:03
> ewres: 0:00:03
> ewres3: 0:00:03
> tbres: 1
> rows: 187
> rows3: 187
> cols: 328
> cols3: 328
> depths: 1
>
> You could change to -g:
>
> > system("g.region -g3")
> n=46.11083333
> s=45.955
> w=11.045
> e=11.31833333
> t=1
> b=0
> nsres=0.00083333
> nsres3=0.00083333
> ewres=0.00083333
> ewres3=0.00083333
> tbres=1
> rows=187
> cols=328
> rows3=187
> cols3=328
> depths=1
>
> which is easily parsable and also works in LatLong.
>
> Best
> Markus
>
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the grass-stats
mailing list