[GRASS5] Re: adapting locations to 5.7, volume nviz updates

Glynn Clements glynn at gclements.plus.com
Mon Nov 15 12:54:12 EST 2004


Markus Neteler wrote:

> > I still don't quite understand how do you want to handle the WIND issue, but
> > if I understand it correctly, can you and Radim take care of grass57 
> > startup that will add 3rd dim to DEFAULTWIND when grass57 is started on old location?
> 
> I think it was just a proposal.
> I don't know where to change libgis to add the three lines to WIND.

WIND and cellhd/* files are read and written using the functions in
lib/gis/{rd,wr}_cellhd.c.

If the format is extended, rd_cellhd.c would need to be modified not
to complain about those lines.

Or just extend "struct Cell_head" to include the additional fields and
use that instead of a distinct G3D_Region type (i.e. make G3D_Region
an alias for "struct Cell_head"). G__read_Cell_head() would need to
allow for old WIND files which don't have those fields, either by
reading a WIND3 file or just using top=0.0, bottom=1.0.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list