<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
text="#000000">
<div class="moz-cite-prefix">Hi Anna:<br>
<br>
<br>
On 7/12/2013 10:00 AM, Anna Petrášová wrote:<br>
</div>
<blockquote
cite="mid:CAE0EDErtteFbLdBXPVKdFRgVVRhBKmNM_-k-rbDzT2SrPNNDNw@mail.gmail.com"
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 moz-do-not-send="true"
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>
Good, thanks.<br>
<blockquote
cite="mid:CAE0EDErtteFbLdBXPVKdFRgVVRhBKmNM_-k-rbDzT2SrPNNDNw@mail.gmail.com"
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>
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>
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>
Thanks,<br>
Micha<br>
<blockquote
cite="mid:CAE0EDErtteFbLdBXPVKdFRgVVRhBKmNM_-k-rbDzT2SrPNNDNw@mail.gmail.com"
type="cite">
<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
class=""><font color="#888888">
-- <br>
Micha Silver<br>
GIS Consulting<br>
052-3665918<br>
<a moz-do-not-send="true"
href="http://www.surfaces.co.il" target="_blank">http://www.surfaces.co.il</a><br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:grass-user@lists.osgeo.org"
target="_blank">grass-user@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
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>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
</body>
</html>