Re: [GRASS-user] How effective is scripting in win-GRASS?
On 10/04/08 15:11, Daniel Victoria wrote: In the email topic you asked about scripting... Well, I have a friend here that is not very computer literate but he needs to use some python scripts I wrote for Grass. I installed winGrass for him and I'm surprised how fast he learned! Also, the python scripts works normally, after some debugging (had to remove some spaces on r.mapcalc expressions). All you have to do is call the python script in the command window and ask for it to run from a terminal... For scripting I had to install MinSys (is that the correct name) and all works like a charm! The only thing that is bugging me is that I don't know how to use grass commands from the command line. We are typing the commands in the command window and hit Run. Is there a way to issue grass commands from the windows terminal? See http://grass.osgeo.org/grass63/binary/mswindows/#Launching%20GRASS (Launching GRASS) Moritz Cheers Daniel On Thu, Apr 10, 2008 at 9:53 AM, Nikos Alexandris [EMAIL PROTECTED] wrote: On Thu, 2008-04-10 at 13:31 +0800, maning sambale wrote: But I use the FOSS4G2006 CD without minimal problems for my basic GIS classes. A bit old but very reliable (at least for me). I mean: with minimal problems Thank you Maning ;-) ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Orthorectification of Historic Aerial Photographs
On Fri, Apr 11, 2008 at 5:09 AM, Shaun Melissa Busler [EMAIL PROTECTED] wrote: Markus, Thanks for the suggestion. I will give those focal lengths a try. What do you mean by i.ortho.photo is robust and hope that it converges? It won't explode :-) I mean that even if you are off from the true value it may still get out a result. Markus PS: The algorithms is described in Elements of Photogrammetry, With Air Photo Interpretation and Remote Sensing by Paul R. Wolf, 562 pages Publisher: McGraw Hill Text; 2nd edition (January 1983) (get that for cheap as second hand book. if interested..) ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] How effective is scripting in win-GRASS?
Nice... Had missed that tip about grass launching Thanks Daniel On Fri, Apr 11, 2008 at 7:06 AM, Moritz Lennert [EMAIL PROTECTED] wrote: On 10/04/08 15:11, Daniel Victoria wrote: In the email topic you asked about scripting... Well, I have a friend here that is not very computer literate but he needs to use some python scripts I wrote for Grass. I installed winGrass for him and I'm surprised how fast he learned! Also, the python scripts works normally, after some debugging (had to remove some spaces on r.mapcalc expressions). All you have to do is call the python script in the command window and ask for it to run from a terminal... For scripting I had to install MinSys (is that the correct name) and all works like a charm! The only thing that is bugging me is that I don't know how to use grass commands from the command line. We are typing the commands in the command window and hit Run. Is there a way to issue grass commands from the windows terminal? See http://grass.osgeo.org/grass63/binary/mswindows/#Launching%20GRASS (Launching GRASS) Moritz Cheers Daniel On Thu, Apr 10, 2008 at 9:53 AM, Nikos Alexandris [EMAIL PROTECTED] wrote: On Thu, 2008-04-10 at 13:31 +0800, maning sambale wrote: But I use the FOSS4G2006 CD without minimal problems for my basic GIS classes. A bit old but very reliable (at least for me). I mean: with minimal problems Thank you Maning ;-) ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] areas
hi, I was wondering if it is posible to measure areas and distances inside GRASS, and save the values in a table. wich commands do I have to use? thank you Isabel ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] areas
Hi, 2008/4/11, Isabel Alfaro Cardozo [EMAIL PROTECTED]: hi, I was wondering if it is posible to measure areas and distances inside GRASS, and save the values in a table. if you mean areas of polygons and length of linear feature you can use v.to.db module. For distance measuring use d.measure or GUI tool. Martin -- Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] areas
On 11/04/08 14:42, Isabel Alfaro Cardozo wrote: hi, I was wondering if it is posible to measure areas and distances inside GRASS, and save the values in a table. wich commands do I have to use? This depends whether you work in raster or vector, but in vector look at the following: v.to.db v.distance For raster maps you should check out r.distance r.stats (possible with r.clump) Moritz thank you Isabel ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] areas
On Sat, 2008-04-12 at 08:12 +, Isabel Alfaro Cardozo wrote: hi, I was wondering if it is posible to measure areas and distances inside GRASS, and save the values in a table. wich commands do I have to use? thank you Isabel 2 more examples for categorised raster maps (in this case I have a fragment of the GLC2000 land cover map): r.report -nh glc2000_areas units=h +-+ | Category Information | | | #|description | hectares| |-| | 2|Tree Cover, broadleaved, deciduous, closed . . . . . . . . . . | 1300.00| | 4|Tree Cover, needle-leaved, evergreen . . . . . . . . . . . . . | 46,000.00| | 6|Tree Cover, mixed leaf type. . . . . . . . . . . . . . . . . . | 16,500.00| |11|Shrub Cover, closed-open, evergreen. . . . . . . . . . . . . . | 85,900.00| |12|Shrub Cover, closed-open, deciduous. . . . . . . . . . . . . . | 600.00| |16|Cultivated and managed areas . . . . . . . . . . . . . . . . . | 16,100.00| |-| |TOTAL |166,400.00| +-+ - r.stats -an glc2000_areas r.stats: 100% 2 1300.00 4 46000.00 6 16500.00 11 85900.00 12 600.00 16 16100.00 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Problem removing mapsets in g.mapset
I can't seem to remove mapsets in g.mapsets using the new removemapset parameter. Ex: $ g.mapsets -p ED_Legacy_Data PERMANENT 2007006 $ g.mapsets rem=2007006 $ g.mapsets -p ED_Legacy_Data PERMANENT 2007006 g.list is still fetching raster map names from the removed mapset as well: $ g.list rast -- raster files available in mapset ED_Legacy_Data: snip raster files available in mapset PERMANENT: snip raster files available in mapset 2007006: (all rasters follow) ~ Eric. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Problem removing mapsets in g.mapset
Hi, should be fixed now http://trac.osgeo.org/grass/changeset/30939 Martin 2008/4/11, Patton, Eric [EMAIL PROTECTED]: I can't seem to remove mapsets in g.mapsets using the new removemapset parameter. Ex: $ g.mapsets -p ED_Legacy_Data PERMANENT 2007006 $ g.mapsets rem=2007006 $ g.mapsets -p ED_Legacy_Data PERMANENT 2007006 g.list is still fetching raster map names from the removed mapset as well: $ g.list rast -- raster files available in mapset ED_Legacy_Data: snip raster files available in mapset PERMANENT: snip raster files available in mapset 2007006: (all rasters follow) ~ Eric. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user -- Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Another error with wxpython GUI in RC6
Hi, 1/ I've just compiled GRASS63 RC6 on a Slackware12.1RC1 machine. Had a bit of a fight during make. Errors in: /home/dad/grass/grass-6.3.0RC6/gui/wxpython/vdigit Workaround, as per http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README cd /usr/local/lib sudo ln -s /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so libgdi.so 2/ When I try to run it - grass63 -wxpython - I get the following Message: Starting GRASS ... Traceback (most recent call last): File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 710, in module GRASSStartUp = StartUp(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7836, in __init__ self._BootstrapApp() File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7433, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 694, in OnInit StartUp = GRASSStartup() File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 154, in __init__ self._set_properties() File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 193, in _set_properties self.OnSetDatabase(None) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 579, in OnSetDatabase self.OnSelectLocation(event) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 561, in OnSelectLocation self.lbmapsets.SetSelection(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py, line 1325, in SetSelection return _controls_.ListBox_SetSelection(*args, **kwargs) wx._core.PyAssertionError: C++ assertion IsValid(n) failed at ../src/gtk/listbox.cpp(859) in DoSetSelection(): invalid index in wxListBox::SetSelection Error in GUI startup. If necessary, please report this error to the GRASS developers. The tcltk GUI - grass63 -tcltk - starts without problems. My wxPython is the latest released source from http://www.wxpython.org/download.php, being wxPython-src-2.8.7.1.tar.bz2 Python: 2.5.2. gcc: 4.2.3 The Python wxPython installations seem to be OK, as the example demo.py from wxPython/demo runs OK. i.e. python demo.py Its Help About wxPython Demo reports: wxPython 2.8.7.1 (wxGTK, unicode, gtk2, wx-assertions-on, SWIG-1.3.29) Running on Python 2.5.2 Any ideas what might be wrong? Cheers, Peter -- View this message in context: http://www.nabble.com/Another-error-with-wxpython-GUI-in-RC6-tp16627913p16627913.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 sqlite
Hello list! I was importing lidar data into a 3D point with the sqlite dbase driver. While it was chugging on that, I tried to import some simple polygon data. I got a database locked message. Does this mean that database access in a mapset (when using sqlite) is limited to one vector at a time? Have a great friday! Mark ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Another error with wxpython GUI in RC6
Hi Martin, I checked out revision 30941. ../configure fails with: checking if system supports Large Files at all... yes checking whether to use Python... yes checking for python-config... /usr/bin/python-config checking for Python.h... yes checking for swig... no configure: error: *** couldn't find swig Is swig a new dependency? It is not installed. Cheers, Peter PS - If useful, here are my compile options: CHOST=i686-pc-linux-gnu \ CFLAGS=-march=prescott -O2 -pipe -fomit-frame-pointer \ CXXFLAGS=${CFLAGS} \ LDFLAGS=-s \ ../configure \ --with-cxx \ --with-postgres=no \ --with-sqlite \ --with-sqlite-includes=/usr/local/include \ --with-sqlite-libs=/usr/local/lib \ \ --with-freetype \ --with-freetype-includes=/usr/include/freetype2 \ --with-motif \ --with-glw=no \ \ --with-ffmpeg \ --with-ffmpeg-includes=/usr/local/include/ffmpeg \ --with-proj-includes=/usr/local/include \ --with-proj-libs=/usr/local/lib \ --with-proj-share=/usr/local/share/proj \ --enable-largefile \ \ --with-python \ --with-wxwidgets \ --with-gdal Martin Landa [EMAIL PROTECTED] wrote: Hi, please try to compile 6.3.0svn, the same error?? svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_6_3 grass63_release Regards, Martin 2008/4/11, geep999 : 2/ When I try to run it - grass63 -wxpython - I get the following Message: Starting GRASS ... Traceback (most recent call last): File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 710, in GRASSStartUp = StartUp(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7836, in __init__ self._BootstrapApp() File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7433, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 694, in OnInit StartUp = GRASSStartup() File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 154, in __init__ self._set_properties() File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 193, in _set_properties self.OnSetDatabase(None) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 579, in OnSetDatabase self.OnSelectLocation(event) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 561, in OnSelectLocation self.lbmapsets.SetSelection(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py, line 1325, in SetSelection return _controls_.ListBox_SetSelection(*args, **kwargs) wx._core.PyAssertionError: C++ assertion IsValid(n) failed at ../src/gtk/listbox.cpp(859) in DoSetSelection(): invalid index in wxListBox::SetSelection Error in GUI startup. If necessary, please report this error to the GRASS developers. The tcltk GUI - grass63 -tcltk - starts without problems. My wxPython is the latest released source from http://www.wxpython.org/download.php, being wxPython-src-2.8.7.1.tar.bz2 Python: 2.5.2. gcc: 4.2.3 The Python wxPython installations seem to be OK, as the example demo.py from wxPython/demo runs OK. i.e. python demo.py Its Help About wxPython Demo reports: wxPython 2.8.7.1 (wxGTK, unicode, gtk2, wx-assertions-on, SWIG-1.3.29) Running on Python 2.5.2 Any ideas what might be wrong? Cheers, Peter -- View this message in context: http://www.nabble.com/Another-error-with-wxpython-GUI-in-RC6-tp16627913p16627913.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 -- Martin Landa * http://gama.fsv.cvut.cz/~landa * - Yahoo! for Good helps you make a difference___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Another error with wxpython GUI in RC6
Hi Martin, Installed swig-1.3.35. Installed grass 6.3.0 svn revision 30941. I get exactly the same error: Starting GRASS ... Traceback (most recent call last): File /usr/local/grass-6.3.0svn/etc/wxpython/gis_set.py, line 710, in module GRASSStartUp = StartUp(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7836, in __init__ self._BootstrapApp() File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7433, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File /usr/local/grass-6.3.0svn/etc/wxpython/gis_set.py, line 694, in OnInit StartUp = GRASSStartup() File /usr/local/grass-6.3.0svn/etc/wxpython/gis_set.py, line 154, in __init__ self._set_properties() File /usr/local/grass-6.3.0svn/etc/wxpython/gis_set.py, line 193, in _set_properties self.OnSetDatabase(None) File /usr/local/grass-6.3.0svn/etc/wxpython/gis_set.py, line 579, in OnSetDatabase self.OnSelectLocation(event) File /usr/local/grass-6.3.0svn/etc/wxpython/gis_set.py, line 561, in OnSelectLocation self.lbmapsets.SetSelection(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py, line 1325, in SetSelection return _controls_.ListBox_SetSelection(*args, **kwargs) wx._core.PyAssertionError: C++ assertion IsValid(n) failed at ../src/gtk/listbox.cpp(859) in DoSetSelection(): invalid index in wxListBox::SetSelection Error in GUI startup. If necessary, please report this error to the GRASS developers. Switching to text mode now. Hit RETURN to continue... Cheers, Peter Martin Landa [EMAIL PROTECTED] wrote: Hi, please try to compile 6.3.0svn, the same error?? svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_6_3 grass63_release Regards, Martin 2008/4/11, geep999 : 2/ When I try to run it - grass63 -wxpython - I get the following Message: Starting GRASS ... Traceback (most recent call last): File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 710, in GRASSStartUp = StartUp(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7836, in __init__ self._BootstrapApp() File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py, line 7433, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 694, in OnInit StartUp = GRASSStartup() File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 154, in __init__ self._set_properties() File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 193, in _set_properties self.OnSetDatabase(None) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 579, in OnSetDatabase self.OnSelectLocation(event) File /usr/local/grass-6.3.0RC6/etc/wxpython/gis_set.py, line 561, in OnSelectLocation self.lbmapsets.SetSelection(0) File /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py, line 1325, in SetSelection return _controls_.ListBox_SetSelection(*args, **kwargs) wx._core.PyAssertionError: C++ assertion IsValid(n) failed at ../src/gtk/listbox.cpp(859) in DoSetSelection(): invalid index in wxListBox::SetSelection Error in GUI startup. If necessary, please report this error to the GRASS developers. The tcltk GUI - grass63 -tcltk - starts without problems. My wxPython is the latest released source from http://www.wxpython.org/download.php, being wxPython-src-2.8.7.1.tar.bz2 Python: 2.5.2. gcc: 4.2.3 The Python wxPython installations seem to be OK, as the example demo.py from wxPython/demo runs OK. i.e. python demo.py Its Help About wxPython Demo reports: wxPython 2.8.7.1 (wxGTK, unicode, gtk2, wx-assertions-on, SWIG-1.3.29) Running on Python 2.5.2 Any ideas what might be wrong? Cheers, Peter -- View this message in context: http://www.nabble.com/Another-error-with-wxpython-GUI-in-RC6-tp16627913p16627913.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 -- Martin Landa * http://gama.fsv.cvut.cz/~landa * - Yahoo! for Good helps you make a difference___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Another error with wxpython GUI in RC6
Peter Gardner wrote: Hi Martin, I checked out revision 30941. ../configure fails with: checking if system supports Large Files at all... yes checking whether to use Python... yes checking for python-config... /usr/bin/python-config checking for Python.h... yes checking for swig... no configure: error: *** couldn't find swig Is swig a new dependency? --with-python now checks for it. Note that you only need to use --with-python if you want to compile Python extensions (the Python digitiser module and the Python bindings for the GRASS libraries), and that requires SWIG. If you just want the wxPython GUI (without the digitiser module), you don't need to use --with-python; the GUI code is installed regardless (obviously, you need Python and wxPython to actually use it). -- Glynn Clements [EMAIL PROTECTED] ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Orthorectification of Historic Aerial Photographs
Hi all, 1. Very old aerialphotographs for which you do not have supporting data like focal lengths etc, except a stereo pair of photos, how to convert them to digital ?? 2. Can a normal (Hp) A4 scanner work for this. 3. Any one on GRASS list tried it this way. Ravi Kumar Markus Neteler [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 5:09 AM, Shaun Melissa Busler wrote: Markus, Thanks for the suggestion. I will give those focal lengths a try. What do you mean by i.ortho.photo is robust and hope that it converges? It won't explode :-) I mean that even if you are off from the true value it may still get out a result. Markus PS: The algorithms is described in Elements of Photogrammetry, With Air Photo Interpretation and Remote Sensing by Paul R. Wolf, 562 pages Publisher: McGraw Hill Text; 2nd edition (January 1983) (get that for cheap as second hand book. if interested..) ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user