Timeline for Executing Python script for GRASS from PHP
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 14, 2012 at 6:51 | comment | added | markusN | You may add the execution of "g.gisenv" after "one" to get the session settings printed. Perhaps some paths are not yet right? | |
Sep 13, 2012 at 17:37 | comment | added | Dawid | many thanks for your suggestions. actually, while run on command line the script works fine.the problem, however, occurs when I try to run it via a web browser. I.e.there is a website I created, mostly php-based. within the website's code there is a line <<echo system("./FILENAME.py");>> which should execute a script of FILENAME.py and print out its results. Unfortunately when open the website, the grass-part of FILENAME.py code is omitted (i.e."one" "two" etc are printed but the csv file isn't created). | |
Sep 8, 2012 at 19:41 | comment | added | markusN | The best is to run the script as python script on command line (MSYS in case of Windows). | |
Sep 8, 2012 at 19:40 | history | edited | markusN | CC BY-SA 3.0 |
Problem fixed
|
Sep 1, 2012 at 12:56 | comment | added | Dawid | my bad. I should have written that in the script I use the real names of my GRASS location and mapset instead of 'LOCATION NAME' and 'MAPSET NAME'. likewise, in gisdbase=os.path.join("PATH") the actual directory path is provided instead of "PATH" | |
Sep 1, 2012 at 9:25 | history | answered | markusN | CC BY-SA 3.0 |