Re: [GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-26 Thread Glynn Clements
rabotin wrote: > > std::cout << driver << std::endl; > And I got a zero value return . So my driver isn't set ? > Is the problem from the following lines : > setenv("DBF_DRIVER","dbf",1); > setenv("DB_DATABASE","$GISDBASE/$LOCATION_NAME/$MAPSET/dbf",1); These will be ignored. The default DBM

Re: [GRASS-user] Georrectification using points

2010-05-26 Thread Hamish
Hamish: > you can add to the POINTS file manually (create some dummy test, > points to see the simple text file format), or maybe more easily > use gdal_translate to add the GCPs to a geotiff then import > that. Luisa wrote: > Uhm my question is how can I create a Points file that is added to the

Re: [GRASS-user] [beginner][r.to.vect] -v? polygonizing only white parts of an image

2010-05-26 Thread Hamish
baobazz wrote: > I'm trying to polygonize a raster. > this raster is in black and white. > > I want to polygonize only the white parts of the image. > > I noticed that r.to.vect had a -v option allowing to polygonize certain > parts of an image. Is it this option that I must use to vectorize the

Re: [GRASS-user] Get current location projection in a Python Script

2010-05-26 Thread Michael Barton
On May 25, 2010, at 11:14 AM, Nikos Alexandris wrote: > Kim Besson: > I'm building a GRASS Python Script to automatically import a set of > data to my location. At GRASS book (chapter 3.3.3) it uses g.proj -wf > to to check current location projection. Can I use the same command in >

Re: [GRASS-user] cutting a 3d volume with a 2d surface

2010-05-26 Thread Markus Neteler
On Wed, May 26, 2010 at 7:50 PM, Carlos Grohmann wrote: > Dears, can I "cut" a 3d volume using a 2d (ok, 2.5d) surface? Do you mean this? http://grass.osgeo.org/grass64/manuals/html64_user/r3.cross.rast.html > interpolating wir r3.* gives me the results inside a rectangular > prism. can I use a

Re: [GRASS-user] Open a raster from other MAPSET

2010-05-26 Thread Markus Metz
Kim Besson wrote: > Hi there, > At my location have 2 MAPSETS: Mapset Regional, with raster with 300m > SpatiaL Resolution and Mapset Urban with 5 meters Spatial Resolution. > I need to pass a LandCovermap from Mapset regional to my Urban mapset but I > need it in the same 5 meters Spatial Resoluti

[GRASS-user] cutting a 3d volume with a 2d surface

2010-05-26 Thread Carlos Grohmann
Dears, can I "cut" a 3d volume using a 2d (ok, 2.5d) surface? interpolating wir r3.* gives me the results inside a rectangular prism. can I use a surface (like topography) to remove the upper part of the volume? tks -- Prof. Carlos Henrique Grohmann - Geologist D.Sc. Institute of Geosciences - U

Re: [GRASS-user] Open a raster from other MAPSET

2010-05-26 Thread Rich Shepard
On Wed, 26 May 2010, Kim Besson wrote: My idea is not to change mapset but to get a map and copy it to my Local mapset. r.proj is what you want. Rich ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gr

Re: [GRASS-user] Open a raster from other MAPSET

2010-05-26 Thread Nikos Alexandris
Kim Besson wrote: > My idea is not to change mapset but to get a map and copy it to my > Local mapset. Kim, look at "g.copy"s manual [1] Cheers, Nikos [...] --- [1] ___ grass-user mailin

Re: [GRASS-user] Open a raster from other MAPSET

2010-05-26 Thread Kim Besson
Hey Rich My idea is not to change mapset but to get a map and copy it to my Local mapset. Message: 5 Date: Wed, 26 May 2010 06:51:26 -0700 (PDT) From: Rich Shepard Subject: Re: [GRASS-user] Open a raster from other MAPSET To: grass-user@lists.osgeo.org Message-ID: Content-Type: TEXT/PLAIN; ch

Re: [GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-26 Thread rabotin
Thanks for helping me, as you wrote I change std::cout << &driver << std::endl; to: std::cout << driver << std::endl; And I got a zero value return . So my driver isn't set ? Is the problem from the following lines : setenv("DBF_DRIVER","dbf",1); setenv("DB_DATABASE","$GIS

Re: [GRASS-user] calculating road density

2010-05-26 Thread Dylan Beaudette
Hi, A couple options: 1. convert lines to points and use v.kernel or v.neighbors 2. import lines into R, and use the density function from the spatstat package. Then, sample the density rasters within your polygon of interest with v.rast.stats, etc. Cheers, Dylan On Wed, May 26, 2010 at 1:30

Re: [GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-26 Thread Glynn Clements
rabotin wrote: > After that , using db_open_database(driver,&handle) command launch a > segmentation fault. Is it because my handle is a null value ? Possibly; change: > std::cout << &driver << std::endl; to: > std::cout << driver << std::endl; to confirm this. > Are some comman

Re: [GRASS-user] Re: r.grow.distance

2010-05-26 Thread Glynn Clements
fengel wrote: > Here ist the test case. I also added my result of r.grow.distance. That contains two maps: test_bool is empty (all cells are -32768), while test_dist appears to be the output. -- Glynn Clements ___ grass-user mailing list grass-user@

Re: [GRASS-user] export as eps/svg ind grass64rc6 - grass7 ??

2010-05-26 Thread Benjamin Ducke
GRASS GIS development is currently driven by a relatively small number of people, some of them working on GRASS only in their spare time. And most of them have their focus on areas other than map production GUIs. So your best bet to get new functionality into the system that you/someone you know

Re: [GRASS-user] Open a raster from other MAPSET

2010-05-26 Thread Rich Shepard
On Wed, 26 May 2010, Kim Besson wrote: My question is: can this be done? and how can I pass a map from one Mapset to the other? g.mapsets The resolution will be that of the current mapset. Rich ___ grass-user mailing list grass-user@lists.osgeo

Re: [GRASS-user] Georrectification using points

2010-05-26 Thread Luisa Peña
> you can add to the POINTS file manually (create some dummy test, > points to see the simple text file format), or maybe more easily > use gdal_translate to add the GCPs to a geotiff then import > that. > > Uhm my question is how can I create a Points file that is added to the group? Regarding

[GRASS-user] [beginner][r.to.vect] -v? polygonizing only white parts of an image

2010-05-26 Thread baobazz
Hello, I'm a beginner in GRASS but hope to master it someday it looks infinite in terms of possibilities I'm trying to polygonize a raster. this raster is in black and white. I want to polygonize only the white parts of the image. I noticed that r.to.vect had a -v option allowing to polygonize

Re: [GRASS-user] Multi-scale Segmentation

2010-05-26 Thread Pedro Roma
Hi Nikos Thanks for your link. But besides that one, has anyone developed/tried a segmentation algorithm from R or any other tool? Thanks Pedro On Tue, May 25, 2010 at 3:17 PM, Nikos Alexandris < nikos.alexand...@felis.uni-freiburg.de> wrote: > Pedro Roma: > > I'm planning on using GRASS to do s

[GRASS-user] Setting GRASS environment variable in a C program - step two

2010-05-26 Thread rabotin
Dear all, continuing in my C program test to access grass data without launching a grass session and a great thanks to Glynn Clements who help me with the first step, I begin to write few c lines to access a vector map into a mapset (in this example the GU0507 vector in the Roujan Location and

[GRASS-user] Re: r.grow.distance

2010-05-26 Thread fengel
Here ist the test case. I also added my result of r.grow.distance. Falko http://osgeo-org.1803224.n2.nabble.com/file/n5102335/test_case.zip test_case.zip -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/r-grow-distance-tp5100098p5102335.html Sent from the Grass - Users

[GRASS-user] export as eps/svg ind grass64rc6 - grass7 ??

2010-05-26 Thread Francesco Mirabella
Hi, sorry if I came back on this topic a bit late with respect to the messages below, but I think it's a quite crucial one and like to know if users/developers share similar needs. I have just had to struggle with a arc* user for printing an map and to try to convince him/her to switch to GRASS

[GRASS-user] calculating road density

2010-05-26 Thread maning sambale
Hi, I have two vectors in GRASS: road network - line grid - polygon I want to compute road density and append the attributes to the grid poly. In QGIS I tried using the vector tools (sum line length) with shapefiles and it works for small areas bu not for my full region. Any ideas? -- cheers, m

[GRASS-user] Open a raster from other MAPSET

2010-05-26 Thread Kim Besson
Hi there, At my location have 2 MAPSETS: Mapset Regional, with raster with 300m SpatiaL Resolution and Mapset Urban with 5 meters Spatial Resolution. I need to pass a LandCovermap from Mapset regional to my Urban mapset but I need it in the same 5 meters Spatial Resolution instead of the original

Re: [GRASS-user] Importing Landsat images with different coordinates

2010-05-26 Thread Jenny Turner
Micha You are absolutely right. I was running it in a shared folder, and for some reason (not space beucase it's not full), i was getting that error. Now, I tried in a Desktop folder and it worked. Thanks 2010/5/26 Micha Silver > This all looks fine. > And you said that the destination tiff was

Re: [GRASS-user] Importing Landsat images with different coordinates

2010-05-26 Thread Micha Silver
This all looks fine. And you said that the destination tiff was smaller than the original? Can you display the tiff files? Maybe it's some disk problem (in the log you sent last time, it seems there was an error reading the file...)? On 05/25/2010 04:10 PM, Jenny Turner wrote: Sorry Micha My