Opened 5 years ago

Closed 5 years ago

#3831 closed defect (invalid)

d.grid: -g and -w flags do not display any grid

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Display Version: svn-releasebranch76
Keywords: d.grid Cc:
CPU: Unspecified Platform: Linux

Description

I have tested in NC location and in an UTM location with no success.

d.mon wx0
d.rast elevation
d.grid -g size=100

Nothing, no error either. Tested in trunk and 76 relbranch.

Change History (2)

comment:1 by Nikos Alexandris, 5 years ago

Here, works using the PNG driver or the wxGUI. Unfortunately, in my setup, I cannot test a 'wx' monitor! But, isn't 'wx' essentially the same as the GUI?

In a 'metric' Location:

g.proj -g
name=Lambert Conformal Conic
proj=lcc
datum=nad83
a=6378137.0
es=0.006694380022900787
lat_1=36.16666666666666
lat_2=34.33333333333334
lat_0=33.75
lon_0=-79
x_0=609601.22
y_0=0
no_defs=defined
unit=Meter
units=Meters
meters=1

Grids drawn as expected via via

d.erase
d.grid size=1000 color=red width=5 -b -t
d.grid size=10000 color=blue width=10 fontsize=20

https://i.imgur.com/Jm4WnLJ.png

In instructing -g, units matter

d.grid size=0.05 -g color=green fontsize=20 width=10

comment:2 by veroandreo, 5 years ago

Resolution: invalid
Status: newclosed

Indeed! And it also works as expected in wx monitors. Thanks for the heads up :)

If -g or -w is to be used in a projected location (no need to use them if location is latlon), size must be in degrees and not really in map units (m or other).

Closing as invalid (should have read the manual more carefully)

Note: See TracTickets for help on using tickets.