[GRASS-user] Simple programming code

2012-03-22 Thread Ripsime Khachatryan
Hi I have calculated the vegetation index using Grass 7 graphically and it was done perfectly, my question is: can I obtain a sample programming code in c language which do the same thing without using the graphical  interface ? Or is there anybody knows which methods from Grass 7 programming

Re: [GRASS-user] How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-22 Thread Maris Nartiss
Hello, it seems that You are looking for v.db.connect, as You need to reconnect existing vector data sets to a different database. (Or, if You are careful, just edit MAPSET/vector/MYMAP/dbln file.) As goes for a GUI crash, please, report it in the issue tracker, as WXGUI shouldn't crash if DB

Re: [GRASS-user] intersection between two lines vector to obtain points

2012-03-22 Thread Micha Silver
On 22/03/2012 09:31, Pierluigi wrote: Thanks micha So can I attach the attribuite table from the first vector to the error point vector? P  What you'll have to do, as Lee pointed out [1] is use the v.distance

[GRASS-user] Re: TIN (Linear interpolation) from points

2012-03-22 Thread TheGeographer
Hi community, I'm trying to convert my 3 vector points to raster points. The aim is to use this raster points as input for r.surf.nnbathy. I created a region with following command: g.region --verbose vect=gfa_niep_work@PERMANENT nsres=1 ewres=1 This is the output of the region: projection: 99

[GRASS-user] i.vi without graphic. With C code

2012-03-22 Thread Ripsime Khachatryan
Hi all   After the run the i.vi with C code, I am getting the following error: GISRC - variable not set and after this command:   export GISRC=$TMPDIR/$THE_GRASSRC  I am getting the next error:  Variable 'LOCATION_NAME' not set So please any suggestion or help Thanks in advance for

Re: [GRASS-user] i.vi without graphic. With C code

2012-03-22 Thread Daniel Lee
Hi Ripsime, Are you running this script from within GRASS? It says you've got no location set, but when you start GRASS it sets a location for the session you're working in. Regards, Daniel -- B.Sc. Daniel Lee Geschäftsführung für Forschung und Entwicklung ISIS - International Solar

Re: [GRASS-user] Re: TIN (Linear interpolation) from points

2012-03-22 Thread Daniel Lee
Hi there, How are your points spatially distributed? It could that 1) the region you're working with doesn't contain all points or 2) the resolution is so low that the three points are aggregated to one point. My suggestion would be to do g.region vect=gfa_niep_work to match the region spatially

[GRASS-user] Re: TIN (Linear interpolation) from points

2012-03-22 Thread Danny Luque Ramirez
Hi Daniel, this steps i've tried already :D This is very confusing, one time i got 2 of 3 points (the points were coloured like raster points). And when i try another configuration i got no points just a white area with min/max value of one point. The extent was always on my vector point map, i

Re: [GRASS-user] How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, Maris Nartiss wrote: it seems that You are looking for v.db.connect, as You need to reconnect existing vector data sets to a different database. (Or, if You are careful, just edit MAPSET/vector/MYMAP/dbln file.) Maris, You may very well be correct. I have been looking

Re: [GRASS-user] Re: TIN (Linear interpolation) from points

2012-03-22 Thread Daniel Lee
Hi Danny, Theoretically that should be fine. I doubt that your points are less than a meter apart. To tell the truth, I'd need to take a look at the data a bit more to be able to say much more about it. Your command looks fine to me. You could also try expanding the region by a hundred meters or

Re: [GRASS-user] How to import in GRASS .hdr?

2012-03-22 Thread José Carlos Guerrero Antúnez
Hi, I unpack the file .gz extension, and this is the error message when I import the file from r.in.gdal, r.in.gdal -o input=`/Users/joseca/Documents/DOCUMENTOS/Biogeografia/UdelaR/Investigacion/Variables/South_America/sa/sa_aspect.bil' not recognised as a supported file format. ERROR 4:

Re: [GRASS-user] How to import in GRASS .hdr?

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, José Carlos Guerrero Antúnez wrote: r.in.gdal -o input=`/Users/joseca/Documents/DOCUMENTOS/Biogeografia/UdelaR/Investigacion/Variables/South_America/sa/sa_aspect.bil' not recognised as a supported file format. The .bil file is data; put the .hdr filename on the command

Re: [GRASS-user] How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, Maris Nartiss wrote: As goes for a GUI crash, please, report it in the issue tracker, as WXGUI shouldn't crash if DB connection information isn't correct. Osgeo didn't like something about my attempts to create an account so I could post the problem. As it did not tell

[GRASS-user] v.out.ogr: Convert Attribute Database?

