Opened 9 years ago
Closed 9 years ago
#2852 closed defect (fixed)
ps.map fit frame to match region doesn't work
Reported by: | pvanbosgeo | Owned by: | annakrat |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.4 |
Component: | wxGUI | Version: | unspecified |
Keywords: | ps.map, g.gui.psmap | Cc: | grass-dev@… |
CPU: | Unspecified | Platform: | All |
Description
In ps.map fitting the frame to match the current region (or saved region) doesn't work. It generates the error code below. It looks like it has something to do with the code getting the degrees in DMS format instead of the D format when presumably setting the bounds.
Traceback (most recent call last): File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/psmap/d ialogs.py", line 578, in OnApply ok = self.mPanel.update() File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/psmap/d ialogs.py", line 1065, in update self.scale[2], self.center[2], self.rectAdjusted = AutoAdjust(self, scaleType = 2, rect = self.mapFrameDict['rect']) File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/psmap/u tils.py", line 222, in AutoAdjust regionDict = grass.parse_key_val(windFile, sep = ':', val_type = float) File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/scr ipt/utils.py", line 224, in parse_key_val result[k] = val_type(v) ValueError : invalid literal for float(): 15:06N
Change History (9)
comment:2 by , 9 years ago
Component: | Ps.map → wxGUI |
---|---|
Keywords: | ps.map g.gui.psmap added |
Owner: | changed from | to
Platform: | Linux → All |
comment:3 by , 9 years ago
Cc: | added |
---|
comment:5 by , 9 years ago
Note:
See TracTickets
for help on using tickets.
The limits of the region are taken from the Wind file. However, in this file the coordinates are given in degrees:minutes, which is obviously not a float type.
Correction to my original report: it does seem to work with saved regions.