[GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Greetings I have used in Linux the r.out.kml script. Now, I hava installed Grass GIS (WinGRASS-6.4.2-2-Setup.exe) in Windows and I have placed my r.out.kml file in scripts folder and created a r.out.kml.bat file (with the path to the file) in bin folder. When I write r.out.kml in command console I get: Traceback (most recent call last): File "C:\GRASS642\etc\wxpython\gui_modules\prompt.py", line 1105, in OnKeyPressed self.parent.RunCmd(cmd) File "C:\GRASS642\etc\wxpython\gui_modules\goutput.py", line 523, in RunCmd task = menuform.GUI(show = None).ParseCommand(command) File "C:\GRASS642\etc\wxpython\gui_modules\menuform.py", line 1732, in ParseCommand blackList = _blackList) File "C:\GRASS642\etc\python\grass\script\task.py", line 460, in parse_interface tree = etree.fromstring(get_interface_description(name)) File "C:\GRASS642\Python27\lib\xml\etree\ElementTree.py", line 1283, in XML return parser.close() File "C:\GRASS642\Python27\lib\xml\etree\ElementTree.py", line 1636, in close self._raiseerror(v) File "C:\GRASS642\Python27\lib\xml\etree\ElementTree.py", line 1488, in _raiseerror raise err xml.etree.ElementTree . ParseError : no element found: line 1, column 0 When I try to run other scripts (e.g. v.report) I get also this error: Traceback (most recent call last): File "C:\GRASS642\etc\wxpython\gui_modules\prompt.py", line 1105, in OnKeyPressed self.parent.RunCmd(cmd) File "C:\GRASS642\etc\wxpython\gui_modules\goutput.py", line 523, in RunCmd task = menuform.GUI(show = None).ParseCommand(command) File "C:\GRASS642\etc\wxpython\gui_modules\menuform.py", line 1732, in ParseCommand blackList = _blackList) File "C:\GRASS642\etc\python\grass\script\task.py", line 460, in parse_interface tree = etree.fromstring(get_interface_description(name)) File "C:\GRASS642\Python27\lib\xml\etree\ElementTree.py", line 1283, in XML return parser.close() File "C:\GRASS642\Python27\lib\xml\etree\ElementTree.py", line 1636, in close self._raiseerror(v) File "C:\GRASS642\Python27\lib\xml\etree\ElementTree.py", line 1488, in _raiseerror raise err xml.etree.ElementTree . ParseError : no element found: line 1, column 0 What shall be done? Shall I downgrade to a previous vertsion? Thanks Antonio ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>Now, I hava installed Grass >GIS (WinGRASS-6.4.2-2-Setup.exe) in Windows and I have placed my >r.out.kml file in scripts folder and created a r.out.kml.bat file (with >the path to the file) in bin folder. When I write r.out.kml in command >console I get: [...] >When I try to run other scripts (e.g. v.report) I get also this error: >Traceback (most recent call last): > File "C:\GRASS642\etc\wxpython\gui_modules\prompt.py", >line 1105, in OnKeyPressed tried here with osgeo4w-WinGRASS-6.4.2, v.report works: v.report map=firestations@PERMANENT option=coor Zeige Typ/Name der Spalten der Datenbank des Layers 1: cat|ID|LABEL|LOCATION|CITY|MUN_COUNT|PUMPERS|PUMPER_TAN|TANKER|MINI_PUMPE|RESCUE_SER|AERIAL|BRUSH|OTHERS|WATER_RESC|MUNCOID|BLDGCODE|AGENCY|STATIONID|RECNO|CV_SID2|CVLAG|x|y|z 1|24|Morrisville #3|6804 Carpenter Fire Station Rd|Morrisville|M|0|3|0|0|0|0|1|0|0|1|240|FD|MF3A|1|MF3A|1.4|620856.958587634|230066.383132105|0 [...] - can you try it in the osgeo4w-WinGRASS-6.4.2? - do you have more than one python in your system? - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001508.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
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>Now, I hava installed Grass >GIS (WinGRASS-6.4.2-2-Setup.exe) in Windows and I have placed my >r.out.kml file in scripts folder and created a r.out.kml.bat file (with >the path to the file) in bin folder. have you tried g.extension to install r.out.kml? - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001509.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
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>have you tried g.extension to install r.out.kml? r.out.kml installed here by g.extension: (1) r.out.kml --verbose map=routkml@gmted2010 output=grassraster2pngkml produces grassraster2pngkml.kml and grassraster2pngkml.png in the root C:\ (should be changed to i.e. %USER%) and is displayed in google earth (2) format=geotiff works also, but the tiff isn't displayed in google earth (3) flag -z doesn't work, because zip isn't found - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001516.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
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>Shall I downgrade to a previous vertsion? could you try the upcoming wingrass6.4.3svn? : http://wingrass.fsv.cvut.cz/grass64/ or within the osgeo4w-stack - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001518.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
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>What shall be done? Shall I downgrade to a previous vertsion? fyi a quick and dirty workaround (if it's a wgs84-latlon-location: EPSG:4326): r.out.png -w input=routkml@gmted2010 output=C:\tmp\grassout.png gdal_translate -of KMLSUPEROVERLAY -a_srs EPSG:4326 grassout.png togoogleearth.kmz then you get a nice tiled and fast kmz/kml - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001532.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
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>Now, I hava installed Grass >GIS (WinGRASS-6.4.2-2-Setup.exe) in Windows and I have placed my >r.out.kml file in scripts folder and created a r.out.kml.bat file (with >the path to the file) in bin folder. weird... now also tested here with the standalone WinGRASS-6.4.2-2-Setup.exe, v.report and r.out.kml (installed by g.extension) works. ? - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001547.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
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Hi I have just uninstalled Binary version and installed GRASS from OSGEO4W. Script files work just fine. I tried to install r.out.kml with g.extension but I got this error: which: svn: unknown command ERROR: svn client required. Please install Subversion first. (maybe it is relevant to indicate that in the help file and a few links to Subversion clients) Nevertheless, I added the script file into script folder, html to manual page and created a r.out.kml.bat in bin folder and it worked. Bes regards, Antonio Rocha -- António Rocha Earth Observation Applications and Services Av. D. João II, Lt 1.17.01 - 10º, Ed. Torre Zen 1998-023 Lisboa, Portugal Ph: +351 21 893 30 23 Fax: +351 21 896 90 99 http://www.deimos.pt ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Hi, 2012/9/13 António Rocha : > I tried to install r.out.kml with g.extension but I got this error: > which: svn: unknown command > ERROR: svn client required. Please install Subversion first. > (maybe it is relevant to indicate that in the help file and a few links to > Subversion clients) have you tried to install extension from command line or wxGUI [1]? wxGUI uses another g.extension (Python based) which should download on Windows directly prepared binaries. Martin [1] http://grass.osgeo.org/wiki/WxGUI#Extension_Manager -- Martin Landa * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Hi, 2012/9/13 Martin Landa : > have you tried to install extension from command line or wxGUI [1]? > wxGUI uses another g.extension (Python based) which should download on > Windows directly prepared binaries. to avoid user confusion, probably bash script `g.extension` should end on Windows with an error, eg. "g.extension is not working on MS Windows. Use wxGUI Extension Manager instead." or similar... Martin -- Martin Landa * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Hello Martin I tried from the command line in the GUI. Ok next time I will give a try with that extension. Thanks On 13-09-2012 10:40, Martin Landa wrote: Hi, 2012/9/13 António Rocha : I tried to install r.out.kml with g.extension but I got this error: which: svn: unknown command ERROR: svn client required. Please install Subversion first. (maybe it is relevant to indicate that in the help file and a few links to Subversion clients) have you tried to install extension from command line or wxGUI [1]? wxGUI uses another g.extension (Python based) which should download on Windows directly prepared binaries. Martin [1] http://grass.osgeo.org/wiki/WxGUI#Extension_Manager -- António Rocha Earth Observation Applications and Services Av. D. João II, Lt 1.17.01 - 10º, Ed. Torre Zen 1998-023 Lisboa, Portugal Ph: +351 21 893 30 23 Fax: +351 21 896 90 99 http://www.deimos.pt ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
On Thu, Sep 13, 2012 at 11:40 AM, Martin Landa wrote: ... > have you tried to install extension from command line or wxGUI [1]? > wxGUI uses another g.extension (Python based) which should download on > Windows directly prepared binaries. I wonder if the command line bash shell g.extension could be redicted *on Windows* to the Python based g.extension to avoid these problems? Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
2012/9/13 António Rocha : > I tried from the command line in the GUI. > Ok next time I will give a try with that extension. Thanks you can use from wxGUI CLI `g.extension.py` (note `py` extension). Martin -- Martin Landa * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Hi, 2012/9/13 Markus Neteler : > I wonder if the command line bash shell g.extension could be redicted > *on Windows* to > the Python based g.extension to avoid these problems? probably yes, note that `g.extension.py` (located in `etc/gui/scripts`) is added to the PATH only for wxGUI. Martin -- Martin Landa * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
Markus N: > I wonder if the command line bash shell g.extension could be redicted > *on Windows* to the Python based g.extension to avoid these problems? I purposely left the g.extension(.sh) installed in the Windows build as theoretically & fundamentally it should work if the user has a full compiler and build environment for grass set up. For those people, and in the hope that someone might be able to make it work better someday, it remains. I get really frustrated by software that assumes it knows better and locks out otherwise possible things, so I try not to replicate that behaviour... As it is anecdotally quite rare for Windows users to have that full build-from-source environment (most download the pre-built .exe installer) if it does remain, I would think it good to add a WARNING for Windows command line users to try it from the GUI instead. (and so download pre-built parcels from Martin's site) e.g. for the debian/ubuntu packages g.extension(.*) returns a non-fatal warning if the -dev package isn't installed too, which says "what you are trying to do probably won't work, this is why, and this is how to fix it". best, Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
On Fri, Sep 14, 2012 at 5:57 AM, Hamish wrote: > Markus N: >> I wonder if the command line bash shell g.extension could be redicted >> *on Windows* to the Python based g.extension to avoid these problems? > > I purposely left the g.extension(.sh) installed in the Windows build as > theoretically & fundamentally it should work if the user has a full compiler > and build environment for grass set up. For those people, and in the hope > that someone might be able to make it work better someday, it remains. I tend to disagree - most (99%?) of our Windows users will not have a compiler environment installed. Just browse the archives how many failed into the trap of using g.extension on Windows on command line... It will not work for most of them ever. Hence we tell them to use the wxGUI and voilà it works for most. > I get really frustrated by software that assumes it knows better and locks > out otherwise possible things, so I try not to replicate that behaviour... Most winGRASS users get frustrated to be mislead here. > As it is anecdotally quite rare for Windows users to have that full > build-from-source environment (most download the pre-built .exe installer) > if it does remain, I would think it good to add a WARNING for Windows > command line users to try it from the GUI instead. Yes, this is the minimum we can do. Or just get it done automatically: if no gcc present, switch to the Python script. This should be urgently fixed. Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error
>> I purposely left the g.extension(.sh) installed in the Windows build as >> theoretically & fundamentally it should work if the user has a full >> compiler >> and build environment for grass set up. For those people, and in the hope >> that someone might be able to make it work better someday, it remains. > >I tend to disagree - most (99%?) of our Windows users will not have >a compiler environment installed. Just browse the archives how many >failed into the trap of using g.extension on Windows on command line... [...] >Yes, this is the minimum we can do. >Or just get it done automatically: if no gcc present, switch to the >Python script. AFAIK the standalone wingrass-installer has an build/compiler environment inside, because it's based upon the osgeo4w-build-stack; but there are whitespace-in-path-issues related to gcc etc. "normal" osgeo4w-wingrass-users probably hasn't installed the build-deps by default. >This should be urgently fixed. +1 - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-r-out-kml-and-scripts-in-Windows-Binary-error-tp5001496p5001913.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