Details Ticket 3374


Comment | Reply | Take | Resolve


Serial Number 3374
Subject ps.map - error in margins or paper size handling
Area grass6
Queue grass
Requestors tutey@o2.pl
Owner none
Status open
Last User Contact Sat Feb 17 21:40:54 2007 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Feb 17 21:40:54 2007 (2 yr ago)
Created Mon Jun 27 21:26:23 2005 (3 yr ago)

Transaction History Ticket 3374


Mon, Jun 27 2005 21:26:23    Request created by werchowyna@epf.pl  
Return-Path <werchowyna@epf.pl>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <010a01c57b4e$139f4e00$c0e41d3e@eustahiush>
From "Maciek Sieczka" <werchowyna@epf.pl>
To <grass-bugs@intevation.de>
Subject ps.map - error in margins or paper size handling
Date Mon, 27 Jun 2005 21:25:10 +0200
MIME-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-2"; reply-type=original
Content-Transfer-Encoding 7bit
X-Priority 3
X-MSMail-Priority Normal
X-Mailer Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.2180
X-Antivirus avast! (VPS 0524-1, 2005-06-14), Outbound message
X-Antivirus-Status Clean
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
The example based on spearfish60.
Grass61 cvs 21.06.2005.

GRASS 6.1.cvs (spearfish60):~ > g.region rast=elevation.10m -ap
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4928000
south:      4914020
west:       590010
east:       609000
nsres:      10
ewres:      10
rows:       1398
cols:       1899

1 ps.map input=spear_ps.txt output=spear_ps.ps

where spear_ps.txt contains:

raster elevation.10m
paper a4
top 0.0
bottom 0.0
left 0.0
right 0.0
end

2 Open in gv with "Automatic" paper size enabled:

- on the right paper canvas stands out of the frame, which is thinner here
than the bottom and left frame,
- on the top the frame is only slightly visible (almost not visible at all).
3 Force A4 size in gv:
- right frame dissapears for good, only a one pixel-wide column of paper
canvas is visible.

Similar behaviour on other setups.

Maciek


Sat, Aug 13 2005 13:38:20    Area changed to grass6.1 by msieczka  
Wed, Aug 31 2005 20:52:54    Area changed to grass6 by mneteler  
Tue, Oct 25 2005 07:17:17    Comments added by hbowman  
I believe this bug has not been fixed yet.  (at least not by me)

Bug 3372 was a duplicate and has been closed.


