[GRASS-user] Draping of Raster images

Sören Gebbert soerengebbert at googlemail.com
Thu Nov 3 11:36:37 EDT 2011


Hi Anna,
what you are looking for is a visualization task -> putting a texture
on a 2.5D surface.
Luckily this can be done using the combination of GRASS and VTK/Paraview[1].

Use r.out.vtk to export your elevation and satellite image as a single VTK file.
Then visualize this file with Paraview:

r.out.vtk input=satelite_image elevation=my_elev_map output=data.vtk

paraview --data=data.vtk

You need to chose a color table in paraview to color the satellite image.
In case you have RGB color use the rgbmaps option of r.out.vtk:

r.out.vtk rgbmaps=redmap,greenmap,bluemap elevation=my_elev_map output=data.vtk

Best regards
Soeren

[1] http://www.paraview.org

2011/11/3 Anna Hodgkinson <anna.hodgkinson at thehumanjourney.net>:
> Hi,
>
> I tried r.to.rast3elev, however, that creates 3D volumes, rather than surfaces, doesn't it? And nviz has problems displaying those, I've never managed it.
>
> Yes, I would like to "drape" a flat 2D raster image over 3D raster surfaces or vector data. However, I would like to retain that elevation information, basically create a 3D (or 2.5D) raster image from a flat one.
>
>
> Here's the case study:
> I have a flat satellite image for my site.
> I also have topological survey data, in the shape of a points vector layer, with z-values in the attribute table. I have a 3D layer of the same, created by using v.to.3d
> I furthermore have an interpolated raster surface from the points survey data, which is 2.5D.
>
> I would now like to drape the 2D satellite image over either the vector points or their interpolated surface and thus create a 2.5 / 3D version of the same satellite image, which I can then visualize in 3D, standalone.
>
> Many thanks!
>
> Anna
>
>
> ----- Original Message -----
> From: "Markus Metz" <markus.metz.giswork at googlemail.com>
> To: "Anna Hodgkinson" <anna.hodgkinson at thehumanjourney.net>
> Cc: "grass-user grass-user" <grass-user at lists.osgeo.org>
> Sent: Thursday, 3 November, 2011 2:45:18 PM
> Subject: Re: [GRASS-user] Draping of Raster images
>
> On Thu, Nov 3, 2011 at 3:32 PM, Anna Hodgkinson
> <anna.hodgkinson at thehumanjourney.net> wrote:
>> Thank you, but neither of those would work for me - what I'm trying to
>> do is to make a 2D raster image 3D.
>> And I don't mean visualisation, I mean assigning cell values for
>> elevation from either another 3D surface or vector layer (both of
>> which I have).
>
> Do you mean something like r.to.rast3elev?
> http://grass.osgeo.org/grass64/manuals/html64_user/r.to.rast3elev.html
>
> The link you gave only shows how to drape a 2D raster over elevation,
> it does not show how to assign z-coordinates and create a 3D raster.
>
> Maybe the confusion goes away if you could explain what you want to do
> with the 3D raster.
>
> Markus M
>
>>
>> Sorry!
>>
>> Anna
>>
>>
>> ----- Original Message -----
>> From: "Saber Razmjooei" <razmjooeis at faunalia.co.uk>
>> To: "Anna Hodgkinson" <anna.hodgkinson at thehumanjourney.net>
>> Cc: "Saber Razmjooei" <razmjooeis at faunalia.co.uk>, "grass-user
>> grass-user" <grass-user at lists.osgeo.org>
>> Sent: Thursday, 3 November, 2011 2:21:23 PM
>> Subject: Re: [GRASS-user] Draping of Raster images
>>
>> Alternatively, you can use:
>>
>> r.shaded.relied
>>
>> That will be 2D only.
>>
>>
>>
>>
>>> Thanks, but there doesn't seem to be a way of elevating a 2D raster
>>> surface. Do you have any experience with this, and would know what
>>> command to use?
>>>
>>> Many thanks,
>>>
>>> Anna
>>>
>>>
>>> ----- Original Message -----
>>> From: "Saber Razmjooei" <razmjooeis at faunalia.co.uk>
>>> To: "Anna Hodgkinson" <anna.hodgkinson at thehumanjourney.net>
>>> Cc: grass-user at lists.osgeo.org
>>> Sent: Thursday, 3 November, 2011 1:52:36 PM
>>> Subject: Re: [GRASS-user] Draping of Raster images
>>>
>>> This page might be helpful:
>>>
>>> http://grass.osgeo.org/wiki/Help_with_3D
>>>
>>>
>>> Cheers
>>> Saber
>>>
>>>> Dear all,
>>>>
>>>> I was wondering whether it is possible to use GRASS to drape raster
>>>> images over existing 3D surfaces or vector layers.
>>>>
>>>> I know ArcGIS is capable of this, is seems a fairly straight-forward
>>>> procedure there
>>>> (http://webhelp.esri.com/arcgisdesktop/9.3/tutorials/3D_analyst/3D_5.htm),
>>>> so I was hoping to achieve the same using open source GIS.
>>>>
>>>> GRASS has a v.drape module, which can drape vector layers over 3D
>>>> surfaces, NVIZ seems to do the same.
>>>>
>>>> It would be great if someone could tell me that GRASS (or any other
>>>> open source GIS package) is capable of draping raster images over
>>>> either other
>>>> rasters or vectors containing elevation information.
>>>>
>>>> Many thanks and all the best,
>>>>
>>>> Anna
>>>>
>>>> ______________________________________________ Anna Kathrin
>>>> Hodgkinson MA MSt (Oxon) AIFA EES
>>>> Supervisor Geomatics
>>>>
>>>> Oxford Archaeology: Exploring the Human Journey
>>>> Mobile: +44 (0)7906 638308 (personal)
>>>> Direct Dial: +44 (0)1865 980 855
>>>> http://thehumanjourney.net
>>>>
>>>> Files attached to this email may be in ISO 26300 format (OASIS Open
>>>> Document Format). If you have difficulty opening them, please visit
>>>> http://iso26300.info for more information.
>>>>
>>>> This email has been processed by SmoothZap - www.smoothwall.net
>>>>
>>>> _______________________________________________ grass-user mailing
>>>> list grass-user at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>>>
>>> Files attached to this email may be in ISO 26300 format (OASIS Open
>>> Document Format). If you have difficulty opening them, please visit
>>> http://iso26300.info for more information.
>>>
>>> This email has been processed by SmoothZap - www.smoothwall.net
>>>
>>>
>> Files attached to this email may be in ISO 26300 format (OASIS Open
>> Document Format). If you have difficulty opening them, please visit
>> http://iso26300.info for more information.
>>
>> This email has been processed by SmoothZap - www.smoothwall.net
>>
>> _______________________________________________ grass-user mailing
>> list grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
> Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.
>
> This email has been processed by SmoothZap - www.smoothwall.net
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list