[GRASS-dev] Re: Decimal degree support for Lat Lon
Hamish
hamish_b at yahoo.com
Wed Sep 3 00:19:16 EDT 2008
Hi,
re. this request:
http://article.gmane.org/gmane.comp.gis.grass.user/5335/
I wonder how it should be done.
we could make a "LL_FORMAT" variable which could take values of D, DM,
and DMS. The default/failover would continue to be DMS. (ddd:mm:ss.ssssE)
and then any module using the G_format_northing() string would get the
formatted result.
a question is whether to have that as a shell enviro variable or a GIS
variable? the advantage of a GIS variable is that it could go onto a
preferences GUI. Otherwise I'd just go with a shell var.
There is the chance that scripts/modules parse the dd:mm:ss string so
we risk breaking those.(m.proj would need to be adjusted for example) I
think any user setting shell environment variables will be prepared to
deal with that when their scripts break though.
another option might be LL_FORMAT=PROJ4 to get 000d00'00.000"E style
for cs2cs.
comments/ideas?
Hamish
More information about the grass-dev
mailing list