<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 12, 2013 at 3:47 PM, Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
<div>Hi Anna:<div class="im"><br>
<br>
<br>
On 7/12/2013 10:00 AM, Anna Petrášová wrote:<br>
</div></div><div class="im">
<blockquote type="cite">
<div dir="ltr">Hi,<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jul 10, 2013 at 2:31 PM,
Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello
all:<br>
I'm working on a flood inundation presentation. I need to
show a 3D representation of an ortho-photo image with the
predicted flood area draped over the ortho-photo.<br>
When I first run:<br>
<br>
m.nviz.image --o elevation_map=dtm color_map=ortho_eilat
resolution_fine=2 height=1000 perspective=20
position=0.6,0.95 output=dtmp zexag=4<br>
I get:<br>
ERROR: Inconsistent number of attributes (<vpoint>
0: <vpoint_position> 3)<br>
</blockquote>
<div><br>
</div>
<div>Sorry, this is a bug. It should be fixed in r57072.</div>
</div>
</div>
</div>
</blockquote>
<br></div>
Good, thanks.<div class="im"><br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
so I specified both:<br>
vpoint_position="" vpoint_layer=""<br>
<br>
Now I get a nice looking 3D of the ortho-photo. But when I
try to add another raster, i.e.:<br>
color_map=ortho_eilat,dtmp_nn<br>
<br>
no matter what combination of additional parameters I try,
I always get:<br>
<br>
ERROR: Inconsistent number of attributes
(<elevation_map/elevation_value><br>
1: <color_map> 2, <color> 0)<br>
<br>
Any tips on how this should be specified??<br>
</blockquote>
<div><br>
</div>
<div>If you want to add more raster maps (surfaces) you have
to specify it in elevation_map parameter. If you want
different color map, specify it in color_map but keep in
mind that the number of maps in elevation_map and
color_map should be the same (if you don't use elevation_value
for creating plane and color for RGB color). In your case
I am not sure what you are trying to achieve but try:</div>
<div><br>
</div>
<div> ...elevation_map=dtm,dtmp_nn
color_map=ortho_eilat,dtmp_nn</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<br></div>
Yes, that did it.<br>
I could not find in the docs any reference to multiple maps as
"elevation_map" and it was not at all intuitive for me. From the
parameter names, "color_map" and "elevation_map" I understood that
the elevation_map should be the one (and only) dem. And overlayed
color maps would be in the "color_map" parameter. But I see I
misunderstood.<br>
<br></div></blockquote><div><br></div><div>there is no better documentation I am afraid, but you can try to use nviz through wxGUI (3d mode) and load the maps and set the color and there is a tool in the toolbar to generate the correspondent command for m.nviz.image. It does not cover all the possibilities but it can be helpful.</div>
<div><br></div><div>For every surface (dem) you can assign only one color map (the default is the color of the dem). So therefore the command requires to have the same number of elevation maps and color maps. Apart from this you can also specify elevation_value which creates a horizontal plane (value is the height) and color parameter assigns the surface one color. Number of maps in 'elevation_map' + number of values in 'elevation_value' = number of 'color_map' + 'color' values. Similar system is for vector maps: when you specify 2 vector maps (e.g. points), you have to specify also other vector parameters for 2 maps (e.g.: vpoints_position=0,0,0,0,0,0 (= 3 coordinates x 2)) and so on. I am aware that this is not ideal solution.<br>
</div><div><br></div><div>Regards,</div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
I'll gladly improve the wiki (or man page) if I could get more
information about this module. Is there any better documentation
anywhere? For example, why is it necessary that the number of
"elevation_maps" be the same as "color_maps"??<br>
<br></div></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
Thanks,<br>
Micha<br>
<blockquote type="cite"><div class="im">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>Hope this helps,</div>
<div><br>
</div>
<div>Anna</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><font color="#888888">
-- <br>
Micha Silver<br>
GIS Consulting<br>
052-3665918<br>
<a href="http://www.surfaces.co.il" target="_blank">http://www.surfaces.co.il</a><br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
<br></div>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
</div>
</blockquote></div><br></div></div>