Opened 6 years ago

Last modified 4 years ago

#3650 new defect

Cartographic composer: scale and rotation options do not work for north arrow

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Ps.map Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

When I try to add a North Arrow in the Cartographic composer, if I accept all settings by default and click OK, it works, but I get a huge north arrow.

If I then try to scale or rotate the north arrow, the apply button does not produce any visible effect and the OK button does not close the dialog, only the "x" in the corner does, and afterwards the grey box representing the north arrow disappears. Then, the arrow appears in the preview, but I do not have control over it.

I attach screenshots.

System

GRASS version: 7.7.svn                                                          
GRASS SVN revision: r73364                                                      
Build date: 2018-09-19                                                          
Build platform: x86_64-pc-linux-gnu                                             
GDAL: 2.2.4                                                                     
PROJ.4: 4.9.3                                                                   
GEOS: 3.6.1                                                                     
SQLite: 3.22.0                                                                  
Python: 2.7.15                                                                  
wxPython: 3.0.2.0                                                               
Platform: Linux-4.18.7-200.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight

Attachments (3)

g.gui.psmap_draft.png (31.8 KB ) - added by veroandreo 6 years ago.
draft mode in g.gui.psmap, after north arrow has disappeared
g.gui.psmap_preview.png (145.8 KB ) - added by veroandreo 6 years ago.
preview mode in g.gui.psmap, north arrow appears (not shrunk as expected)
cartographic_comp_north_arrow_dialog.png (45.7 KB ) - added by veroandreo 6 years ago.
dialog box for north arrow in cartographic composer, note scale and rotation area, only + and - are visible

Download all attachments as: .zip

Change History (13)

by veroandreo, 6 years ago

Attachment: g.gui.psmap_draft.png added

draft mode in g.gui.psmap, after north arrow has disappeared

by veroandreo, 6 years ago

Attachment: g.gui.psmap_preview.png added

preview mode in g.gui.psmap, north arrow appears (not shrunk as expected)

comment:1 by annakrat, 6 years ago

I can't reproduce. Maybe could you list your steps exactly how you do it?

comment:2 by annakrat, 6 years ago

Also does it work in 76?

in reply to:  1 ; comment:3 by veroandreo, 6 years ago

Replying to annakrat:

I can't reproduce. Maybe could you list your steps exactly how you do it?

  1. Open Cartographic composer from GUI (File--> Cartographic composer)
  2. Add map frame and select elevation raster map
  3. Add north arrow, select n_arrow1_fancy.eps, click OK
  4. Double click over north arrow in map
  5. 2 or 3 clicks over minus in Scale, Click Apply <<-- nothing
  6. Click OK <<-- nothing
  7. Close "North Arrow Setting" box with the x in the corner
  8. North arrow becomes invisible
  9. Generate preview and north arrow is there (original position and size)

in reply to:  3 comment:4 by annakrat, 6 years ago

Replying to veroandreo:

Replying to annakrat:

I can't reproduce. Maybe could you list your steps exactly how you do it?

  1. Open Cartographic composer from GUI (File--> Cartographic composer)
  2. Add map frame and select elevation raster map
  3. Add north arrow, select n_arrow1_fancy.eps, click OK
  4. Double click over north arrow in map
  5. 2 or 3 clicks over minus in Scale, Click Apply <<-- nothing
  6. Click OK <<-- nothing
  7. Close "North Arrow Setting" box with the x in the corner
  8. North arrow becomes invisible
  9. Generate preview and north arrow is there (original position and size)

I still can't reproduce. Isn't there any error in Layer manager console?

comment:5 by veroandreo, 6 years ago

Yes, here it is:

Traceback (most recent call last):
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/psmap/dialogs.py", line 440, in
OnApply

self.parent.DialogDataChanged(id=self.id)
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/psmap/frame.py", line 1012, in
DialogDataChanged

bb=drawRectangle)
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/psmap/frame.py", line 2180, in
Draw

bbox=bb)
  File "/home/veroandreo/software/grass7_trunk/dist.x86_64
-pc-linux-gnu/gui/wxpython/psmap/frame.py", line 2288, in
DrawBitmap

bbox[3])), resample=PILImage.BICUBIC)
  File "/usr/lib64/python2.7/site-packages/PIL/Image.py",
line 1749, in resize

return self._new(self.im.resize(size, resample, box))
ValueError
:
height and width must be > 0

I think it is because I click over minus more than 3 or 4 times and then north arrow becomes very small... The problem is I only see minus or plus sign, I do not know how much I reduce the size or rotate (see attachment, is this the same for others or only in fedora?).

by veroandreo, 6 years ago

dialog box for north arrow in cartographic composer, note scale and rotation area, only + and - are visible

comment:6 by veroandreo, 5 years ago

Component: DefaultPs.map
Milestone: 7.8.0
Version: unspecifiedsvn-trunk

comment:7 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:8 by neteler, 4 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:9 by neteler, 4 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:10 by neteler, 4 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.