ps.map grids

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ps.map grids

Tyler Smith-2
Hi,

I'm trying to make a ps make, which I'll then tweak in Inkscape. The
basic map looks almost correct, but the geogrid labels are placed
slightly off the page. Is there a way to instruct GRASS to move the
labels inwards so they are readable?

The map is here: https://www.flickr.com/photos/carex/13433924714/

The script I'm using is:

g.region n=935000 s=-750000 e=1800000 w=670000

ps.map input=inputscript output=cranberry-map.ps

where 'inputscript' contains the following:

vlines provinces_ca
type boundary
color black
end

vlines usa
type boundary
color black
end

vpoints cranberry_ONQU
type point
color red
fcolor red
symbol basic/point
end

geogrid 5 d
color grey
numbers 1 black
end

paper
width 3.5
height 5
left 0.1
right 0.1
top 0.1
bottom 0.1
end

Thanks!

Tyler
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: ps.map grids

hamish-2
Tyler wrote:

> I'm trying to make a ps make, which I'll then tweak in Inkscape. The
> basic map looks almost correct, but the geogrid labels are placed
> slightly off the page. Is there a way to instruct GRASS to move the
> labels inwards so they are readable?
>
> The map is here: https://www.flickr.com/photos/carex/13433924714/

Hi,

it falls off the screen in map projections where the angle between grid
north and true north becomes large. This was recently fixed for d.grid's
version of geo-grids, but it seems ps.map still needs similar treatment.

For now your best bet is to open the resulting .ps file in your favourite
industrial strength text editor and search near the end of the file for
the line with the "ZB (50N) PB" text. The line after it starts with two
numbers. These are points (1/72") from the left side of the paper.
Changing the number by 10 will move it the same distance on the page as
the size of a 10 pt font. So try reducing the first number (x coord)
by about 10 and check the results. For the 80W on the bottom you'll have
to change the second number of course.


Hamish

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Reply | Threaded
Open this post in threaded view
|

Re: ps.map grids

Tyler Smith-2


On March 27, 2014 12:25:52 AM EDT, Hamish <[hidden email]> wrote:

>Tyler wrote:
>
>> I'm trying to make a ps make, which I'll then tweak in Inkscape. The
>> basic map looks almost correct, but the geogrid labels are placed
>> slightly off the page. Is there a way to instruct GRASS to move the
>> labels inwards so they are readable?
>>
>> The map is here: https://www.flickr.com/photos/carex/13433924714/
>
>Hi,
>
>it falls off the screen in map projections where the angle between grid
>north and true north becomes large. This was recently fixed for
>d.grid's
>version of geo-grids, but it seems ps.map still needs similar
>treatment.
>

Thanks Hamish.

I discovered the labels are present in the output, even if they aren't initially visible, and I can reposition them by hand in Inkscape. That will do for now.

Best,

Tyler

>For now your best bet is to open the resulting .ps file in your
>favourite
>industrial strength text editor and search near the end of the file for
>the line with the "ZB (50N) PB" text. The line after it starts with two
>numbers. These are points (1/72") from the left side of the paper.
>Changing the number by 10 will move it the same distance on the page as
>the size of a 10 pt font. So try reducing the first number (x coord)
>by about 10 and check the results. For the 80W on the bottom you'll
>have
>to change the second number of course.
>
>
>Hamish

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user