[GRASS-dev] Applying map projections for layer rendering

Hi,

is there a way to render GRASS layers in a given map projection (like Mollweide, Albers, Stereographic, etc etc) on a GRASS monitor (- GRASS6.x) or the new WXGui ?

[e.g: If a conic projection would be used, the data would indeed look "conical" on the screen]

I remember that add-on code for this existed in the days of GRASS4|5.x, which got lost, right ?

Peter
--
Dr. Peter Löwe
<peter.loewe@gmx.de>

On Tue, Jan 8, 2013 at 12:15 PM, "Peter Löwe" <peter.loewe@gmx.de> wrote:

Hi,

is there a way to render GRASS layers in a given map projection (like Mollweide, Albers, Stereographic, etc etc) on a GRASS monitor (- GRASS6.x) or the new WXGui ?

[e.g: If a conic projection would be used, the data would indeed look "conical" on the screen]

AFAIK it just works, see attachment: LatLong versus Mollweide.

I imported the Country_0 of Natural Earth into a LatLong location.
Then I created a new Mollweide location using the Location Wizard
(just selecting it as projection).
Then I using v.proj with the Mollweide location to reproject the
country map from the LatLong location into it.

Drawn in d.mon wx0 and voilà.

(yes, there are some dateline artifacts but according to v.in.ogr the
Natural Earth maps
has some topological problems).

I remember that add-on code for this existed in the days of GRASS4|5.x, which got lost, right ?

(for the record)

The code is not lost: Lockheed Martin's "viewproj" for GRASS 5 could do
something like that (see src.contrib/LM/viewproj/ here:
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_5_5/src.contrib/LM/viewproj
)

Hope this helps,
Markus

(attachments)

world_latlong_mollweide_grass7_wx0.jpg