Fwd: Re: [GRASS-dev] VTK export for lat-long locations
Soeren Gebbert
soerengebbert at gmx.de
Tue Mar 6 18:24:44 EST 2007
Am Dienstag, 6. März 2007 23:48 schrieb Hamish:
> Sören Gebbert wrote:
> > I dont think this is a good idea. It is a nice and easy approach
> > indeed, but IMHO the length of the z height does not depend on
> > the length of a line on the surface.
> > So the z elevation is independend from the positon
> > on the surface (i know the earth is not a perfect sphere ... ;) ),
> > in this case the row number.
>
> the units of z are map dependent and not knowable by the system.
>
> for NVIZ + lat/lon, in the past I have used r.mapcalc to make a new
> map, [I've got a feeling this is no longer needed??]
>
> e.g. for a lat/lon map with z in meters:
>
> r.mapcalc "scaled_map = (map / 1850.0*60)"
>
> so x,y,z are all in degrees.
In this case
r.out.vtk input=ll_map output=ll_map.vtk elevscale=0.000009009
will do the job. :)
>
>
> I would not bother with reprojecting lat/lon into square cells, the user
> can to that with r.proj if they want. Just note that the output is in
> Plate Carrée like GRASS renders for 2D.
Ok, thanks.
Soeren
>
> see also 'r.shaded.relief units='.
>
>
> Hamish
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
More information about the grass-dev
mailing list