Re: [GRASS-user] New AddOns for Analyzing landscape connectivity based on graph-theory - the r.connectivity.*-toolchain
OK, then I will add an example based on the North Carolina dataset, as soon as I find the time for that. I do not think addidional data is necessary. I will figure that out and come back to you if necessary. In the meantime, I made some adjustments in the scripts, so they can be run with WinGRASS as well. But I did not manage to add the AddOns using g.extension under MS Windows. In this context I have two additional questions (in order to make the AddOns available on Windows as well): For WinGRASS version 6, additional .bat files are required in the bin-folder. Should these bat-files be added to the svn-repository? If the AddOns are not compiled, no html-help is build either. Should one add a complete module.html to the svn repository? Stefan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/New-AddOns-for-Analyzing-landscape-connectivity-based-on-graph-theory-the-r-connectivity-toolchain-tp5000351p5001370.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] v.lrs
On Tue, Jul 17, 2012 at 12:19 PM, Enrico G mrenric...@gmail.com wrote: Hello everybody, I am trying to understand if GRASS fits me with its v.lrs module and how can I use it I have created a (yet minimal) new Wiki page: http://grass.osgeo.org/wiki/Linear_Reference_System On the page, there are two articles listed which may be of interest, I work as a marine surveyor mainly in the offshore oil gas industry, occasionly cable environmental as well. In this environment, everything is referenced to a (p)line and its offsets. Offset here are usually meters off a line, + or - outside a line (depending on bearing), which is a different referencing method than the one used in v.lrs, correct? In GRASS, an offset is the distance from a milepost along the line. I.e. ---A-- 013456 -- ---B-- A = KP 1.25 DX = 1 B = KP 4.75 DX = -2 where: KP = miles post (distance from start of line) DX = offset Why is this distance to the line important for you? It won't be reached anyway if not connected. On the other hand, GRASS supports deviations, see http://grass.osgeo.org/grass64/manuals/html64_user/lrs.html Sorry for the delay in answering, Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.lrs
On 12/09/12 14:40, Markus Neteler wrote: On Tue, Jul 17, 2012 at 12:19 PM, Enrico Gmrenric...@gmail.com wrote: Hello everybody, I am trying to understand if GRASS fits me with its v.lrs module and how can I use it I have created a (yet minimal) new Wiki page: http://grass.osgeo.org/wiki/Linear_Reference_System On the page, there are two articles listed which may be of interest, I work as a marine surveyor mainly in the offshore oil gas industry, occasionly cable environmental as well. In this environment, everything is referenced to a (p)line and its offsets. Offset here are usually meters off a line, + or - outside a line (depending on bearing), which is a different referencing method than the one used in v.lrs, correct? In GRASS, an offset is the distance from a milepost along the line. I.e. ---A-- 013456 -- ---B-- A = KP 1.25 DX = 1 B = KP 4.75 DX = -2 where: KP = miles post (distance from start of line) DX = offset Why is this distance to the line important for you? It won't be reached anyway if not connected. v.lrs.create has 'thresh' option to take into account points that are not exactly on the line. You might want to use a combination of v.lrs.* + v.distance. Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[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] New AddOns for Analyzing landscape connectivity based on graph-theory - the r.connectivity.*-toolchain
On Wed, Sep 12, 2012 at 10:48 AM, SBL stefan.blumentr...@nina.no wrote: OK, then I will add an example based on the North Carolina dataset, as soon as I find the time for that. I do not think addidional data is necessary. I will figure that out and come back to you if necessary. In the meantime, I made some adjustments in the scripts, so they can be run with WinGRASS as well. Congratulations! But I did not manage to add the AddOns using g.extension under MS Windows. (They appear to be compiled: http://wingrass.fsv.cvut.cz/grass64/addons/grass-6.4.3svn/ ) In this context I have two additional questions (in order to make the AddOns available on Windows as well): For WinGRASS version 6, additional .bat files are required in the bin-folder. Should these bat-files be added to the svn-repository? I think yes, and the Makefile should take care to get them into the bin-folder. If the AddOns are not compiled, no html-help is build either. Should one add a complete module.html to the svn repository? No since this would generate double parameter entries. You can see them in HTML mode through trac, e.g. https://svn.osgeo.org/grass/grass-addons/grass6/raster/r.connectivity.corridors/description.html (svn propset must be right for this, I fixed it) 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
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] g.extension problem
Jan wrote: we have a problem with g.extension, that seems to be the same that was discussed here a few days ago in the r.stream.order export to shapefile thread. There is also a ticket at http://trac.osgeo.org/grass/ticket/1721 but I do not fully understand the reason why the bug is invalid. ... I have a clean installation, and in the install tree the file g.html2man is located in the directory tools/g.html2man and not directly under tools. Hi, I will have another look with a fresh build + 'make install' on a fresh linux machine. regards, Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] New AddOns for Analyzing landscape connectivity based on graph-theory - the r.connectivity.*-toolchain
But I did not manage to add the AddOns using g.extension under MS Windows. (They appear to be compiled: http://wingrass.fsv.cvut.cz/grass64/addons/grass-6.4.3svn/ ) tried here with osgeo4w-wingrass6.4.3svn g.extension.py extension=r.connectivity.corridors svnurl=http://svn.osgeo.org/grass/grass-addons/grass6 Downloading precompiled GRASS Addons r.connectivity.corridors... Updating metadata file... Installation of r.connectivity.corridors successfully finished (Wed Sep 12 23:07:38 2012) Command finished (3 sec) (Wed Sep 12 23:07:46 2012) g.extension.py extension=r.connectivity.distance svnurl=http://svn.osgeo.org/grass/grass-addons/grass6 Downloading precompiled GRASS Addons r.connectivity.distance... Updating metadata file... Installation of r.connectivity.distance successfully finished (Wed Sep 12 23:07:50 2012) Command finished (3 sec) (Wed Sep 12 23:07:56 2012) g.extension.py extension=r.connectivity.network svnurl=http://svn.osgeo.org/grass/grass-addons/grass6 Downloading precompiled GRASS Addons r.connectivity.network... Updating metadata file... Installation of r.connectivity.network successfully finished (Wed Sep 12 23:07:59 2012) Command finished (3 sec) - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/New-AddOns-for-Analyzing-landscape-connectivity-based-on-graph-theory-the-r-connectivity-toolchain-tp5000351p5001549.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] New AddOns for Analyzing landscape connectivity based on graph-theory - the r.connectivity.*-toolchain
For WinGRASS version 6, additional .bat files are required in the bin-folder. Should these bat-files be added to the svn-repository? I think yes, and the Makefile should take care to get them into the bin-folder. AFAIK bat-files are built by addon-compilation: C:\Users\X\AppData\Roaming\GRASS6\addons dir /b modules.xml r.connectivity.corridors r.connectivity.corridors.bat r.connectivity.distance r.connectivity.distance.bat r.connectivity.network r.connectivity.network.bat [...] the wx-gui of the 3 modules are starting, but the manual is missing in the wx-gui; altough the html's are built and in C:\Users\\AppData\Roaming\GRASS6\addons\docs\html - best regards Helmut -- View this message in context: http://osgeo-org.1560.n6.nabble.com/New-AddOns-for-Analyzing-landscape-connectivity-based-on-graph-theory-the-r-connectivity-toolchain-tp5000351p5001551.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