2012-03-22 Thread Rich Shepard
Trying to convert the attribute database of a vector (points) table from dbf to postgres, and I'm missing a critical step. Asked and answered: GRASS 6.5.svn (Washington-Kinross):~/grassdata v.db.connect map=surface_h2o -p Vector map surface_h2o@buckhorn is connected by: layer 1 table

[GRASS-user] Re: How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-22 Thread Helmut Kudrnovsky
But, for those of us attempting new operations a cross-reference to all relevant modules (in this case attribute database related) would be extremely helpful. it seems it's there, see the bottom of the manual page: http://grass.osgeo.org/grass64/manuals/html64_user/db.connect.html NAME

Re: [GRASS-user] Re: How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, Helmut Kudrnovsky wrote: it seems it's there, see the bottom of the manual page: NAME db.connect - Prints/sets general DB connection for current mapset and exits. [...] SEE ALSO db.columns, db.drivers, db.login, db.tables, v.db.addtable, v.db.connect, Helmut, Those are

[GRASS-user] Re: v.out.ogr: Convert Attribute Database?

2012-03-22 Thread Helmut Kudrnovsky
Used v.out.ogr to export from dbf to a postgres table v.out.ogr - Converts GRASS vector map to one of the supported OGR vector formats. v.out.ogr export the entire vector map (geometry and attribute) not only the attribute table from the manual:

Re: [GRASS-user] SWAT Integration?

2012-03-22 Thread Chris George
There is an open source way to run SWAT, using the MWSWAT interface, which uses MapWindow as the GIS system. You can get it from www.waterbase.org. Chris On 19/03/2012 7:50 PM, Rich Shepard wrote: About 10 years ago I tried integrating SWAT (Soil and Water Assessment Tool, from Texas AM

Re: [GRASS-user] SWAT Integration?

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, Chris George wrote: There is an open source way to run SWAT, using the MWSWAT interface, which uses MapWindow as the GIS system. You can get it from www.waterbase.org. Chris, Thank you. Rich ___ grass-user mailing list

Re: [GRASS-user] Re: v.out.ogr: Convert Attribute Database?

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, Helmut Kudrnovsky wrote: v.out.ogr input=polygons type=area \ dsn=PG:host=localhost dbname=postgis user=postgres \ olayer=polymap format=PostgreSQL missing format definition? Helmut, Er, looks like I did forget the format definition. what I would

Re: [GRASS-user] Re: v.out.ogr: Convert Attribute Database? [SOLVED]

2012-03-22 Thread Rich Shepard
On Thu, 22 Mar 2012, Rich Shepard wrote: Er, looks like I did forget the format definition. Will let everyone know how this works. Sigh. Adding the format=PostgreSQL did the trick. Guess I needed more caffine before lunch so as not to miss a critical option. Again, many thanks, Rich

[GRASS-user] r.sun Direct/Diffuse problem

2012-03-22 Thread Collin Bode
I have a research site in Mendocino County, California where I have taken several months of insolation measurements using two Hukseflux LP02 black body Pyranometers. One is equiped with a shade ring. Measurements were taken in an open field with no topographic shading. Surrounding area is

[GRASS-user] Re: How Does GRASS Handle PostgreSQL Database Name Change?

2012-03-22 Thread Helmut Kudrnovsky
SEE ALSO db.columns, db.drivers, db.login, db.tables, v.db.addtable, v.db.connect, ? v.db.addtable, v.db.connect, ... see above ;o) ... ... it's open source :o) ... concrete suggestions for improvements are welcomed... - best regards Helmut -- View this message in context:

[GRASS-user] NVIZ Seg Faults

2012-03-22 Thread Rich Shepard
The raster map directory holds 2.4G of data. Trying to run nviz causes a seg fault after processing ~3%: GRASS 6.5.svn (Washington):~/grassdata nviz elev=dem_basin Loading raster map dem_basin@buckets... Segmentation fault Anything I can do to prevent this? Rich

[GRASS-user] NVIZ: Properties of Vector Point Maps

2012-03-22 Thread Rich Shepard
The nviz syntax allows us to specify multiple line/area and point maps to overlay the base elevation map. What I do not see on the manual page or in the GUI dialog box is how to specify colors, line widths, symbols, and sizes for these maps. Can this be done somehow? Rich

[GRASS-user] Grass 7 compile errors

2012-03-22 Thread Daniel Victoria
Hi all, Just updated to the latest svn version of grass 7. Configure went OK but I got a bunch off errors on make, the first one being in display/d.path. So I went into that directory and issued make. The output is the following: daniel@debian:~/grass/grass_trunk/display/d.path$ make : gcc