Re: [GRASS-user] GRASS sites file
Luisa Peña wrote: Yes you are absolutely right. It seems to work... Where can I find this? here is a cheap coding option which supports the old sites API while using new vector points maps. I don't know if these modules use that or not. The real solution is to make them use the new vector API (not so hard, documented into the wiki somewhere?). The old sites API is deprecated. It does not allow modules to handle old GRASS sites, instead a regular GRASS 6 vector with points is required for the sites API in GRASS 6. Any module still using this old sites API works just fine in GRASS 6 with a GRASS 6 vector. The i.pr modules still use this API and should be updated, but that does not mean that the i.pr modules need an old GRASS sites vector, instead i.pr.training needs a regular GRASS 6 vector with points. In short, as far as vector input for non-interactive i.pr.training is concerned, the module should work just fine as is in GRASS 6. Markus Metz: Luisa Peña wrote: Hi there Instead of GRASS sites file I used a normal GRASS-vector and I got this error: Dev note: Adapted sites library used for vector points. (module should be updated to GRASS 6 vector library) This is not an error, it's simply a message meant for the developer maintaining this module, not even a warning, you can safely proceed. Since you used a normal GRASS vector, the module did not abort with an error, right? Since I'm only testing i.pr module I would like to know where can I get a conversion script/function between Vector-Site file? If this runs ok I will implement this using GRASS vector. Thanks Luisa 2010/5/19 Luisa Peña luisapena1...@gmail.com The only warning that i get is: warning: format not a string literal and no format arguments Where is that cheap trick. Before I do any implementation i.ptr I have to understand that its classification works. So far, fraom all the messages that I have read, no one can use the classification... Luisa 2010/5/19 Markus Metz markus.metz.gisw...@googlemail.com Hamish wrote: Luisa wrote: What is a GRASS sites file? How can I obtain this? a sites file is what vector points maps were called in earlier versions of GRASS. grass-addons/imagery/i.pr/TODO: This module set was developed for GRASS 5. TODO: - change to ANSI prototypes - follow SUBMITTING rules - change sites to vector There is a cheap coding option which supports the old sites API while using new vector points maps. I don't know if these modules use that or not. The real solution is to make them use the new vector API (not so hard, documented into the wiki somewhere?). If i.pr compiles without warnings (regarding the sites API) it should work in 6.x. Otherwise it's not much work to change it to use the new vector API. Markus M ___ 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] Vector convertion from boundaries/centroids to Points
Hi all I have a few boundaries with centroids and I want to extract a Point vector with boundaries position/and other attributes. How can I do this? Thanks Best regards Franz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Vector convertion from boundaries/centroids to Points
Franz Schiller wrote: Hi all I have a few boundaries with centroids and I want to extract a Point vector with boundaries position/and other attributes. How can I do this? Using v.to.points -v type=boundary will give you a point vector of all vertices along a boundary. If you use type=centroid you'll get, of course, the centroids. Thanks Best regards Franz This mail was received via Mail-SeCure System. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user This mail was received via Mail-SeCure System. -- Micha Silver Arava Development Co. +972-52-3665918 http://surfaces.co.il ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] r.watershed multi flow direction
Hi, I am using GRASS 6.4.0RC5+39438 (downloaded from svn server). I would like to obtain basins and stream segments from digital elevation data using the multi flow option in r.watershed as proposed in the documentation. The installed version of r.watershed obviously doesn't support this feature: Sorry, f is not a valid flag Sorry, convergence is not a valid parameter Is there another version of the program available supporting this function? Thank you in advance, best regards, Kristian Förster ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.watershed multi flow direction
I believe that MFD in r.watershed is in versions 6.5 and up. Mark On Fri, May 21, 2010 at 7:27 AM, Kristian Foerster k.foers...@tu-bs.de wrote: Hi, I am using GRASS 6.4.0RC5+39438 (downloaded from svn server). I would like to obtain basins and stream segments from digital elevation data using the multi flow option in r.watershed as proposed in the documentation. The installed version of r.watershed obviously doesn't support this feature: Sorry, f is not a valid flag Sorry, convergence is not a valid parameter Is there another version of the program available supporting this function? Thank you in advance, best regards, Kristian Förster ___ 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] r.watershed multi flow direction
Furthermore, in version 6.5 and up r.watershed becomes veryvery fast! Am 21.05.2010 14:05, schrieb M S: I believe that MFD in r.watershed is in versions 6.5 and up. Mark On Fri, May 21, 2010 at 7:27 AM, Kristian Foersterk.foers...@tu-bs.de wrote: Hi, I am using GRASS 6.4.0RC5+39438 (downloaded from svn server). I would like to obtain basins and stream segments from digital elevation data using the multi flow option in r.watershed as proposed in the documentation. The installed version of r.watershed obviously doesn't support this feature: Sorry,f is not a valid flag Sorry,convergence is not a valid parameter Is there another version of the program available supporting this function? Thank you in advance, best regards, Kristian Förster ___ 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] Setting GRASS environment variable in a C program
Dear all, i'm trying to access to my grass data without launching an active grass session with a c program. I'm encoutering issues with the GRASS environment variables definitions. Here my C script #include iostream #include stdio.h #include stdlib.h #include string.h extern C { #include grass/config.h #include grass/gis.h #include grass/Vect.h #include grass/glocale.h #include grass/dbmi.h } int main(int argc, char *argv[]) { char name[GNAME_MAX],gisdbase[GNAME_MAX],location[GNAME_MAX],mapset[GNAME_MAX]; struct Map_info In; // Setting the grass environment G__setenv(GISDBASE,/home/rabotin/grassdata); G__setenv(LOCATION_NAME,Roujan); G__setenv(MAPSET,PERMANENT); G__setenv(MAPSET,simon9); G_gisinit(argv[0]); std::cout G_getenv(G_gisdbase()) std::endl; std::cout G_getenv(G_location()) std::endl; std::cout G_getenv(G_mapset()) std::endl; } When launshing this script in command terminal (outside an active grass session), I've got a segmentation fault. Does anybody try to access grassdata with C program without launching a grass session ? And does anybody can share with me the solutions he found to solve same issues ? Thanks in advance Michael Rabotin -- * Michaël Rabotin Ingénieur d'étude en géomatique Laboratoire d'étude des Interactions Sol, Agrosystème et Hydrosystème UMR LISAH SupAgro-INRA-IRD Bat. 24 2 place Viala 34060 Montpellier cedex 1 FRANCE Téléphone : 33 (0)4 99 61 23 85 Secrétariat : 33 (0)4 99 61 22 61 Fax : 33 (0)4 67 63 26 14 E-mail : rabo...@supagro.inra.fr * ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.watershed multi flow direction
Thank you all for your help. The new r.watershed version (GRASS 6.5) works fine and it's very fast ;-) best regards Kristian Förster Achim Kisseler schrieb: Furthermore, in version 6.5 and up r.watershed becomes veryvery fast! Am 21.05.2010 14:05, schrieb M S: I believe that MFD in r.watershed is in versions 6.5 and up. Mark On Fri, May 21, 2010 at 7:27 AM, Kristian Foersterk.foers...@tu-bs.de wrote: Hi, I am using GRASS 6.4.0RC5+39438 (downloaded from svn server). I would like to obtain basins and stream segments from digital elevation data using the multi flow option in r.watershed as proposed in the documentation. The installed version of r.watershed obviously doesn't support this feature: Sorry,f is not a valid flag Sorry,convergence is not a valid parameter Is there another version of the program available supporting this function? Thank you in advance, best regards, Kristian Förster ___ 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 mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Setting GRASS environment variable in a C program
rabotin wrote: i'm trying to access to my grass data without launching an active grass session with a c program. I'm encoutering issues with the GRASS environment variables definitions. // Setting the grass environment G__setenv(GISDBASE,/home/rabotin/grassdata); G__setenv(LOCATION_NAME,Roujan); G__setenv(MAPSET,PERMANENT); G__setenv(MAPSET,simon9); G_gisinit(argv[0]); std::cout G_getenv(G_gisdbase()) std::endl; std::cout G_getenv(G_location()) std::endl; std::cout G_getenv(G_mapset()) std::endl; } When launshing this script in command terminal (outside an active grass session), I've got a segmentation fault. You need to set the GISRC environment variable before you can access GRASS settings with G_getenv() or G_setenv(). You will also need to set GISBASE to the root directory of the GRASS installation so that data files can be located. There is a list of environment variables used by GRASS in the file $GISBASE/docs/html/variables.html. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] SMAP algorithm
Nikos wrote: Hi Georg. Did you find any (useful) material with respect to (i.)SMAP? Regards, Nikos I'm afraid no. You'll have to stick with the papers mentioned on the GRASS manual page - good luck! best regards, Georg ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] v.split length=? in latlon
Hi, in v.split: I wonder what units are be used as length in a lat-lon environment? Are these degrees? Why isn't there an option for m, km,..? Thanks in advance, Achim ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Student Summer Employment Opportunity, British Columbia, Canada
My apologies for using this forum for these purposes, but the company I work for (SJ Geophysics Ltd.) is looking to hire a student for the summer to assist with daily map production and to support our geophysicists with several GIS related tasks. Our company uses GRASS GIS quite extensively and we felt this might be a good location to track down some GRASS GIS users in the British Columbia, Canada region. If you are a student interested in working for a geophysics company using GRASS GIS over the summer, please send me an e-mail and I can forward you some additional information. Regards, Casey Vandenberg ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user