Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-24 Thread Hamish
Micha wrote: > We're used to perceiving shadows below and highlights above > what is being lit. The same holds for a hill-shaded terrain. > When we see shadows on a slope, it seems to be south facing, > and highlights appear north facing. So if you "place" the > sun at 130° (SE) then you are lighti

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-24 Thread Paolo Cavallini
> Date: Thu, 23 Sep 2010 11:06:21 +0300 > From: Maris Nartiss > Subject: Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue > To: nunosousa84 > > Sorry for You. > You do made backup of important data before messing around with QGIS, right? > > You can try

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-23 Thread Micha Silver
On 09/23/2010 06:46 PM, nunosousa84 wrote: yes you're right, my distraction. Well i was able to work it out much more relaxed now :-) I still think the results from the shaded relief are a bit odd. For example if use 130º azimuth the river valleys appears above the near mountains, but if i use de

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-23 Thread Markus Neteler
On Thu, Sep 23, 2010 at 3:35 PM, Micha Silver wrote: > On 09/23/2010 10:18 AM, nunosousa84 wrote: ... >> By the way i >> notice one think. When trying to open the recovered grass vector layer it >> seems he automatically devided it in two (one for the lines and one for >> the points). Well the pro

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-23 Thread nunosousa84
yes you're right, my distraction. Well i was able to work it out much more relaxed now :-) I still think the results from the shaded relief are a bit odd. For example if use 130º azimuth the river valleys appears above the near mountains, but if i use degrees between 270 and 0º or between 0 and 90

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-23 Thread Micha Silver
On 09/23/2010 10:18 AM, nunosousa84 wrote: Thank you Maris. Well i was able to recover it yesterday. I will put here the error it gave me than the v.build solution. I have posted this in QGIS forum: ""This is what it gives back: "terminate called after throwing an instance of 'QgsGrass::Excepti

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-23 Thread nunosousa84
Thank you Maris. Well i was able to recover it yesterday. I will put here the error it gave me than the v.build solution. I have posted this in QGIS forum: ""This is what it gives back: "terminate called after throwing an instance of 'QgsGrass::Exception' what(): Unable to open vector map on le

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-23 Thread Maris Nartiss
Sorry for You. You do made backup of important data before messing around with QGIS, right? You can try to launch GRASS and rebuild vector topology with v.build. If it doesn't help - You'r SOL. And don't forget to infrorm QGIS developers how "well" their GRASS support works. Good luck, Maris. 2

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-22 Thread nunosousa84
I can't believe this a nightmare just happened! This is ubelivable. Suddenly when i was working with the vector layer digitizing the values QGIS just crashed puff completely. Run out of the program. I tried to open QGIS it started again but opening the vector layers from the GRASS Plugin crashes i

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-21 Thread Hamish
nuno: > Ok solved the problem of the null-cells. Did g.region.zoom > to the shadedrelief layer and shrink the region boundaries, so > now r.univar gives 0 null-cells :-). great > But i think i still have to solve the vector/raster lines > problem that might be causing some artifacts on the bounda

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-21 Thread Hamish
nuno wrote: > One more thank you for your patient :-). I just noticed > (believe me i was > sleeping, hehehe) that all the vector lines don't snap to > the region > boundaries. Well let me explain with an image: > http://osgeo-org.1803224.n2.nabble.com/file/n299/Vectorlinesnotouching.jpeg no,

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-21 Thread nunosousa84
Ok solved the problem of the null-cells. Did g.region.zoom to the shadedrelief layer and shrink the region boundaries, so now r.univar gives 0 null-cells :-). But i think i still have to solve the vector/raster lines problem that might be causing some artifacts on the boundaries of the map. Maybe

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-21 Thread nunosousa84
One more thank you for your patient :-). I just noticed (believe me i was sleeping, hehehe) that all the vector lines don't snap to the region boundaries. Well let me explain with an image: http://osgeo-org.1803224.n2.nabble.com/file/n299/Vectorlinesnotouching.jpeg You can see the vectorized

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-21 Thread Hamish
Nuno wrote: > For all this steps i worked directly through > GRASS 6.4 0RC6 and not QGIS. I have opened the grass raster > layer with the contours (lines) and applyed the commands > suggested: > http://grass.osgeo.org/wiki/Contour_lines_to_DEM > > The result was this: > http://osgeo-org.1803224.n2.

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread Micha Silver
On 20/09/2010 23:39, nunosousa84 wrote: Thank you Micha. Just to confirm that the output of slope module is: total null and non-null cells: 2256660 total null cells: 6164 These null cells should be *only* around the edges, where there is not a 3X3 window to calculate the slope. By default t

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread nunosousa84
Thank you Micha. Just to confirm that the output of slope module is: total null and non-null cells: 2256660 total null cells: 6164 Of the non-null cells: -- n: 2250496 minimum: 0 maximum: 78.8343 range: 78.8343 mean: 29.4765 mean of absolute values: 29.4765 standard deviation:

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread Micha Silver
On 09/20/2010 06:18 PM, nunosousa84 wrote: Here are the results: http://osgeo-org.1803224.n2.nabble.com/file/n5551158/cleanresult.jpeg Well im not sure but at first glance doesnt seem to have much relation. This vector points layer that appear after runing the v.clean command shows also possibl

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread nunosousa84
Here are the results: http://osgeo-org.1803224.n2.nabble.com/file/n5551158/cleanresult.jpeg Well im not sure but at first glance doesnt seem to have much relation. This vector points layer that appear after runing the v.clean command shows also possible duplication of lines or just crossing lin

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread Micha Silver
nunosousa84 wrote: Good question Micha. Well i remember i checked the vector lines after completing them (things like not crossing, not touching and confirming that all of the lines has attributes to them, in this case altitude values). Then i checked overlapping raster contours in relation to t

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread nunosousa84
Good question Micha. Well i remember i checked the vector lines after completing them (things like not crossing, not touching and confirming that all of the lines has attributes to them, in this case altitude values). Then i checked overlapping raster contours in relation to the vector lines to se

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread Micha Silver
On 20/09/2010 12:32, nunosousa84 wrote: Thank you all. Well i have some news. Hamish i have followed your suggestion of using the mapcalc commands. For all this steps i worked directly through GRASS 6.4 0RC6 and not QGIS. I have opened the grass raster layer with the contours (lines) and applyed

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-20 Thread nunosousa84
Thank you all. Well i have some news. Hamish i have followed your suggestion of using the mapcalc commands. For all this steps i worked directly through GRASS 6.4 0RC6 and not QGIS. I have opened the grass raster layer with the contours (lines) and applyed the commands suggested: http://grass.osge

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread Micha Silver
On 19/09/2010 22:26, Hamish wrote: I wonder if the black-spots are a color table problem? what does r.univar say about the shaded relief map? That's what just occurred to me. If the spots just "magically" disappear in GRASS, then try setting a different colormap in QGIS. Micha Hamish

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread Hamish
Sab wrote: > There is a native QGIS plugins: > http://spatialserver.net/pyqgis_1.0/contributed/shadedrelief.zip > > To activate it in QGIS: > Fetch Plugins, a new window will pop up: > Click on Repositories tab > Add 3rd Party repository > Click on Plugins > Install DEM relief Shader > > You shou

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread nunosousa84
Thats totally correct in what concerns those black holes/spots disapearing, besides that the results seem similar using r.shaded.relief or v.surf.rst as you suggested, in both GRASS plugin and GRASS. I normally dont work directly with grass, i find for now, since im a begginer, more easy to work w

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread Micha Silver
On 09/19/2010 06:47 PM, nunosousa84 wrote: Well i dont know what to say but this is what i got working directly through GRASS 6.4.0RC6: http://osgeo-org.1803224.n2.nabble.com/file/n5548006/Grasstest.jpg Opening the same layer through QGIS gives those black holes/spots but through GRASS not.

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread nunosousa84
Well i dont know what to say but this is what i got working directly through GRASS 6.4.0RC6: http://osgeo-org.1803224.n2.nabble.com/file/n5548006/Grasstest.jpg Opening the same layer through QGIS gives those black holes/spots but through GRASS not. -- View this message in context: http://osg

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread nunosousa84
i created a surface from rasterized contours (r.surf.contour). Yes i have acess to them i made them myself. First i created vector lines on top of a topography chart (digital geotiff) in QGIS. From then on i worked with GRASS plugin. Imported vector layer to GRASS, converted to Raster, used r.surf

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread nunosousa84
Thank you Sab. I have tried to use the shaded relief plugin but it gives the following error: "An error has occured while executing Python code: Traceback (most recent call last): File "/home/nmc/.qgis//python/plugins/shadedrelief/ShadedReliefDialog.py", line 82, in accept myEngine.run()

Re: [GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread Saber Razmjooei
There is a native QGIS plugins: http://spatialserver.net/pyqgis_1.0/contributed/shadedrelief.zip To activate it in QGIS: Fetch Plugins, a new window will pop up: Click on Repositories tab Add 3rd Party repository Click on Plugins Install DEM relief Shader You should be able to create relief shade

[GRASS-user] Re: QGIS GRASS plugin shadedrelief issue

2010-09-19 Thread nunosousa84
Sorry didnt understand. You mean the GRASS plugin? available in QGIS. Plugins -> Manage Plugins -> Grass. Thats what im using. Working inside QGIS but through GRASS plugin. Sorry for any misunderstanding. Nuno -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/QGIS-GRASS-pl