[GRASS-dev] [GRASS GIS] #3621: Cannot create map frame in cartographic composer

GRASS GIS trac at osgeo.org
Thu Sep 27 12:17:01 PDT 2018


#3621: Cannot create map frame in cartographic composer
--------------------------+----------------------------------------------
  Reporter:  cmbarton     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  reopened
  Priority:  critical     |  Milestone:  7.4.2
 Component:  wxGUI        |    Version:  unspecified
Resolution:               |   Keywords:  map frame, cartographic composer
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+----------------------------------------------

Comment (by cmbarton):

 The issue with setting the map frame is now fixed. I was able to give a
 full test and ran into 2 other issues which I'll mention here. One is
 already reported and a serious problem. The other is less so but makes the
 cartographic composer unusable for most purposes. We can keep this open
 for these cartographic composer issues or move them to another ticket
 because they are different from the map frame per se.

 Issue 1: Cannot select point symbols. This also affects the vector
 display, which is very serious. Here is the error when you click on the
 button to select a symbol.

 {{{
 Traceback (most recent call last):
   File "/Applications/GRASS-7.6.app/Contents/Resources/gui/w
 xpython/psmap/dialogs.py", line 3149, in OnSymbolSelection

 currentSymbol=self.symbolName.GetLabel())
   File "/Applications/GRASS-7.6.app/Contents/Resources/gui/w
 xpython/gui_core/dialogs.py", line 2067, in __init__

 self._layout()
   File "/Applications/GRASS-7.6.app/Contents/Resources/gui/w
 xpython/gui_core/dialogs.py", line 2073, in _layout

 fgSizer = wx.FlexGridSizer(rows=2, vgap=5, hgap=5)
 TypeError
 :
 FlexGridSizer(): arguments did not match any overloaded
 call:
   overload 1: 'hgap' is not a valid keyword argument
   overload 2: 'hgap' is not a valid keyword argument
   overload 3: 'hgap' is not a valid keyword argument
   overload 4: 'hgap' is not a valid keyword argument
 }}}

 Issue 2. You cannot add a scale bar. All the other items can be added.
 Just not a scale bar. Here is the error:

 {{{
 Traceback (most recent call last):
   File "/Applications/GRASS-7.6.app/Contents/Resources/gui/w
 xpython/psmap/frame.py", line 686, in OnAddScalebar

 dlg = ScalebarDialog(self, id=id, settings=self.instruction)
   File "/Applications/GRASS-7.6.app/Contents/Resources/gui/w
 xpython/psmap/dialogs.py", line 4776, in __init__

 self.panel = self._scalebarPanel()
   File "/Applications/GRASS-7.6.app/Contents/Resources/gui/w
 xpython/psmap/dialogs.py", line 4947, in _scalebarPanel

 self.sbCombo = wx.combo.BitmapComboBox(panel,
 style=wx.CB_READONLY)
 AttributeError
 :
 'module' object has no attribute 'combo'

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3621#comment:13>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list