[GRASS-dev] wx.Slider events on Mac

2011-05-26 Thread Anna Kratochvílová
Hi,
I wonder if someone using Mac could tell me which events are emitted when 
dragging and releasing the thumbtrack of wx.Slider.
I'm interested especially in EVT_SCROLL_CHANGED  and EVT_SCROLL_THUMBRELEASE. 
In documentation I can read that EVT_SCROLL_CHANGED is on MSW only but I can 
handle it on Linux, too. On Mac, I suppose it's not possible. I think, the 
easiest way how to test it is wx demo with widget inspector.

Thanks
Anna Kratochvilova
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


[GRASS-dev] "Line too long" error in Python with grass.parser()

2011-05-26 Thread Pierre Roudier
Hi,

I must be missing something obvious here: I'm trying to do my first
script in Python, and I go the following error when calling
grass.parser():
Line too long or missing newline at line 63

Thinking my code must be bugged, I gave it a shot with the examples on
the wiki (d.shademaps) and on the g.parser help page. I keep on having
the same error.

Any thoughts on what I might do wrong?

Cheers,

Pierre

-- 
Scientist
Landcare Research, New Zealand
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


[GRASS-dev] wx digitizer bug

2011-05-26 Thread Markus Metz
can't quit the wx vector digitizer, applies to 7.0 and 6.5 (did not test 6.4)


self.StartEditing(self.layers[selection])
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/toolbars.py", line 1174,
in StartEditing

lmgr.toolbar.Enable('vdigit', enable = False)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
Traceback (most recent call last):
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/layertree.py", line 1132,
in OnChangeSel

mapLayer = self.GetPyData(layer)[0]['maplayer']
TypeError
:
'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/layertree.py", line 1132,
in OnChangeSel

mapLayer = self.GetPyData(layer)[0]['maplayer']
TypeError
:
'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/toolbars.py", line 708,
in OnExit

self.StopEditing()
  File "/home/metz/src/grass-6.5.svn/dist.x86_64-unknown-
linux-gnu/etc/wxpython/gui_modules/toolbars.py", line 1221,
in StopEditing

lmgr.toolbar.Enable('vdigit', enable = True)
AttributeError
:
'GMFrame' object has no attribute 'toolbar'
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


[GRASS-dev] Re: [GRASS GIS] #198: v.in.ascii: column scanning is borked

2011-05-26 Thread GRASS GIS
#198: v.in.ascii: column scanning is borked
---+
  Reporter:  hamish|   Owner:  grass-dev@…  
  Type:  defect|  Status:  reopened 
  Priority:  critical  |   Milestone:  6.4.2
 Component:  Vector| Version:  svn-develbranch6 
Resolution:|Keywords:  v.in.ascii   
  Platform:  All   | Cpu:  All  
---+
Changes (by mmetz):

  * status:  closed => reopened
  * resolution:  fixed =>
  * milestone:  6.4.1 => 6.4.2


Comment:

 Still not working. Test data are LiDAR laz data available here

 http://liblas.org/samples/

 The file I used is srs.laz

 The commands

 {{{
 las2txt -i srs.laz -o srs.ascii --parse xyztiaunrcCpedRGB --delimiter "|"

 # check ascii file
 head srs.ascii
 289814.15|4320978.61|170.76|499450.80599405|260|||6|0|2|Ground|0|0|0|0|0|0
 289814.64|4320978.84|170.76|499450.80600805|280|||6|0|2|Ground|0|0|0|0|0|0
 289815.12|4320979.06|170.75|499450.80602205|280|||6|0|2|Ground|0|0|0|0|0|0

 # import in GRASS
 las2txt -i srs.laz --stdout --parse xyztiaunrcCpedRGB --delimiter "|" |
 v.in.ascii in=- out=srs_ascii -z x=1 y=2 z=3 --o

 # only the first 5 columns were imported

 # check table contents
 v.db.select srs_ascii where="cat = 1"
 cat|dbl_1|dbl_2|dbl_3|dbl_4|int_1
 1|289814.15|4320978.61|170.76|499450.80599405|260
 }}}

 Markus M

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev