[GRASS-user] Re: GRASS starting problem - Mac

2010-09-09 Thread schorschli

Problem fixed by reinstalling the system.
I had the correct GRASS package.

Thanks 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GRASS-starting-problem-Mac-tp5506724p5514762.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] GRASS starting problem - Mac

2010-09-07 Thread schorschli

Hi,

After a Mac-security-update I can't start GRASS anymore.
I keep geting the same error:

Dyld Error Message:
  Library not loaded:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
  Referenced from:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
  Reason: no suitable image found.  Did find:

/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD:
unknown file type, first eight bytes: 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00


I allready tried to reinstalled GRASS (using the newest installer from
http://www.kyngchaos.com/software/grass)

Any idea what could be wrong and how to fix this?

Thanks,

Schorschli
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GRASS-starting-problem-Mac-tp5506724p5506724.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: Feed and manipulate the result of v.distance -pa in python

2010-08-04 Thread schorschli

For your task the use of lists and the split tool may help.
The different lines have are seperated by a  '\n' (which is interpreted as a
new line). After splitting the string into a line list you can make a loop
each item of this list. Something like this:

output='7839|16\n7839|17\n7839|22\n7839|23\n7839|24'

seccond_column_list=[]
max_value=0

line_list=output.split('\n')

for line in line_list:
columns=line.split('|')
seccond_column_list.append(float(columns[1]))

max_value=max(seccond_column_list)

print seccond_column_list
print max_value 


I may missunderstood your question but I hope this helps.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Feed-and-manipulate-the-result-of-v-distance-pa-in-python-tp5371195p5372457.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: import wx

2010-07-20 Thread schorschli

I updated to version  GRASS 6.4rc6. But now I cannot start grass anymore...

 File /Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py,
line 1819, in module
sys.exit(main())
  File /Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py,
line 1812, in main
app = GMApp(workspaceFile)
  File /Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py,
line 1737, in __init__
wx.App.__init__(self, False)
  File
/Users/Shared/unix/wxpython-leo/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py,
line 7978, in __init__
  File
/Users/Shared/unix/wxpython-leo/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py,
line 7552, in _BootstrapApp
  File /Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py,
line 1748, in OnInit
introBmp   = introImage.ConvertToBitmap()
  File
/Users/Shared/unix/wxpython-leo/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py,
line 3369, in ConvertToBitmap
wx._core.PyAssertionError: C++ assertion image.Ok() failed at
../src/mac/carbon/bitmap.cpp(1286) in wxBitmap(): invalid image




William Kyngesburye wrote:
 
 Maybe something is getting inserted into the python path in some other
 way?  Start python in GRASS, then
 
 import sys
 sys.path
 
 You should see a bunch of frameworks at the front of the list, then
 etc/python from GRASS, then the system stuff.  If there is another wx in
 the path before the GRASS etc/python, that will cause problems.
 


'/Users/lucaurbani/Documents/code/python_scripts/park_fahrtenberechnung'
'/Library/Frameworks/SQLite3.framework/Versions/3/Python'
'/Library/Frameworks/GDAL.framework/Versions/1.6/Python/site-packages'
'/Library/Frameworks/cairo.framework/Versions/1/Python'
'/Applications/GRASS-6.4.app/Contents/MacOS/etc/python'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages'
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk'
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload'
'/Library/Python/2.5/site-packages'
'/usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5'
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC'


Any ideas what could be wrong (Maybe
'/usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5')?



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/import-wx-tp5301729p5315585.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: import wx

2010-07-20 Thread schorschli

Now the 

import wx

command works but the grass wxgui not anymore...
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/import-wx-tp5301729p5315627.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: import wx

2010-07-16 Thread schorschli


William Kyngesburye wrote:
 
 If you're using my GRASS build...,
 
Yes I'm using your GRASS build



William Kyngesburye wrote:
 
 Does the wxpython GUI run in GRASS? (I'm guessing no)
 
The GRASS wxpython GUI is running. 


William Kyngesburye wrote:
 
 Are you doing something with the PYTHONPATH after starting GRASS?  Or are
 you adding to PYTHONPATH in your shell init (.bash_profile, ...)?
 

I just start GRASS without changing the PYTHONPATH...



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/import-wx-tp5301729p5302326.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: Extract coordinates of vertices/nodes

2010-04-28 Thread schorschli

Hi Sophie,

v.out.ascii format=standard might help. 

Here is the manual:
http://grass.itc.it/grass64/manuals/html64_user/v.out.ascii.html

Afterwards you can write a simple script to extract the coordinates from the
ascii-output.


schorschli
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Extract-coordinates-of-vertices-nodes-tp4973423p4973771.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: v.net.path algorithm problem

2010-03-25 Thread schorschli

Hi,

Thanks for your suggestions.

 Perhaps some nodes are missing? I have success in the past by applying 
 http://grass.osgeo.org/grass64/manuals/html64_user/v.net.html

I tried v.net -- report and indeed some nodes where missing. I added those
with v.net --nodes. Running v.net.path can still not found pathes for the
same combinations.


Matthias - if you zoom very closely to any of the categories in the 
error report, do you see a lack of connection between those points and 
the network lines? 

I couldn't find any gap in the network. The connection lines were generated
by v.net -- connect

-- 
View this message in context: 
http://n2.nabble.com/v-net-path-algorithm-problem-tp4789540p4796272.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] v.net.path algorithm problem

2010-03-24 Thread schorschli

Hi,

I'm using v.net.path in a simple example:

http://n2.nabble.com/file/n4789540/Network.png 
http://n2.nabble.com/file/n4789540/Network.png Network.png 

In my example I calculate the shortest path from all green dots (101, 102,
103) to all grey squares (1, 2, 3,...).The nodes are piped in with a
textfile:

1 101 1
2 101 2
3 101 3
4 101 4
5 101 5
6 101 6
7 101 7
8 101 8
9 101 9
10 101 10
11 101 11
12 102 1
13 102 2
14 102 3
15 102 4
16 102 5
...

It seems to me, that the algorithm has some problems. It can not find a path
for all combinations. I get the following warning:


WARNING: Point with category [7] is not reachable from point with category
 [102]
WARNING: Point with category [8] is not reachable from point with category
 [102]
WARNING: Point with category [9] is not reachable from point with category
 [102]
WARNING: Point with category [10] is not reachable from point with category
 [102]
WARNING: Point with category [11] is not reachable from point with category
 [102]
WARNING: 5 destination(s) unreachable (including points out of threshold)


The strange thing is, that after inserting an additional node combination
(999 101 1) twice into the textfile around the prolematic points, the paths
can be generated without warnings or errors.  
So the unproblematic textfile looks like this:

...
15 102 4
16 102 5
17 102 6
999 101 1
18 102 7
19 102 8
999 101 1
20 102 9
21 102 10
22 102 11
23 103 1
24 103 2
...

Also calculating only a single problematic path (e.g 18 102 7) is working
fine.


Does anyone of you know, what could cause this strange behaviour? How does
the order of the nodes influence the algorithm?

Greetings Schorschli


-- 
View this message in context: 
http://n2.nabble.com/v-net-path-algorithm-problem-tp4789540p4789540.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: make command (install add on)

2010-03-22 Thread schorschli

Thanks for answering.


Are you sure about this directory?

MODULE_TOPDIR should point to the GRASS installation directory which
contains bin/, lib/ and other GRASS stuff.


Yes, the directory is the one containing the grass-folders (bin/, lib/ and
others).

I could solve this problem. It was not a wrong MODULE_TOPDIR path, but wrong
extensions for the makefiles.



Now I can run the make command. But this is resulting in hunderts of errors
and warning. Here is a printscreen of the first couple of lignes in the
console...

http://n2.nabble.com/file/n4776893/errors.png 
http://n2.nabble.com/file/n4776893/errors.png errors.png 


So maybe its better to just give it up with the addons...



-- 
View this message in context: 
http://n2.nabble.com/make-command-install-add-on-tp4764072p4776893.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] make command (install add on)

2010-03-19 Thread schorschli

Hi,

I want to test the interesting net.analyze addons (mostly because of
v.net.distance). I've downloaded it but now not able to install it... :-(

Following the instruction first I changed the directory to the path where
the downloaded addons are saved:

cd Documents/temp/net.analyze

Then I tried the make command:

make MODULE_TOPDIR=/Applications/GRASS-6.4.app/Contents/MacOS/

As a result I get the an error:

make: *** Makefile: Is a directory.  Stop.

Does someone know what this could mean and what I'm doing wrong?


Tusend tack,

schorschli
-- 
View this message in context: 
http://n2.nabble.com/make-command-install-add-on-tp4764072p4764072.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: problem using grass.write_comman, db.execute

2010-03-17 Thread schorschli

'db.execute input=-' for stdin only works in grass7. for 6.4+6.5 it is
simpler, just omit the input option all together.

Hi,
What do you mean with omit the input?
Like this?


grass.write_command('db.execute', stdin = sql_coi_percent)




-- 
View this message in context: 
http://n2.nabble.com/problem-using-grass-write-comman-db-execute-tp3753409p4749063.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Environment variables for Mac OSX

2010-03-11 Thread schorschli

Hi all,

I wanted to start writing small python scripts for grass. Unfortunatelly I
fail to set the environment variables right. I'm struggeling since hours to
get them right. I found topics about environment variable in linux and
windows, but nothing for mac:

http://grass.osgeo.org/wiki/GRASS_and_Python

http://grass.osgeo.org/wiki/Using_Eclipse_to_develop_GRASS_Python_programs

Here is my last version I tried:


GISBASE = /Applications/GRASS-6.4.app/Contents/MacOS
LD_LIBARY_PATH = /Applications/GRASS-6.4.app/Contents/MacOS/lib
PATH = /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/
PYTHONLIB = /System/Library/Frameworks/Python.framework/Versions/2.5
PYTHONPATH = /Applications/GRASS-6.4.app/Contents/MacOS/etc/python

I have no clue how to define GISRC and GRASS_SH.

It would be great, if someone could give me some advices how they should be
defined.

Kind regards,

Mat



-- 
View this message in context: 
http://n2.nabble.com/Environment-variables-for-Mac-OSX-tp4716253p4716253.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user