[GRASS-user] m.nviz.image: Inconsistant number of attributes

Anna Petrášová kratochanna at gmail.com
Fri Jul 12 00:00:03 PDT 2013


On Wed, Jul 10, 2013 at 2:31 PM, Micha Silver <micha at arava.co.il> wrote:

> Hello all:
> 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.
> When I first run:
> 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
> I get:
> ERROR: Inconsistent number of attributes (<vpoint> 0: <vpoint_position> 3)

Sorry, this is a bug. It should be fixed in r57072.

> so I specified both:
>      vpoint_position="" vpoint_layer=""
> Now I get a nice looking 3D of the ortho-photo. But when I try to add
> another raster, i.e.:
>      color_map=ortho_eilat,dtmp_nn
> no matter what combination of additional parameters I try, I always get:
> ERROR: Inconsistent number of attributes (<elevation_map/elevation_**
> value>
>        1: <color_map> 2, <color> 0)
> Any tips on how this should be specified??

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:

 ...elevation_map=dtm,dtmp_nn color_map=ortho_eilat,dtmp_nn

Hope this helps,


>  --
> Micha Silver
> GIS Consulting
> 052-3665918
> http://www.surfaces.co.il
> ______________________________**_________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/grass-user<http://lists.osgeo.org/mailman/listinfo/grass-user>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130712/3175fbf6/attachment.html>

More information about the grass-user mailing list