Opened 15 months ago

Last modified 5 weeks 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.2
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 15 months ago.
draft mode in g.gui.psmap, after north arrow has disappeared
g.gui.psmap_preview.png (145.8 KB) - added by veroandreo 15 months 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 15 months 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 (11)

Changed 15 months ago by veroandreo

Attachment: g.gui.psmap_draft.png added

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

Changed 15 months ago by veroandreo

Attachment: g.gui.psmap_preview.png added

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

comment:1 Changed 15 months ago by annakrat

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

comment:2 Changed 15 months ago by annakrat

Also does it work in 76?

comment:3 in reply to:  1 ; Changed 15 months ago by 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)

comment:4 in reply to:  3 Changed 15 months ago by annakrat

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 Changed 15 months ago by veroandreo

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?).

Changed 15 months ago by veroandreo

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

comment:6 Changed 7 months ago by veroandreo

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

comment:7 Changed 3 months ago by neteler

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:8 Changed 5 weeks ago by neteler

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.