Hamish
Wed, Jul 26 2006 14:42:19    User changed to tutey@o2.pl by msieczka  
Tue, Sep 26 2006 17:56:12    Comments added by guest  
Good Luck! http://xoomer.alice.it/pik0/poker-rooms/
Tue, Sep 26 2006 21:14:01    Comments added by guest  
Cool design http://xoomer.alice.it/pik0/razz-poker/
Wed, Sep 27 2006 00:09:16    Comments added by guest  
Great work on website. <a href="http://xoomer.alice.it/pik0/rules-of-poker/">rules
of poker</a> [url=http://xoomer.alice.it/pik0/rules-of-poker/]rules of poker[/url]
http://xoomer.alice.it/pik0/rules-of-poker/
Wed, Sep 27 2006 03:11:34    Comments added by guest  
Great web site <a href="http://xoomer.alice.it/pik0/blackjack-mountain/">blackjack
mountain</a> [url=http://xoomer.alice.it/pik0/blackjack-mountain/]blackjack mountain[/url]
http://xoomer.alice.it/pik0/blackjack-mountain/
Wed, Sep 27 2006 06:05:55    Comments added by guest  
Thank you... <a href="http://xoomer.alice.it/pik0/yahoo-games-poker/">yahoo games
poker</a> [url=http://xoomer.alice.it/pik0/yahoo-games-poker/]yahoo games poker[/url]
http://xoomer.alice.it/pik0/yahoo-games-poker/
Wed, Sep 27 2006 09:01:51    Comments added by guest  
Great work on website. <a href="http://xoomer.alice.it/pik0/free-online-poker-site/">free
online poker site</a> [url=http://xoomer.alice.it/pik0/free-online-poker-site/]free
online poker site[/url] http://xoomer.alice.it/pik0/free-online-poker-site/
Wed, Sep 27 2006 12:03:40    Comments added by guest  
Thank you... <a href="http://xoomer.alice.it/pik0/poker-games-for-pc/">poker
games for pc</a> [url=http://xoomer.alice.it/pik0/poker-games-for-pc/]poker games
for pc[/url] http://xoomer.alice.it/pik0/poker-games-for-pc/
Wed, Sep 27 2006 15:01:11    Comments added by guest  
VERY GOOD I THINK <a href="http://xoomer.alice.it/pik0/card-poker-ME/">card poker
ME</a> [url=http://xoomer.alice.it/pik0/card-poker-ME/]card poker ME[/url] http://xoomer.alice.it/pi
k0/card-poker-ME/
Fri, Feb 9 2007 05:32:49    Comments added by hbowman  
search: this bug contains SPAM!

Hamish
Fri, Feb 9 2007 06:06:13    Mail sent by hbowman  
I don't see the problem with GRASS 6.3 feb 2007.

g.region res=100 -a
ps.map out=test.ps << EOF
raster elevation.10m
paper a4
 top 0.1
 bottom 0.1
 left 0.1
 right 0.1
 end
border
 width 5
end
EOF

Looks ok to me.


Margin size=0 is asking a lot, I doubt many printers will do that.
(maybe wanted for PDF fliers?)

Looks fine with margin=0 in gnome-gv and kghostview.

In gv I see no difference between paper=BBox and paper=A4.

The new 'border' controls might help mask any ugliness if it reappears.


Can we close this bug?


Hamish
Sat, Feb 17 2007 21:40:54    Mail sent by msieczka  
Hi Hamish,

Sorry ot took so long for me to reply.

hbowman wrote (Fri, Feb 9 2007 06:06:13):

> I don't see the problem with GRASS 6.3 feb 2007.
> 
> g.region res=100 -a
> ps.map out=test.ps << EOF
> raster elevation.10m
> paper a4
>  top 0.1
>  bottom 0.1
>  left 0.1
>  right 0.1
>  end
> border
>  width 5
> end
> EOF
> 
> Looks ok to me.

Not for me, with CVS 2007-02-17.

> Margin size=0 is asking a lot, I doubt many printers will do that.

Yeah, but ps.map should interpreted it properly anyway. Often I use ps.map to
create maps "just" for viewing or further processing in GIMP, so printer
capabilities are not that relevant here.

> (maybe wanted for PDF fliers?)

Good example.

> Looks fine with margin=0 in gnome-gv and kghostview.

For me it's still not good, however kind of different now than in my original
post:

in gnome-gv:

On the right and top the frame is almost not visible (I can spot it very thin
at ~400% zoom), using the defaulf BBox paper size

> In gv I see no difference between paper=BBox and paper=A4.

For me, after forcing A4, the top border becomes visible OK, on the right
still almost not visible as with BBox.

> The new 'border' controls might help mask any ugliness if it reappears.

It is neat, many thanks for this. However, I would prefer to avoid using it as
a workaround.

> Can we close this bug?

I'd rather not. Maybe there is something that could be done? I have put my ps
file here http://kufaya.googlepages.com/spear_ps.ps.bz2, if you wouldn't mind
looking at it. Maybe it is just my ghostcript setup. I'm using the default
Ubuntu Dapper's ESP 8.15.2. With AFPL 8.14 I get the same results. With GPL
8.15 things get even worse - the page orientation is not interpretted properly
by gnome-gv.

Interestingly, with each of the 3 interpretes the old-good gv always fails to
set right orientation for the ps.map output (while it used not to have such
problem when I was using it on Breezy, when reporting this bug). It always
forces portrait, and changing to landscape renders only half of the image.

Maciek
Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request