[GRASS-dev] g.region print flags combination

Maciej Sieczka tutey at o2.pl
Fri Jan 5 15:01:51 EST 2007


Paul Kelly wrote:
> On Thu, 4 Jan 2007, Maciej Sieczka wrote:

>> Right. But it doesn't print the units information, which is present in
>> PROJ.4-compatible output of eg. "epsg_tr.py -proj4 <code>". Shouldn't
>> then g.proj -j include the units info too?

> Maybe it should! Can you point me to some examples?

Eg.

$ epsg_tr.py -proj4 2180
# ETRS89 / Poland CS92
<2180> +proj=tmerc +lat_0=0 +lon_0=19 +k=0.999300 +x_0=500000
+y_0=-5300000 +ellps=GRS80 +units=m +no_defs  <>
                             ^
                             |
There units here -------------



But, in a location created with "g.proj -c proj4='+init=epsg:2180'",
units are missing from "g.proj -j" output:

$ g.proj -jf
+proj=tmerc +lat_0=0 +lon_0=19 +k=0.999300 +x_0=500000 +y_0=-5300000
+no_defs +a=6378137 +rf=298.257222101 +towgs84=0.000,0.000,0.000
   ^
   |-------------------------------
                                  |
Another thing - is no_defs on right place here? I *guess* it should be
on the very end, ?.

Cheers,
Maciek




More information about the grass-dev mailing list