[GRASS-dev] [GRASS GIS] #2520: d.grid: -c and -d flags not displaying + and - marks

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
The -c and -d flags which specify '+' and '-' marks instead of grid lines
do not display. If the latter flags are unticked then the grid lines
display fine.
{{{
g.proj -p
-PROJ_INFO-------------------------------------------------
name : Lambert Azimuthal Equal Area
proj : laea
lat_0 : 13
lon_0 : 101.5
x_0 : 0
y_0 : 0
no_defs : defined
datum : wgs84
ellps : wgs84
towgs84 : 0.000,0.000,0.000
-PROJ_UNITS------------------------------------------------
unit : meter
units : meters
meters : 1

System Info
GRASS version: 7.0.0svn
GRASS SVN Revision: 63320
Build Date: 2014-12-19
Build Platform: i686-pc-linux-gnu
GDAL/OGR: 1.11.1
PROJ.4: 4.9.0
GEOS: 3.4.2
SQLite: 3.7.9
Python: 2.7.3
wxPython: 2.8.12.1
Platform:LinuxMint-13-maya
  }}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by annakrat):

It works for me with r63876. Could you see any errors?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by richardc):

I couldn't see any errors with the following commands (selected in GUI):
{{{
d.grid -g 00:20 width=4 color=blue <- grid lines visible
d.grid -g -c 00:20 width=4 color=blue <- no grid lines and no '+' marks
}}}
I also tried in a Windows version* which again does not show the marks,
only grid lines. I'll try updating my GRASS version to see if that helps
resolve.
{{{
Windows System Info
GRASS version: 7.0.0beta3
GRASS SVN Revision: 61541
Build Date: 2014-08-06
Build Platform: i686-pc-mingw32
GDAL/OGR: 1.11.0
PROJ.4: 4.8.0
GEOS: 3.4.2
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-SP1 [in virtual box]
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by richardc):

I downloaded the latest d.grid module from svn into my Linux installation,
but marks still not visible in Map Display.

{{{

  $ svn co
https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0/display/d.grid
A d.grid/plot.c
A d.grid/fiducial.c
A d.grid/local_proto.h
A d.grid/main.c
A d.grid/d.grid.html
A d.grid/Makefile
A d.grid/plotborder.c
  U d.grid
Checked out revision 63928.

}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by richardc):

I updated my system to 63929, but still the d.grid marks '+' are not
displaying. Maybe something unique to my system?

e.g., d.grid -g -c size=00:30 width=6 color=blue fontsize=14

{{{
System Info
GRASS version: 7.0.0svn
GRASS SVN Revision: 63929
Build Date: 2015-01-02
Build Platform: i686-pc-linux-gnu
GDAL/OGR: 1.11.1
PROJ.4: 4.9.0
GEOS: 3.4.2
SQLite: 3.7.9
Python: 2.7.3
wxPython: 2.8.12.1
Platform: Linux-3.2.0-31-generic-pae-i686-with-LinuxMint-13-maya
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by neteler):

I just tried on command line:

{{{
GRASS 7.1.svn (latlong):~ > d.grid -g -c size=00:30 width=6 color=blue
fontsize=14
ERROR: Geo-Grid option is not available for LL projection
}}}

Other location:

{{{
GRASS 7.1.svn (nc_spm_08_grass7):~ > d.mon wx0
GRASS 7.1.svn (nc_spm_08_grass7):~ > d.grid -g -c size=00:30 width=6
color=blue fontsize=14
WARNING: Geogrid marks not yet implemented
}}}

(the spelling is different)

It doesn't seem to available.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by annakrat):

Replying to [comment:5 neteler]:
> I just tried on command line:
>
> {{{
> GRASS 7.1.svn (latlong):~ > d.grid -g -c size=00:30 width=6 color=blue
fontsize=14
> ERROR: Geo-Grid option is not available for LL projection
> }}}

d.grid manual says: `A geographic grid cannot be drawn for a
latitude/longitude or XY projection.` When you switch off -g, it will
work.

>
>
> Other location:
>
> {{{
> GRASS 7.1.svn (nc_spm_08_grass7):~ > d.mon wx0
> GRASS 7.1.svn (nc_spm_08_grass7):~ > d.grid -g -c size=00:30 width=6
color=blue fontsize=14
> WARNING: Geogrid marks not yet implemented
> }}}
>
> (the spelling is different)
>
> It doesn't seem to available.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#2520: d.grid: -c and -d flags not displaying + and - marks
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.grid | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

Comment(by neteler):

Replying to [comment:6 annakrat]:
> d.grid manual says: `A geographic grid cannot be drawn for a
latitude/longitude or XY projection.` When you switch off -g, it will
work.

Right. I have changed the message to

ERROR: Geo-grid option not available for LL projection, use without -g/-w

> > {{{
> > GRASS 7.1.svn (nc_spm_08_grass7):~ > d.grid -g -c size=00:30 width=6
color=blue fontsize=14
> > WARNING: Geogrid marks not yet implemented
> > }}}

Also here, without -g the marks are shown.

Still a bit funny, in LatLong -g/-w should not be used while e.g. in NC
SPM there is no support implemented.

Maybe -g and -w should be commented out?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2520#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>