[GRASSLIST:9191] d.m's "gridline" option and the (non) function of "draw geodetic grid"

I just noticed that clicking the "draw geodetic grid" checkbox in the d.m
function that adds a d.grid run to the on-screen map does nothing at all.

Looks like in display/d.m/gridline.tcl there are two variables, geodraw and
geogrid --- geodraw is used to determine whether to put a -g in the d.grid
line but is never set by any of the input options, and geogrid is set by the
checkbox next to "draw geodetic grid", and never used for anything.

When I run the d.grid line by hand with no -g I get a grid in the current
location's coordinate system, and with -g I get a latitude/longitude
graticule projected to the locations coordinate system, as I expect. But it
seems impossible to get d.m to use a d.grid line with no -g. Is this a bug,
or have I missed a point somewhere?

--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
"The only thing you can do easily is be wrong, and that's hardly
  worth the effort." -- Norton Juster

I thought I'd updated this when the new options came out, but apparently it
didn't happen for some reason.

I can't put this into the CVS until Monday, because of the holidays. But
here is a new gridline.tcl for you until then. If someone wants to put it
into the cvs for me, please do so but let me know.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Tom Russo <russo@bogodyn.org>
Date: Tue, 22 Nov 2005 23:57:03 -0700
To: <grasslist@baylor.edu>
Subject: [GRASSLIST:9191] d.m's "gridline" option and the (non) function of
"draw geodetic grid"

I just noticed that clicking the "draw geodetic grid" checkbox in the d.m
function that adds a d.grid run to the on-screen map does nothing at all.

Looks like in display/d.m/gridline.tcl there are two variables, geodraw and
geogrid --- geodraw is used to determine whether to put a -g in the d.grid
line but is never set by any of the input options, and geogrid is set by the
checkbox next to "draw geodetic grid", and never used for anything.

When I run the d.grid line by hand with no -g I get a grid in the current
location's coordinate system, and with -g I get a latitude/longitude
graticule projected to the locations coordinate system, as I expect. But it
seems impossible to get d.m to use a d.grid line with no -g. Is this a bug,
or have I missed a point somewhere?

--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 AHTB#1
"The only thing you can do easily is be wrong, and that's hardly
  worth the effort." -- Norton Juster

(attachments)

gridline.tcl (9.93 KB)