Re: [GRASS-user] r.diversity (r.li) options on windows

2014-03-07 Thread Luigi Ponti
Hi Markus,

I have installed grass70 on a virtualBox with OSGeo Live 7.0

GRASS precompiled version from:
https://launchpad.net/~grass/+archive/grass-devel
ppa:grass/grass-devel 

Installed precompiled version:
7.0.0+0ubuntu3~develppa~2~svn-30128~ubuntu12.04.1

which the repository says is 9 hrs hold, and hence I assume includes r.li.* 
updates by Markus Metz.

Start GRASS from terminal with grass70 is fine.

If I go menuwise in wxpython gui:
Settings  Addons extenstions  install extensions from Addons

g.extension gui reports the following error:

Unable to load extensions

and when trying to fecth extensions, the same occurs.

Other things appear not to work properly. For example, again in the gui:
Help  About GRASS GIS

Nothing happens and commmand console reports the following:

Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4151, in FindItem

id = self.GetNext(id)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4151, in FindItem

id = self.GetNext(id)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4151, in FindItem

id = self.GetNext(id)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6300, in OnKeyDown

if not self.IsItemEnabled(self._current):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 2661, in IsItemEnabled

return item.IsEnabled()
AttributeError
:
'NoneType' object has no attribute 'IsEnabled'
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4151, in FindItem

id = self.GetNext(id)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4151, in FindItem

id = self.GetNext(id)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4151, in FindItem

id = self.GetNext(id)
  File /usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File /usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py,
line 1003, in OnAboutGRASS

win = AboutWindow(self)
  File
/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py, line
57, in __init__

for title, win in ((_(Info), self._pageInfo()),
  File
/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py, line
112, in _pageInfo

label = 'GRASS GIS ' + vInfo['version'] + '\n')
KeyError
:
'version'

Sounds like a Python problem but I am not sure how to deal with 

Re: [GRASS-user] ps.map - eps frame affect/hide border and legend

2014-03-07 Thread Domenico Giusti
Hi,

The frame is inside the map region.
I cleaned the eps frame with eps2eps. But now I think it is a ps reader
problem:
* with gv no problems with the eps frame (clean and no-clean)
* with evince problems only with the no-clean eps frame. No stderr
differences between clean and no-clean ps, launching evince from the
cli.

Thank you very much!


On gio, 2014-03-06 at 22:06 -0800, Hamish wrote:
 Domenico wrote:
 
  I'm trying to output a ps file with ps.map (GRASS 6.4.2). Results from
  the psmap.def are good, with border, colortable, vlegend, etc..
  http://osgeo.codepad.org/NtM3oJy0 (pasted def file)
  But when I add an eps frame border, colortable and vlegend disappear.
  I changed the order, putting eps before or after the vlegend
  instruction, but without successful.
 
 Hi,
 
 could you post a bug in the trac system? an example made using one of the 
 standard grass datasets (Spearfish or North Carolina) would help a lot too.
 
 is the eps file inside or outside the map frame? sometimes it helps to move 
 it.
 
 the used-added eps file is just copied verbatim within the final output file; 
 it might help to keep it simple or clean with eps2eps first?
 
 did you put a final 'end' after all the ps.map instructions?
 
 
 thanks,
 Hamish
 

-- 
Domenico Giusti dnc...@gnewarchaeology.it
GPG keyID: 2048R/A3AB7054F6E5D778

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


Re: [GRASS-user] r.diversity (r.li) options on windows

2014-03-07 Thread Anna Petrášová
Hi,


On Fri, Mar 7, 2014 at 4:01 AM, Luigi Ponti lpo...@inbox.com wrote:

 Hi Markus,

 I have installed grass70 on a virtualBox with OSGeo Live 7.0

 GRASS precompiled version from:
 https://launchpad.net/~grass/+archive/grass-devel
 ppa:grass/grass-devel

 Installed precompiled version:
 7.0.0+0ubuntu3~develppa~2~svn-30128~ubuntu12.04.1

 which the repository says is 9 hrs hold, and hence I assume includes
 r.li.* updates by Markus Metz.

 Start GRASS from terminal with grass70 is fine.

 If I go menuwise in wxpython gui:
 Settings  Addons extenstions  install extensions from Addons

 g.extension gui reports the following error:

 Unable to load extensions

 and when trying to fecth extensions, the same occurs.

 Other things appear not to work properly. For example, again in the gui:
 Help  About GRASS GIS

 Nothing happens and commmand console reports the following:

 Traceback (most recent call last):
   File /usr/lib/python2.7/dist-
 packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
 line 6469, in OnKeyDown

 id = self.FindItem(self._current, self._findPrefix + ch)
   File /usr/lib/python2.7/dist-
 packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
 line 4151, in FindItem

 id = self.GetNext(id)
   File /usr/lib/python2.7/dist-
 packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py,
 line 4036, in GetNext

 children = i.GetChildren()
 AttributeError
 :
 'NoneType' object has no attribute 'GetChildren'



This part of error is not related  and I fixed it in r59209.


 Traceback (most recent call last):
   File /usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py,
 line 1003, in OnAboutGRASS

 win = AboutWindow(self)
   File
 /usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py, line
 57, in __init__

 for title, win in ((_(Info), self._pageInfo()),
   File
 /usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py, line
 112, in _pageInfo

 label = 'GRASS GIS ' + vInfo['version'] + '\n')
 KeyError
 :
 'version'


This looks like g.version segfaults. What happens when you run:

g.version -rge

Best,

Anna


Sounds like a Python problem but I am not sure how to deal with that. I
 also have of course GRASS 6.4.3 intalled as it comes with OSGeo Live 7.0.

 Thanks in advance for any pointer.

 Kind regards,

 Luigi


  -Original Message-
  From: nete...@osgeo.org
  Sent: Sun, 23 Feb 2014 23:51:38 +0100
  To: lpo...@inbox.com
  Subject: Re: [GRASS-user] r.diversity (r.li) options on windows
 
  Hi Luigi,
 
  over the past few weeks Markus Metz has submitted a major rewrite of
  r.li.* to GRASS GIS 7.svn.
 
  We tested the older version a lot which is containing a lot of errors.
 
  Suggestion: get a fresh GRASS 7 from SVN (or precompiled, see
  http://grass.osgeo.org/grass7/
  ) and use the r.diversity Addon for GRASS 7.
 
  Backporting the r.li.* rewrite is quite some effort, not sure how to
  deal with that.
 
  Best
  Markus

 
 Protect your computer files with professional cloud backup.
 Get PCRx Backup and upload unlimited files automatically.
 Learn more at http://backup.pcrx.com/mail


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

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

Re: [GRASS-user] v.univar error in sum stats (windows, 6.4.3RC2)

2014-03-07 Thread Markus Neteler
On Fri, Mar 7, 2014 at 3:18 AM, Milton Ribeiro
miltinho.astrona...@gmail.com wrote:
 Dear all,

 I have vector maps with just one line each.
 When I run v.univar setting a numeric collumn, de MIN and MAX value looks
 fine (the same value) but SUM stats looks very strange.

 Anyone have idea what is happening?

I tried with North Carolina, generating a single point (using SQLite backend):

GRASS 6.4.3 (nc_spm_08):~  echo 593493.1|4914730.2|123.1|well |
v.in.ascii out=point column='x double precision, y double precision,
mynum double precision, mytext varchar(50)'
Scanning input for column types...
Maximum input row length: 30
Maximum number of columns: 4
Minimum number of columns: 4
Column: 1 type: double
Column: 2 type: double
Column: 3 type: double
Column: 4 type: string length: 4
Importing points...
...
Number of nodes: 1
Number of primitives: 1
Number of points: 1
...
v.in.ascii complete.


GRASS 6.4.3 (nc_spm_08):~  v.db.select point
cat|x|y|mynum|mytext
1|593493.1|4914730.2|123.1|well

GRASS 6.4.3 (nc_spm_08):~  v.univar point col=mynum type=point
number of features with non NULL attribute: 1
number of missing attributes: 0
number of NULL attributes: 0
minimum: 123.1
maximum: 123.1
range: 0
sum: 123.1
mean: 123.1
mean of absolute values: 123.1
population standard deviation: 0
population variance: 0
population coefficient of variation: 0
sample standard deviation: -nan
sample variance: -nan
kurtosis: -nan
skewness: -nan


sum looks ok. Can you please try this example?

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


Re: [GRASS-user] r.diversity (r.li) options on windows

2014-03-07 Thread Luigi Ponti




Hi Anna,-Original Message-From: kratocha...@gmail.comSent: Fri, 7 Mar 2014 08:42:21 -0500To: lpo...@inbox.comSubject: Re: [GRASS-user] r.diversity (r.li) options on windows[...]This part of error is not related and I fixed it in r59209.Then I will have to try compilation from source a bit harder. I have failed so far -- interesting that I was able to compile GRASS from source on windows 7 some time ago using OSGeo4W, likely because there are fewer degrees of freedom compared to Linux.


Traceback (most recent call last):
 File "/usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py",
line 1003, in OnAboutGRASS

win = AboutWindow(self)
 File
"/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py", line
57, in __init__

for title, win in ((_("Info"), self._pageInfo()),
 File
"/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py", line
112, in _pageInfo

label = 'GRASS GIS ' + vInfo['version'] + '\n')
KeyError
:
'version'
This looks like g.version segfaults. What happens when you run:g.version -rgeHere is what happens (in GRASS prompt): g.version -rgeversion=7.0.svndate=2014revision=build_date=2014-03-04Segmentation fault (core dumped)That's it. Kind regards and thank you,Luigi

Free Online Photosharing - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!




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

Re: [GRASS-user] ps.map - eps frame affect/hide border and legend

2014-03-07 Thread Hamish
Domenico wrote:

 The frame is inside the map region.
 I cleaned the eps frame with eps2eps. But now I think it is a ps reader
 problem:
 * with gv no problems with the eps frame (clean and no-clean)
 * with evince problems only with the no-clean eps frame. No stderr
 differences between clean and no-clean ps, launching evince from the
 cli.

as another cleaning step/exercise you might try converting to PDF with ps2pdf 
and see if the conversion or PDF readers get upset. (see wiki for 
publish-quality options)

it could be the eps is calling showpage or otherwise causing an end-of-file 
situation when it is embedded in the main output postscript file?


 Thank you very much!

hope it helps.


Hamish

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