Opened 14 years ago
Closed 14 years ago
#1232 closed defect (fixed)
gui modeler don't works as aspected
Reported by: | epifanio | Owned by: | martinl |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.1 |
Component: | wxGUI | Version: | |
Keywords: | modeler | Cc: | grass-dev@… |
CPU: | All | Platform: | All |
Description
Hi i'm trying to use the grass modeler in the wx gui, but i have some problems to use it :
the "run" action do not works
i tried on both osx and linux, with grass65 and 70
tring to run the model from the gui don't print any useful log tring to save it as script, the resulting file is not complete :
projectfile :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE gxm SYSTEM "grass-gxm.dtd"> <gxm> <window pos="316,250" size="640,480" /> <properties> <name>model</name> <description>Script generated by wxGUI Graphical Modeler.</description> <author>habcam</author> </properties> <action id="1" name="g.region" pos="305,115" size="100,50"> <task name="g.region"> <parameter name="rast"> <value>bugsites</value> </parameter> <flag name="p" /> </task> </action> <data pos="110,120" size="175,50"> <data-parameter prompt="raster"> <value>bugsites</value> </data-parameter> <relation dir="from" id="1" name="rast"> </relation> </data> </gxm>
python script generated by grass65 (incomplete) :
#!/usr/bin/env python # # ..... # import sys import os import atexit import grass.script as grass
python script generated by grass70 (it works from command line):
import sys import os import atexit import grass.script as grass def cleanup(): pass def main(): grass.run_command("g.region", flags = 'p', rast = "bugsites") return 0 if __name__ == "__main__": options, flags = grass.parser() atexit.register(cleanup) sys.exit(main())
the save as image also don't works on both grass 65 and 70
Change History (2)
comment:1 by , 14 years ago
Cc: | added |
---|---|
Milestone: | → 6.4.1 |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Hopefully fixed in r44570.