[GRASS-dev] Applying map projections for layer rendering

Markus Neteler neteler at osgeo.org
Mon Mar 25 13:32:37 PDT 2013


On Tue, Jan 8, 2013 at 12:15 PM, "Peter Löwe" <peter.loewe at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: world_latlong_mollweide_grass7_wx0.jpg
Type: image/jpeg
Size: 118687 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130325/fb8d51e9/attachment-0001.jpg>


More information about the grass-dev mailing list