[GRASS-user] Thanks for making my work successful
Hi all! I am glad to inform you that after spending nearly an year on my PG dissertation work, I have defended it successfully today. I was totally new to GRASS GIS and other FOSS GIS packages an year ago. Still the faith I had in the free software community gave me the confidence that entire GRASS User community would be there to help me in case of difficulties. I was proved right by the users here. I got good and detailed answers from top users of GRASS every time I posted a question, that too in the shortest possible time. This always boosted my confidence and today I have reasonably good working knowledge on GRASS. Hence, I take this opportunity to sincerely thank the members of this community for supporting me in all stages of my work. I have also decided to take part in GRASS Development in coming days and thus contribute my bit to this wonderful software. Thanks and regards, Chethan S. -- Chethan S. *LinkedIn**: *http://in.linkedin.com/in/gischethans *Blogs: *http://gis.staygeo.com; http://gischethans.wordpress.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: Writing a script for image classification
I use Linux, Ubuntu 11.04. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Writing-a-script-for-image-classification-tp6448874p6453003.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] Writing a script for image classification
Hi all! Will it be possible to write a simple script for image classification routine? Basically I have several image groups/subgroups in same/different mapsets in GRASS. I perform supervised classification with the following routine: 1. Vector layer containing training sites imported from QGIS - same sites to be used for all image groups/subgroups 2. Conversion of vector to raster 3. Generation of signature sites using i.gensig - here the usage of groups/subgroups arise 4. Classification using i.maxlik So far I have been doing all these operations using GUI but now I want to become a power user. Can anyone give me a brief overview/outline of how a script would look like for my purpose. I did look into the wiki pages but wasn't able to understand it. So I seek suggestions from regular script users in this community. Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: Writing a script for image classification
Thanks Martin! I used Google Translate and could read the script in English. Can you please let me know from where/how do I call the script? Is it from the GRASS Command line in the usual Linux way - ./something? Sorry for my ignorance but I haven't used scripts in GRASS till now. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Writing-a-script-for-image-classification-tp6448874p6452166.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] Changing/Applying appropriate raster colors
Hi all! I use 'i.maxlik' for image classification. The output obtained shows water in green, built-up area in blue, vegetation in red and so on. It would be appropriate if water appears blue and I had the ability to customize other colors. Where and how do I specify these details in my sequence of operations which is as follows: 1. Vector layer containing training sites imported from QGIS 2. Conversion of vector to raster 3. Generation of signature sites using i.gensig 4. Classification using i.maxlik I tried adding a column(inputs 'varchar') color with RRR:GGG:BBB values to my vector generated in first step but the colors didn't come according to that in the final output. Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Clipping Raster and Vector layers
Hi all! How can I clip 1. a raster layer with a vector boundary and 2. a vector layer with a vector boundary in GRASS GIS using GUI? I couldn't find a suitable option to do that. Quantum GIS has such options but I was thinking if there is an easy option in GRASS that would be more easier. If not what commands are to be used for it? Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Classifying single landcover
Hi all! For my work I am interested in identifying a single kind of vegetation from LANDSAT Images. If I use signature file with just one signature class(I take many training sites all over the area), the classified image with i.maxlik appears full pink. On the other hand if I randomly pick training sites for one more class(water) and have two classes in the signature file this does not happen. So I am wondering will it not be possible to use a single class's signature sites for supervised classification. Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS Image Groups applications
Hi all! Image groups created using i.group in GRASS GIS are used to bundle band raster files to facilitate classification processes. Other than that under what scenarios it can be used? A journal article Computing geostatistical image texture for remotely sensed data classification - PDF http://hera.ugr.es/doi/15003954.pdf mentions about using different band/result combinations for checking improvements in accuracy. The authors there use a custom code to generate texture layers and finally use different combinations of texture layers and bands to check the improvements in accuracy. The texture layers are images which are pixel wise manipulated images obtained using a custom code applied on Principal Components of LANDSAT Images. They use several combinations like bands+univariate texture layers, bands+fractal dimension layers and many more. For such a case, can i.group be used? If not what module of GRASS would be suitable for that? Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] i.group and r.patch in supervised classification
Hi all! I am confused about the utility of r.patch and i.group w.r.t. image classification. In ERDAS for supervised classification layer stacking can be done followed by classification. A way to layer stack in GRASS would be r.patch (since layers are more than 3, I can't use r.composite). But for classifying in GRASS since i.group has to be used, can I use i.group to do layer stacking instead of using r.patch and then classify? Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS GDAL 1.4.3 error in installing
Hi all! When I tried installing GDAL-GRASS-1.4.3 on GRASS 6.5.SVN running in Ubuntu 11.04, configure and make steps run fine. But when I use 'sudo make install' I get this error: install -d /usr/lib/gdalplugins cp gdal_GRASS.so /usr/lib/gdalplugins cp ogr_GRASS.so /usr/lib/gdalplugins test -d /usr/local/share/gdal/grass || mkdir /usr/local/share/gdal/grass mkdir: cannot create directory `/usr/local/share/gdal/grass': No such file or directory make: *** [install] Error 1 What is to be done for this? Regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GDAL-GRASS Error
Hi all, When I run --with-grass=/usr/local/grass-6.5.svn, for installing GDAL-GRASS, I get the following error: checking for gdal-config... /usr/bin/gdal-config using /usr/lib/gdalplugins as GDAL shared library autoload directory checking for G_asprintf in -lgrass_gis... no configure: error: --with-grass=/usr/local/grass-6.5.svn requested, but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include /usr/local/grass-6.5.svn/lib? I have created a *grass.conf* as instructed elsewhere inside /etc/ld.so.conf.d/ and have added following lines in it: /usr/local/lib /usr/local/grass-6.5.svn/lib I ran sudo ldconfig after that too. I came across a similar issue posted in the GRASS-Dev mailing list http://osgeo-org.1803224.n2.nabble.com/gdal-grass-plugin-build-failed-td6232215. As an answer it was instructed to: You could just generate the symlinks yourself, e.g.: cd /usr/local/grass-6.5.svn/lib for file in libgrass_*.so ; do ln -s $file ${file%.6.5.svn.so}.so ; done html. I ran, cd /usr/local/grass-6.5.svn/lib ln -s $file ${file%.6.5.svn.so}.so but it made no difference! What should I do now? Thanks and Regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Subset several bands of data at one go
Hi all! As you know landsat data has separate files for different bands. Creating a subset is a wise option to work on region of our interest. Therefore, I used this method to subset my image - d.zoom || g.region g.region -p r.mapcalc *subset*=original as suggested in http://osgeo-org.1803224.n2.nabble.com/Raster-Map-subset-td4523291.html#a4526819 . But with this I can subset one band data at a time. Is it somehow possible to use i.group and region definition to obtain subsets of all bands? Scripting might be an answer but I have no much idea about it. Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Importing landsat data with GUI - bug again
Greetings! Few months back I had reported problems in GUI based bulk import of landsat data in GRASS 6.4.1svn - http://osgeo-org.1803224.n2.nabble.com/Importing-of-raster-data-doesn-t-seem-to-work-through-GUI-td5805160.html. It was recognized that grass could recognize *.tif files and not *.TIF files and was fixed in the next update. But now again the same issue has cropped up. I run the latest updated version of grass6.4.1svn. Can the developers fix it again? Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Mosaic Images
Greetings! When I try to mosaic landsat images(just one band) which belong to adjacent path-rows they do not mosaic properly. It appears as in the attached screenshot. I have tried changing the order of images but just the overlapping image changed. I have tried r.patch as well as i.image.mosaic with region encompassing both the scenes. However if I mosaic the same images in ERDAS Imagine there are no issues. Mosaiced image will be simply perfect except for brightness differences. ERDAS also provides options like histogram matching to sort out such issues. So what is the way to mosaic images in GRASS? Also is there any way to use specify options like resampling, histogram matching in the process? Thanks and regards, Chethan S. http://osgeo-org.1803224.n2.nabble.com/file/n6108043/mosaic.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mosaic-Images-tp6108043p6108043.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] Generate variograms from landsat data
Hello everybody! I want to generate variograms for landsat images. A simple search in the raster/imagery commands yielded no favorable results. So I wanted to know, is there any built-in module/command which can be used for the work or can I get that ability with some extension? Or will I have to do it in R? Thanks and regards, Chethan S. -- Chethan S. PG Student | Remote Sensing and Geographic Information Systems National Institute of Technology Karnataka | Surathkal Karnataka | India - 575 025 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Good reference for python
Hello everyone! As python offers lot of opportunities for automation of tasks in Geoprocessing, I find it necessary to learn python. I have started learning python from the books suggested in python's official website. However as a GIS guy, I am interested to know if there are any good materials which explains python concepts as it fits into GIS packages, specially GRASS. Thanks and regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: Importing of raster data doesn't seem to work through GUI
Unfortunately, that does not work for me. As you said the *.tif files appear grayed out in that particular folder. But the next outcome is not the one you get. Also after a recent update of GRASS 6.4.1 SVN there is no option Bulk Import of Raster data. Its only import raster data. I select directory option there. For using the individual file import option like before I used Command Dialog option as shown below. I should also mention that I use GRASS 6.4.0 version from Ubuntu repository at my college but again face the same problem. http://osgeo-org.1803224.n2.nabble.com/file/n5807453/Selection_022.png Regards, Chethan S. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Importing-of-raster-data-doesn-t-seem-to-work-through-GUI-tp5805160p5807453.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] Importing of raster data doesn't seem to work through GUI
Greetings! I have been trying to import raster data in bulk through the wxPython GUI in Grass Layer Manager using File Import Raster Data Import Raster Data in GRASS 6.4.1 SVN. I have tried setting source type as File and Directory. As I use landsat data the format is GeoTIFF. As I navigate and select particular folder/data nothing appears in List of GDAL layers. I have tried in two ways - with metadata and other text files residing in the same folder as the satellite data and keeping text files in another folder. Nothing changed. Therefore, I have to select Command Dialog and import the data band by band. Am I missing something in the process? Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: Importing of raster data doesn't seem to work through GUI
Greetings! I use Ubuntu 10.04 64-bit. This bulk import feature never worked for me. I am attaching a screenshot now. In the screenshot, the directory has no metadata and other text files, but I have tried importing with those files inside the directory as well. http://osgeo-org.1803224.n2.nabble.com/file/n5806289/Selection_021.png Regards, Chethan S. Martin Landa wrote: Hi, 2010/12/5 Chethan S chethanuniver...@gmail.com: I have been trying to import raster data in bulk through the wxPython GUI in Grass Layer Manager using File Import Raster Data Import Raster Data in GRASS 6.4.1 SVN. I have tried setting source type as File and Directory. As I use landsat data the format is GeoTIFF. As I navigate and select particular folder/data nothing appears in List of GDAL layers. I have tried in two ways - with metadata and other text files residing in the same folder as the satellite data and keeping text files in another folder. Nothing changed. Therefore, I have to select Command Dialog and import the data band by band. Am I missing something in the process? OS? Tested with fresh 6.4.1 from SVN. Seems to work. URL to the sample data? Martin -- Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Importing-of-raster-data-doesn-t-seem-to-work-through-GUI-tp5805160p5806289.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] Usage of R and GRASS - References
Greetings! I have started working on my academic project which is on object based image classification using Geostatistics of landsat data. My objective is to analyze increase in cropped area over years. I will be using GRASS and R to accomplish my objectives. I am interested to know if anyone is aware of such work carried out in past using GRASS and R. Such a study if available would serve as a benchmark for my work. Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Landsat SLC-Off data usage
Greetings! I am using Landsat 7 ETM+ SLC-Off imageries for my academic project work. As users may be aware due to Scan line corrector going off in the satellite, large gaps are created in each band of image. It accounts for loss of 20 to 22 percent of data. Since recently, gap mask files are provided along with Landsat data, so you can tell where actual data is versus the gaps, also all data gaps have a digital value of 0 (zero). Options to use fill in those gaps created include using interpolation methods, usage of images from different dates or sensors like IRS or MODIS, usage of geostatistics etc. I am interested to know if anyone has employed such methods in GRASS previously. Proven techniques would help me progress faster. Thanks and Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] make.c error
Hello everyone! I use GRASS GIS 6.4.1 SVN version for my work. I keep the code in a directory inside my home directory. As I needed i.atcorr module I configured it with with-cxx. I used the following configure script ./configure --with-tcltk-includes=/usr/include/tcl8.5 --with-proj-share=/usr/share/proj --with-gdal=/usr/bin/gdal-config --with-cxx --enable-64bit --with-python=/usr/bin/python2.6-config However I got one error in the make process in d.rast module. Therefore, as instructed I changed to that directory and ran make command. Now I get the following bunch of errors. chet...@chethan-desktop:~/Applications/grass64_release/display/d.rast$ make gcc -I/home/chethan/Applications/grass64_release/dist.x86_64-unknown-linux-gnu/include -g -O2 -DPACKAGE=\grassmods\ -I/home/chethan/Applications/grass64_release/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c main.c: In function ‘main’: main.c:89: error: ‘flag_n’ undeclared (first use in this function) main.c:89: error: (Each undeclared identifier is reported only once main.c:89: error: for each function it appears in.) make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1 I have no clue as to why these errors arise. What should I do now? Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS user map - added twice
Hi everyone! Today I tried adding myself to the Worldwide GRASS GIS usermap and succeeded in doing so. However due to internet connection issues I had to refresh the page. It resulted in my name appearing and counting twice(earlier there were 1421 users, now it is 1423). I find no ways to delete the extra point. Therefore I would like to know how to go about regarding this issue. I am even ready to contact the administrator for the map site if someone could provide me the email id. Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Lot of python warnings GRASS SVN 6.4.1
Greetings! I use GRASS 6.4.1 svn release version. Today I updated it using 'svn up' command and ran subsequent processes up to make install. Everything went smoothly. But now when I start grass, by typing grass64 in terminal following warnings appear: Cleaning up temporary files ... Starting GRASS ... `menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load (python:10421): Gtk-WARNING **: Failed to load type module: (null) (python:10421): GLib-GObject-WARNING **: invalid (NULL) pointer instance (python:10421): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed After I select the location and mapset still more warnings appear and the prompt to enter commands does not appear in terminal. These are the warnings that appear: (python:11011): Gtk-WARNING **: Failed to load type module: (null) (python:11011): GLib-GObject-WARNING **: invalid (NULL) pointer instance (python:11011): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed `menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load (python:11011): Gtk-WARNING **: Failed to load type module: (null) (python:11011): GLib-GObject-WARNING **: invalid (NULL) pointer instance *lot of lines in between* (python:11011): GLib-GObject-WARNING **: invalid (NULL) pointer instance (python:11011): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed `menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load (python:11011): Gtk-WARNING **: Failed to load type module: (null) (python:11011): GLib-GObject-WARNING **: invalid (NULL) pointer instance (python:11011): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed What may be the reason for this? I use ubuntu lucid lynx which I update regularly. Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS in 64-bit Debian Squeeze
Greetings everyone! As of now I am running the release branch of GRASS 6.4.1 release branch version (stable) in 32-bit Ubuntu operating system. I am seriously thinking of migrating to 64-bit OS as I believe image processing like tasks can be faster there. I am considering migration to Debian Squeeze. I am interested to know if GRASS runs fine on 64-bit platform or will some tweaking be necessary? Somewhere I remember reading queries on issues with wxGUI in 64-bit systems. Do such problems exist now too? Thanks and Regards, Chethan S. **-- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Re: Which version is advisable - SVN or stable, Unable to locate Tk includes
Greetings! Which version is advisable - SVN or stable I took Mr. Neteler's suggestion and now have GRASS GIS 6.4.1svn(2010) running. Also I could start the R package from within GRASS.2. Unable to locate Tk includes Mr. Martin's suggestion definitely works. However I found an effective answer to such issues from ask ubuntu where I had posted the question http://goo.gl/82LE. I was suggested to install apt-file tool which enables one to search for missing files easily using apt-file search* filename* command. This suggestion proved to be very effective as I could solve some more missing file problems. Hope this will help GRASS users facing similar problems in future. Thanks and regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Which version is advisable - SVN or stable
Greetings! I am a PG student using GRASS GIS and R for my dissertation work in Ubuntu 10.04. As of now in the ubuntugis PPA, GRASS 6.4.0 version rc6 version is available. As I always want to use the latest stable version available and now since the stable version 6.4.0 is available, I have two options - 1. Compile from source code which cannot be updated automatically. 2. Using Weekly 6.4-svn snapshot which gives me the advantage of using the latest automatic updates I am not able to decide upon which is suitable for me. I need a stable environment. In addition to this I also use R in combination with GRASS (spgrass6). Therefore it becomes essential that this interface should not break. Can anyone help me decide. I would be glad to know the advantages of one over other. Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Unable to locate Tk includes
Greetings! I am trying to install GRASS Release branch 6.4 from SVN on Ubuntu. At then configure stage, I use the command ./configure --with-tcltk-includes=/usr/include/tcl8.5 --with-proj-share=/usr/share/proj But I get the following error at the very last stage: checking for location of Tcl/Tk includes... /usr/include/tcl8.5 checking for tcl.h... yes checking for tk.h... no *configure: error: *** Unable to locate Tk includes.* I tried adding the parameters to the above command - --with-tcltk-libs=/usr/share/tcltk -- in this directory I have tcl8.4, tcl8.5, tk8.4, tk8.5, tcllib1.12, tklib0.5 directories --with-tcltk-libs=/usr/include/tcl8.5 If I search for file named tk.h, such a file does not show up anywhere in the file system. Is there any package I have to install to rectify this. Regards, Chethan S. -- Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Installing spgrass6 package - Errors and warnings
Hello everybody! I am using GRASS 6.4.0 RC6 in ubuntu 10.04. I installed R version 2.11.1 (2010-05-31) just today. As I need GRASS and R interface for my work, I went ahead as per instructions in http://www.osgeo.org/files/journal/final_pdfs/OSGeo_vol1_GRASS-R.pdf. Initially when I started R from within GRASS and tried the command I got the following errors: install.packages(spgrass6, dependencies = TRUE) Warning in install.packages(spgrass6, dependencies = TRUE) : argument 'lib' is missing: using '/usr/local/lib/R/site-library' Warning in install.packages(spgrass6, dependencies = TRUE) : 'lib = /usr/local/lib/R/site-library' is not writable Would you like to create a personal library '~/R/i486-pc-linux-gnu-library/2.11' to install packages into? (y/n) n Error in install.packages(spgrass6, dependencies = TRUE) : unable to install packages q() Later I started R using sudo R and then the following errors and warnings occurred. install.packages(spgrass6, dependencies = TRUE) Warning in install.packages(spgrass6, dependencies = TRUE) : argument 'lib' is missing: using '/usr/local/lib/R/site-library' --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done also installing the dependencies ‘rgdal’, ‘XML’ trying URL 'http://mirror.kapook.com/cran/src/contrib/rgdal_0.6-28.tar.gz' Content type 'application/x-gzip' length 1416605 bytes (1.4 Mb) opened URL == downloaded 1.4 Mb trying URL 'http://mirror.kapook.com/cran/src/contrib/XML_3.1-1.tar.gz' Content type 'application/x-gzip' length 779143 bytes (760 Kb) opened URL == downloaded 760 Kb trying URL 'http://mirror.kapook.com/cran/src/contrib/spgrass6_0.6-20.tar.gz ' Content type 'application/x-gzip' length 334459 bytes (326 Kb) opened URL == downloaded 326 Kb * installing *source* package ‘rgdal’ ... gdal-config: gdal-config ./configure: line 1311: gdal-config: command not found Error: gdal-config not found The gdal-config script distributed with GDAL could not be found. If you have not installed the GDAL libraries, you can download the source from http://www.gdal.org/ If you have installed the GDAL libraries, then make sure that gdal-config is in your path. Try typing gdal-config at a shell prompt and see if it runs. If not, use: --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' echo with appropriate values for your installation. ERROR: configuration failed for package ‘rgdal’ * removing ‘/usr/local/lib/R/site-library/rgdal’ * installing *source* package ‘XML’ ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for sed... /bin/sed checking for pkg-config... /usr/bin/pkg-config checking for xml2-config... no Cannot find xml2-config ERROR: configuration failed for package ‘XML’ * removing ‘/usr/local/lib/R/site-library/XML’ ERROR: dependencies ‘rgdal’, ‘XML’ are not available for package ‘spgrass6’ * removing ‘/usr/local/lib/R/site-library/spgrass6’ The downloaded packages are in ‘/tmp/RtmpP2fUan/downloaded_packages’ Warning messages: 1: In install.packages(spgrass6, dependencies = TRUE) : installation of package 'rgdal' had non-zero exit status 2: In install.packages(spgrass6, dependencies = TRUE) : installation of package 'XML' had non-zero exit status 3: In install.packages(spgrass6, dependencies = TRUE) : installation of package 'spgrass6' had non-zero exit status The result is I am not able to use spgrass. library(spgrass6) Error in library(spgrass6) : there is no package called 'spgrass6' As an intermediate level user in terms of commands and also regarding R and GRASS packages I am not able to decide what went wrong. Can you please help me out. Regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Displaying layers - GRASS 6.4.0RC7 with MSYS
Hello! I natively use GRASS in ubuntu but wanted to try it in windows as well. I use GRASS 6.4.0RC7 with MSYS and referring to Open Source GIS - A GRASS Approach I wanted to display layers using following commands for the sample North Carolina dataset - g.region rast=elevation -p d.erase d.rast elevation d.his h=elevation i=elevation_shade and so on... Prior to all these there was d.mon x0 command. It resulted in an error. It was also mentioned that X server system does not work in windows and I can use gis.m. I want it to display in wxGUI. The commands I typed in gave no results. The map display of wxGUI interface gives no output unless I key in the commands one after another in GRASS Layer Manager under Cmd. Its a difficult process as I have to erase the previous command before entering next one. Is there any other way to get dynamic outputs from MSYS shell interface or is using GUI the only way. I am not interested in using the windows command interface or text interface to grass. Regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Displaying layers - GRASS 6.4.0RC7 with MSYS
On Sun, Aug 29, 2010 at 6:43 PM, Glynn Clements gl...@gclements.plus.comwrote: Chethan S wrote: I natively use GRASS in ubuntu but wanted to try it in windows as well. I use GRASS 6.4.0RC7 with MSYS and referring to Open Source GIS - A GRASS Approach I wanted to display layers using following commands for the sample North Carolina dataset - g.region rast=elevation -p d.erase d.rast elevation d.his h=elevation i=elevation_shade and so on... Prior to all these there was d.mon x0 command. It resulted in an error. d.mon is the main feature which doesn't work natively in Windows. All d.* commands operating by generating an image file (by default, the file map.png in the current directory). For screen display, use one of the GUIs, or open the map.png file in a viewer which provides a quick way to reload the current file. Also, note that d.mon has been removed altogether in GRASS 7. -- Glynn Clements gl...@gclements.plus.com Hello again! Is displaying on x0 or cairo or png displays using d.mon, the only way to display layers from command line even in linux? Isn't there a way to type commands in terminal and get the layers displayed in GRASS GIS Map display in wxGUI? Regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Commands on Cygwin vs native windows
Hello! I am in the process of learning to use GRASS. I mainly use it in ubuntu. I wanted to try it in windows as well. I noticed that there are several download options for it. Though I am a naive user with regard to command line, I have slowly begun to like command line. My questions, some are really basic. Please excuse me if I am wrong. 1. Is the GRASS manual at http://grass.osgeo.org/grass64/manuals/html64_user/index.html written for UNIX based OS users or windows users? 2. Which option provides maximum advantage with regard to usage - stand-alone windows version or cygwin based one. And why? 3. I wonder if I would be able to run UNIX like commands - module [-flag1[flag2...]] parameter1=map1[,map2,...]\ [parameter2=number...] [--o] [--q] [--v] in windows as well in GUI based version or do I need cygwin based one for such work. Regards, Chethan S. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user