#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
If you do the following, you get an error in the GUI for ps.map
1. create a map frame and add a map to it
2. close the map frame dialog
3. reopen the map frame dialog and select delete under the menu (why can't
you delete a single map instead of deleting the whole frame??)
4. without closing the map frame dialog, select another map and add it
(note that the map frame is gone from the thumbnail).
5. click "apply"
Here is the error:
{{{
Traceback (most recent call last):
File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
/gui/wxpython/gui_modules/psmap_dialogs.py", line 1966, in
OnApply
okR = self.rPanel.update()
File "/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/etc
/gui/wxpython/gui_modules/psmap_dialogs.py", line 2616, in
update
if self.rasterDict['raster'] != map['drawMap']:
TypeError
:
list indices must be integers, not str
}}}
I found this in the most recent build of GRASS 7 (28-October-2011) but
don't know if it affects other versions as well (probably does).
#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by cmbarton):
This particular error is fixed. Thanks. However, I managed to generate
another error two doing things that I am not supposed to do. I haven't had
time to figure out exactly how to replicate them. So I'll leave this open
until I can do that.
#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by annakrat):
I assume that some of these errors probably result from opening more
modeless dialogs at the same time. The situation you described here seemed
very improbable to me. If you want to remove raster without removing the
frame, you can do it in the raster dialog by choosing the 'no raster map'
option.
#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by cmbarton):
Actually, I'm getting the new errors without opening new windows. I'm sure
I'm doing something (looking at an empty map or something like that) that
is somehow "incorrect". Just need to get these ID'ed and trapped. I'll try
to get it narrowed down.
#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by cmbarton):
Something weird is going on with ps.map out of the cartographic composer.
Vectors are showing up as low resolution rasters, with coarse pixelation
even in the pdf output.
#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by cmbarton):
More information. The problem is with the dot-dashed line style. It looks
really bad if you use it with streams in the nc07 demo data set and region
set to match the elevation DEM. The dashed style doesn't look much better.
A further problem is that if you put the same vector map in twice and try
to have each layer of the vector styled differently (e.g., a wide line in
one color, overlaid by a narrow line in a different color), both layers
take on the properties of the most recent one defined. This may be
happening with any vectors overlaid. I don't know if this is a wxGUI or
ps.map problem.
#1483: need error trapping in cartographic composer
-------------------------------------------+--------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: ps.map, cartographic composer | Platform: Unspecified
Cpu: Unspecified |
-------------------------------------------+--------------------------------
Comment(by annakrat):
Replying to [comment:6 cmbarton]:
> More information. The problem is with the dot-dashed line style. It
looks really bad if you use it with streams in the nc07 demo data set and
region set to match the elevation DEM. The dashed style doesn't look much
better.
>
You can try to use your own line style by typing zeros and ones to the
line style combo, e.g. 01. For explanation, see ps.map manual (instruction
vlines - style). Then, don't forget to set width (e.g. 0.5). I tried it
and it works fine for me.
> A further problem is that if you put the same vector map in twice and
try to have each layer of the vector styled differently (e.g., a wide line
in one color, overlaid by a narrow line in a different color), both layers
take on the properties of the most recent one defined. This may be
happening with any vectors overlaid. I don't know if this is a wxGUI or
ps.map problem.
>
This is wxGUI problem and I know about it, I would like to rewrite this
part so please be patient.