[GRASS-dev] Re: [GRASS-user] check vector geometry
glynn at gclements.plus.com
Mon Sep 25 15:42:46 EDT 2006
Michael Barton wrote:
> Something making things complicated is that
> g.region -p
> g.region -g
> return different suites of region values
AFAICT, -g returns a subset of -p (or, to put it another way, -g
"formats" some of the values as an empty string). It should be
straightforward to add the missing values.
> and also format the values
> differently for latlon (-g in decimal degrees, while -p uses dd:mm:ss
> format). This kind of inconsistency also occurs in other modules (e.g.
That isn't necessarily a problem; -g is supposed to change the format
of the output. Decimal degrees are easier to deal with, so if only one
format is available for -g, it should be decimal degrees.
It wouldn't be hard to add further options to select between decimal
degrees and DMS. Either an alternative to -g, which is equivalent to
-g except for the handling of lat/lon coordinates, or (preferably)
another modifier which would affect both human-readable and
machine-readable output (if the default format differs depending upon
whether -g is used, you need two modifiers, one to force decimal
degrees and one to force DMS).
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user