From MAILER-DAEMON Tue May 06 22:20:19 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1WhrT1-0006CV-0u
	for mharc-bug-ghostscript@gnu.org; Tue, 06 May 2014 22:20:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59598)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1WhmrC-00059F-6f
	for bug-ghostscript@gnu.org; Tue, 06 May 2014 17:25:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1Whmr5-0007ig-1u
	for bug-ghostscript@gnu.org; Tue, 06 May 2014 17:24:58 -0400
Received: from mail-pa0-f43.google.com ([209.85.220.43]:58133)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1Whmr4-0007iD-Of
	for bug-ghostscript@gnu.org; Tue, 06 May 2014 17:24:50 -0400
Received: by mail-pa0-f43.google.com with SMTP id hz1so73187pad.2
	for <bug-ghostscript@gnu.org>; Tue, 06 May 2014 14:24:49 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:from:content-type:subject:date:message-id:cc:to
	:mime-version;
	bh=Q5lyU8OZ7bdbzafKKi0eNorfvUW4iq7kpPDANF1QEwM=;
	b=Xr52/+3I9MMikm3YV/oSuXRACfQpE19m8hUzXQNOg6QNyxSPP5GkLl+3VbaEyQzcub
	Z9Aa1yggxoAWFDS7fjkR3expiMX3wc4ssp0bwM1I5rKU24VgsfkAkS9qswBCpmcixT2h
	17bvWbm8cc+3JdbV6ghwghPNQYktoogW/gsGD4K8wOgJTzArbY/jzfODd+u1ffMBrNqL
	6fitf8m8pLNTmo4W8PBDDOf/TmB4qziXSa7H5+OemgpTiCeeTKOtQmmVLIfmA0PR+zML
	1360oCDnPe3p/DHS/Q8eA54oZ9ndzrLHIs89e2uJJ/85r4K+BiJrilCsAxLmmdmHE7aN
	iXXQ==
X-Gm-Message-State: ALoCoQlcRJOtOLnbY8qPgHQV4tI88DJ5J5ZcdSsTp5GNCpDhAKDz/LNhBqhY3lf0RmAWKpqqcpg9
X-Received: by 10.66.218.226 with SMTP id pj2mr10738297pac.134.1399411489369; 
	Tue, 06 May 2014 14:24:49 -0700 (PDT)
Received: from macnut.soest.hawaii.edu (macnut.soest.hawaii.edu.
	[128.171.158.173])
	by mx.google.com with ESMTPSA id sd5sm2364445pbb.10.2014.05.06.14.24.47
	for <multiple recipients>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 06 May 2014 14:24:48 -0700 (PDT)
From: Paul Wessel <pwessel@hawaii.edu>
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_920F906D-6025-46B6-884C-AFC4025203EC"
Subject: Clip path ignored except by pdfwrite
Date: Tue, 6 May 2014 11:24:01 -1000
Message-Id: <5986C08F-3AF3-4373-AF2B-E12864063E5C@hawaii.edu>
To: bug-ghostscript@gnu.org
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
X-Mailer: Apple Mail (2.1874)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 209.85.220.43
X-Mailman-Approved-At: Tue, 06 May 2014 22:20:17 -0400
Cc: Paul Wessel <pwessel@hawaii.edu>
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 May 2014 21:25:05 -0000


--Apple-Mail=_920F906D-6025-46B6-884C-AFC4025203EC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi gs maintainers-

The Generic Mapping Tools (GMT; gmt.soest.hawaii.edu) uses PostScript =
for plotting.  For some contour labels and texts we set up clip paths =
based on bounding boxes around each text item to ensure that later plot =
items do not overwrite the labels.  We then turn clipping off.  However, =
we believe we have found a bug in gs affecting this situation.

The attached file both2.ps illustrates the problem. The top panel places =
two rectangular text boxes as clip paths and the bottom places two =
rounded rectangles as clip paths [we are not showing the texts in either =
case].  Both panels are then overwritten by a rectangular hachure image, =
and due to clipping the boxes should be visible in page white.  =
Converting the PS file to PDF works: gs, Preview, Distiller, and PS =
printers all render the correct result.  However, when we use gs to =
produce a raster file (JPG, TIFF, PNG, etc) or use gv (which presumably =
needs to produce a raster as well) the clipping is absent and no errors =
are reported.  We thus suspect there is a bug in the function that =
rasterizes the PS.

My particular gs version is 9.10 installed from macports under OS X =
10.9.2, but reports from Linux and Windows are similar.  I have reduced =
the PS file down as much as I could to minimize unnecessary code.

Sincerely, Paul Wessel

--Apple-Mail=_920F906D-6025-46B6-884C-AFC4025203EC
Content-Disposition: inline;
	filename=both2.ps
Content-Type: image/ps;
	x-unix-mode=0600;
	name="both2.ps"
Content-Transfer-Encoding: 7bit

%!PS-Adobe-3.0
%%BoundingBox: 0 0 595 842
%%HiResBoundingBox: 0 0 595 842
%%Title: GMT v5.1.2_r13107 [64-bit] Document from pstext
%%Creator: GMT5
%%For: pwessel
%%DocumentNeededResources: font Helvetica
%%CreationDate: Mon May  5 16:54:21 2014
%%LanguageLevel: 2
%%DocumentData: Clean7Bit
%%Orientation: Portrait
%%Pages: 1
%%EndComments

%%BeginProlog
% Begin pslib header
250 dict begin
/! {bind def} bind def
/# {load def}!
/A /setgray #
/B /setdash #
/C /setrgbcolor #
/D /rlineto #
/E {dup stringwidth pop}!
/F /fill #
/G /rmoveto #
/H /sethsbcolor #
/I /setpattern #
/K /setcmykcolor #
/L /lineto #
/M /moveto #
/N /newpath #
/P /closepath #
/R /rotate #
/S /stroke #
/T /translate #
/U /grestore #
/V /gsave #
/W /setlinewidth #
/Y {findfont exch scalefont setfont}!
/Z /show #
/FP {true charpath flattenpath}!
/MU {matrix setmatrix}!
/MS {/SMat matrix currentmatrix def}!
/MR {SMat setmatrix}!
/edef {exch def}!
% Path fill
/FS {/fc edef /fs {V fc F U} def}!
/FQ {/fs {} def}!
% Outline off or on
/O0 {/os {N} def}!
/O1 {/os {P S} def}!
% Set both fill and outline
/FO {fs os}!
% Rectangle: height width xc yc
/Sr {M dup -2 div 2 index -2 div G dup 0 D exch 0 exch D neg 0 D FO}!
% Rounded rectangle: height width radius xc yc
/SR {MS T /BoxR edef /BoxW edef /BoxH edef BoxR BoxW -2 div BoxH -2 div T BoxR 0 M
  BoxW 0 BoxW BoxH BoxR arct BoxW BoxH 0 BoxH BoxR arct 0 BoxH 0 0 BoxR arct 0 0 BoxW 0 BoxR arct MR FO}!
% String width, height, depth and total height (height-depth)
/sw {stringwidth pop}!
/sh {V MU 0 0 M FP pathbbox N 4 1 roll pop pop pop U}!
/sd {V MU 0 0 M FP pathbbox N pop pop exch pop U}!
/sH {V MU 0 0 M FP pathbbox N exch pop exch sub exch pop U}!
/sb {E exch sh}!
% To align text {bottom,middle,top}{left,center,right}
/bl {}!
/bc {E -2 div 0 G}!
/br {E neg 0 G}!
/ml {dup 0 exch sh -2 div G}!
/mc {dup E -2 div exch sh -2 div G}!
/mr {dup E neg exch sh -2 div G}!
/tl {dup 0 exch sh neg G}!
/tc {dup E -2 div exch sh neg G}!
/tr {dup E neg exch sh neg G}!
% Maximum of two numbers
/mx {2 copy lt {exch} if pop}!
% Translate and memorize advance
/PSL_xorig 0 def /PSL_yorig 0 def
/TM {2 copy T PSL_yorig add /PSL_yorig edef PSL_xorig add /PSL_xorig edef}!
/F0 {/Helvetica Y}!

% PSL LABEL CLIP FUNCTIONS

% PSL_straight_text_labels: handles text that has straight baseline
%
% Function assume that these variables have been predefined (at least once):
%
% PSL_setlinepen Function that sets the line pen attributes (width, texture, color)
% PSL_setboxpen  Function that sets the text box pen attributes (width, texture, color)
% PSL_setboxrgb  Function that sets the opaque text box color
% PSL_settxtrgb	 Function that sets the font rgb
% PSL_str	Array with all the labels
% PSL_m		Number of labels
% PSL_angle	The annotation angle for each label
% PSL_txt_x	(x,y) coordinates of the location of the m labels
% PSL_txt_y

% PSL_straight_text_labels deals with straight text labels w/wo textboxes (rect or rounded).
% Because only the (x,y) location of each label is needed we can do all the labels
% in one (or two, for clipping) call to PSL_straight_text_labels.
% Subroutines of this function are called PSL_ST_*

/PSL_straight_text_labels
{		% This will create a total clip path for all the labels in PSL_txt
  /bits exch def				% Single bitflag argument passed
  /PSL_clippath bits 1 and 0 eq def		% true if we want to clip, false to place text
  /PSL_rounded bits 16 and 16 eq def		% true for rounded box shape, false gives rectangular box
  /PSL_fillbox bits 128 and 128 eq def		% true to paint box opaque before placing text, false gives transparent box
  /PSL_drawbox bits 256 and 256 eq def		% true to draw box outline before placing text, false gives no outline
  /PSL_m1 PSL_m 1 sub def
  /PSL_justx PSL_just 4 mod 1 sub 2 div neg def
  /PSL_justy PSL_just 4 idiv PSL_height mul 2 div neg def
  /PSL_usebox PSL_fillbox PSL_drawbox or def	% true if we need box outline for fill or stroke or both

  PSL_clippath
  {PSL_ST_clippath}
  {PSL_usebox {PSL_ST_clippath} if
    PSL_ST_placelabel
  } ifelse
} def

/PSL_ST_placelabel	% Just place labels
{PSL_settxtrgb
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point
    V PSL_txt_x k get PSL_txt_y k get T		% Set origin at text point
    PSL_angle k get R				% Rotate the coordinate system to follow baseline text
    /BoxW PSL_str k get stringwidth pop def	% Width of current label space including clearance
    BoxW PSL_justx mul PSL_justy M		% Goto LL point on label
    PSL_str k get show				% Place the text
    U						% Undo damage to coordinate system
  } for
} def

/PSL_ST_clippath	% Create and lay down clip path
{N						% Start fresh
  PSL_usebox not {clipsave clippath} if		% Set clipsave and start clip path
  PSL_rounded {PSL_ST_clippath_round} {PSL_ST_clippath_rect} ifelse
  PSL_usebox
  {PSL_fillbox
    {V PSL_setboxrgb fill U} if
    PSL_drawbox
    {PSL_setboxpen S} if N
  }
  {PSL_clip		% Set the new clip path
  } ifelse
  N			% Clean up and return
} def

/PSL_ST_clippath_rect_old	% Create and lay down rectangular clip path
{
  /BoxH PSL_height PSL_gap_y 2 mul add def	% Height of current label space including clearance
  /DelY BoxH BoxH 0 3 array astore def		% Offsets in y from LL
  /y0 0 PSL_justy add PSL_gap_y sub def		% (x0,y0) is the rotated and adjusted text LL point relative to xp,yp
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point
    /MAT PSL_angle k get matrix R def		% Rotate the coordinate system to follow baseline text
    /W PSL_str k get stringwidth pop def	% Width of current label
    /BoxW W PSL_gap_x 2 mul add def		% Width of current label space including clearance
    /x0 0 W PSL_justx mul add PSL_gap_x sub def	% (x0,y0) is the rotated and adjusted text LL point relative to xp,yp
    /DelX 0 BoxW BoxW 3 array astore def	% Offsets in x from LL
    x0 y0 MAT transform
    /dy exch def /dx exch def
    xp dx add yp dy add M			% Start new clippath segment
    0 1 2
    { % Visit all points clockwise and append to clippath
      /ii exch def
      x0 DelX ii get add y0 DelY ii get add MAT transform
      /dy exch def /dx exch def
      xp dx add yp dy add L			% Start new clippath segment
    } for
    P						% Close the clippath segment
  } for
} def

/PSL_ST_clippath_rect	% Create and lay down rectangular clip path
{
  /BoxH PSL_height PSL_gap_y 2 mul add def	% Height of current label space including clearance
  /y0 PSL_justy def				% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point (xp, yp)
    /W PSL_str k get stringwidth pop def	% Width of current label space
    /BoxW W PSL_gap_x 2 mul add def		% Width of current label space including clearance
    /x0 W PSL_justx mul def			% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
    xp yp T PSL_angle k get R x0 y0 T		% Rotate the coordinate system to follow baseline text
    PSL_gap_x neg PSL_gap_y neg M
    BoxW 0 D 0 BoxH D BoxW neg 0 D P
    x0 neg y0 neg T PSL_angle k get neg R xp neg yp neg T	% Unto trans/rot above
  } for
} def

/PSL_ST_clippath_round	% Create and lay down rounded rectangular clip path
{
  /PSL_justy2 PSL_just 4 idiv 2 div neg def	% This is 0, -0.5, or 1
  /BoxR PSL_gap_x PSL_gap_y lt {PSL_gap_x} {PSL_gap_y} ifelse def	% Smallest gap distance is our corner radius
  /BoxH PSL_height PSL_gap_y 2 mul add def	% Height of current label space including clearance
  /y0 PSL_justy def				% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
  /xd PSL_gap_x BoxR sub def 			% When x_gap exceeds y_gap there will be an adjustment in x, else 0
  /yd PSL_gap_y BoxR sub def 			% When y_gap exceeds x_gap there will be an adjustment in y, else 0
  /H2 PSL_height yd 2 mul add def		% Inner height when adjusting for any yd offset
  /xL PSL_gap_x neg def				% Left-most x coordinate of text box
  /yB PSL_gap_y neg def				% Bottom y coordinate of text box
  /yT BoxH yB add def				% Top y coordinate of text box
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point (xp, yp)
    /W PSL_str k get stringwidth pop def	% Width of current label space
    /BoxW W PSL_gap_x 2 mul add def		% Width of current label space including clearance
    /W2 W xd 2 mul add def			% Inner width when adjusting for any xd offset
    /xR xL BoxW add def				% Right-most x coordinate of text box
    /x0 W PSL_justx mul def			% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
    xp yp T PSL_angle k get R x0 y0 T		% Rotate the coordinate system to follow baseline text
    xL yd M					% Start of rounded box is on lower left side just before rounded corner
    xL yB xR yB BoxR arct W2 0 rlineto		% Drow LL rounded corner and line to start of LR rounded corner
    xR yB xR yT BoxR arct 0 H2 rlineto		% Draw LR rounded corner and line to UR rounded corner
    xR yT xL yT BoxR arct W2 neg 0 rlineto	% Draw UR rounded corner and line to UL rounded corner
    xL yT xL yB BoxR arct P			% Draw UL rounded corner and close the clippath segment
    x0 neg y0 neg T PSL_angle k get neg R xp neg yp neg T	% Unto trans/rot above
  } for
} def

/PSL_nclip 0 def							% The depth of clipping in effect
/PSL_clip {clip /PSL_nclip PSL_nclip 1 add def} def			% Clip and update PSL_nclip
/PSL_eoclip {eoclip /PSL_nclip PSL_nclip 1 add def} def			% Even-odd clip and update PSL_nclip
/PSL_cliprestore {cliprestore /PSL_nclip PSL_nclip 1 sub def} def	% Cliprestore and update PSL_nclip
%%EndProlog

%%BeginSetup
/PSLevel /languagelevel where {pop languagelevel} {1} ifelse def
PSLevel 1 gt { << /PageSize [595 842] /ImagingBBox null >> setpagedevice } if
%%EndSetup

%%Page: 1 1

%%BeginPageSetup
%
% Init coordinate system and scales
%
%
% Scale initialized to 0.06, so 1 inch equals 1200 Postscript units
%
V 0.06 0.06 scale
%%EndPageSetup

%
% End of PSL header
%
/PSL_page_xsize 9917 def
/PSL_page_ysize 14033 def
0 A
FQ
O0
1200 1200 TM

% PostScript produced by:
%%GMT: pstext -R0/6/0/4 -Jx1i -P -K -F+f32p+jCM -Gc -C1c/0.5c -TO
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_1
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
/PSL_setlinepen {4 W 0 A [] 0 B} def
/PSL_setboxpen {4 W 0 A [] 0 B} def
/PSL_setboxrgb {0 A} def
/PSL_settxtrgb {} def
533 F0
/PSL_m 2 def
/PSL_txt_x
2400.00
4800.00
2 array astore def
/PSL_txt_y
1200.00
3600.00
2 array astore def
/PSL_angle
0.00
0.00
2 array astore def
/PSL_str
(TEXT)
(TEXT)
2 array astore def
/PSL_just 6 def
/PSL_gap_x 472 def
/PSL_gap_y 236 def
(TEXT) sH /PSL_height edef
16 PSL_straight_text_labels
%%EndObject
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psxy -R0/6/0/4 -Jx1i -O -K -Sri -Gp100/8:B-
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_2
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
%
% Activate Map clip path
%
%
% Start of polygon clip path
%
clipsave
0 0 M
7200 0 D
0 4800 D
-7200 0 D
PSL_eoclip N
%
% End of polygon clip path.  Polygon clipping is currently ON
%
4 W
V
%
% Define pattern 8
%
/image8 {<~
J,iCW-mAWq!/&-R!,,Uq(^pC4,!Z.H;CrV#!$a5&!J3BTO"^PH.3JZs-\=Z2:oIp5)\\(IAl37&E]l@Ba^gK8/1Od4Qc*Q7$
(T:V)N[j0;E6T)#:l`GV:,bd(26=/;IhW+gnIS.PuO\>9!i'48=WF(E[p^Y_$@54k]L"@?B8fjf-GJ%'u#5t\^<%<CV=KU-+
;:kf,P7JX[e?,.s%Wp~>
/LZWDecode filter} def
%
% Setup imagemask fill using pattern 8
%
/pattern8 {V 768 768 scale
<< /PaintType 1 /PatternType 1 /TilingType 1 /BBox [0 0 1 1] /XStep 1 /YStep 1 /PaintProc
   {begin [/Indexed /DeviceGray 0 <00>] setcolorspace
<< /ImageType 1 /Decode [1 0] /Width 64 /Height 64 /BitsPerComponent 1
   /ImageMatrix [64 0 0 -64 0 64] /DataSource image8
>> imagemask end}
>> matrix makepattern U} def
{pattern8 I} FS
4800 7200 3600 2400 Sr
U
%
% Deactivate Map clip path
%
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
currentdict /image8 undef
currentdict /pattern8 undef
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psclip -R0/6/0/4 -Jx1i -C -O -K
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 0.000 0.000 0.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_3
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
0 A
FQ
O0
0 6000 TM

% PostScript produced by:
%%GMT: pstext -R0/6/0/4 -Jx1i -O -K -F+f32p+jCM -Gc -C1c/0.5c -To -Y5i
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_4
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
/PSL_setlinepen {4 W 0 A [] 0 B} def
/PSL_setboxpen {4 W 0 A [] 0 B} def
/PSL_setboxrgb {0 A} def
/PSL_settxtrgb {} def
533 F0
/PSL_m 2 def
/PSL_txt_x
2400.00
4800.00
2 array astore def
/PSL_txt_y
1200.00
3600.00
2 array astore def
/PSL_angle
0.00
0.00
2 array astore def
/PSL_str
(TEXT)
(TEXT)
2 array astore def
/PSL_just 6 def
/PSL_gap_x 472 def
/PSL_gap_y 236 def
(TEXT) sH /PSL_height edef
0 PSL_straight_text_labels
%%EndObject
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psxy -R0/6/0/4 -Jx1i -O -K -Sri -Gp100/8:B-
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_5
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
%
% Activate Map clip path
%
%
% Start of polygon clip path
%
clipsave
0 0 M
7200 0 D
0 4800 D
-7200 0 D
PSL_eoclip N
%
% End of polygon clip path.  Polygon clipping is currently ON
%
4 W
V
%
% Define pattern 8
%
/image8 {<~
J,iCW-mAWq!/&-R!,,Uq(^pC4,!Z.H;CrV#!$a5&!J3BTO"^PH.3JZs-\=Z2:oIp5)\\(IAl37&E]l@Ba^gK8/1Od4Qc*Q7$
(T:V)N[j0;E6T)#:l`GV:,bd(26=/;IhW+gnIS.PuO\>9!i'48=WF(E[p^Y_$@54k]L"@?B8fjf-GJ%'u#5t\^<%<CV=KU-+
;:kf,P7JX[e?,.s%Wp~>
/LZWDecode filter} def
%
% Setup imagemask fill using pattern 8
%
/pattern8 {V 768 768 scale
<< /PaintType 1 /PatternType 1 /TilingType 1 /BBox [0 0 1 1] /XStep 1 /YStep 1 /PaintProc
   {begin [/Indexed /DeviceGray 0 <00>] setcolorspace
<< /ImageType 1 /Decode [1 0] /Width 64 /Height 64 /BitsPerComponent 1
   /ImageMatrix [64 0 0 -64 0 64] /DataSource image8
>> imagemask end}
>> matrix makepattern U} def
{pattern8 I} FS
4800 7200 3600 2400 Sr
U
%
% Deactivate Map clip path
%
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
currentdict /image8 undef
currentdict /pattern8 undef
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psclip -R0/6/0/4 -Jx1i -C -O
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 0.000 0.000 0.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_6
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
%%PageTrailer
%
% Reset transformations and call showpage
%
U
showpage

%%Trailer

end
%%EOF

--Apple-Mail=_920F906D-6025-46B6-884C-AFC4025203EC--


From MAILER-DAEMON Tue May 06 23:32:31 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Whsat-0001sE-16
	for mharc-bug-ghostscript@gnu.org; Tue, 06 May 2014 23:32:31 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60736)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1Whsaj-0001ri-Kc
	for bug-ghostscript@gnu.org; Tue, 06 May 2014 23:32:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1Whsac-0003kL-TY
	for bug-ghostscript@gnu.org; Tue, 06 May 2014 23:32:21 -0400
Received: from mail-pa0-f47.google.com ([209.85.220.47]:38975)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1Whsac-0003kH-KQ
	for bug-ghostscript@gnu.org; Tue, 06 May 2014 23:32:14 -0400
Received: by mail-pa0-f47.google.com with SMTP id fa1so470693pad.20
	for <bug-ghostscript@gnu.org>; Tue, 06 May 2014 20:32:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:from:content-type:subject:date:message-id:cc:to
	:mime-version;
	bh=HkKXfXa9ObGcnhnmLusLSWJVUeeacwz2+N9CahgOcx8=;
	b=jYcJZQyD0a7EdfJWu6IdKeshj91iHCCvNAL0woSMqL6REPAAJIwvVq4+su4+UCdWTI
	mD7RIlMV2f5lfKT1nePun4X75wXxkyAkkCrKKjCVAaDOCpmibGOh6U8Y2eaQ7doyl0k4
	FR4DvcxyXeCMqVRnwy8F1TVJ3vDH7bRebFz7EDZF5Dy/c3FdoXiiYCLmmkBiwWYm8UPl
	5MzTnGU81U3ZGjmCYMd17D+jIPeDdD7VYAoCQAtIBjnixDV8l+fNmfaajoFNJj0yca/S
	l28Ik6h7xVMrn2BtTugV0S+jx8q7x9sZzAm6hP8qaRD7ib2vB6QCGpsFBUh9FEg+Q2LE
	LacA==
X-Gm-Message-State: ALoCoQnaA6KWNS7+ZEP0Ald2/wogZIsmsJRRkU19El7bXQeN6JUfBSis7VLMMi/DmxO5tCgJkQim
X-Received: by 10.66.147.130 with SMTP id tk2mr13775014pab.125.1399433533424; 
	Tue, 06 May 2014 20:32:13 -0700 (PDT)
Received: from macnut.soest.hawaii.edu (macnut.soest.hawaii.edu.
	[128.171.158.173])
	by mx.google.com with ESMTPSA id lg9sm1291278pab.48.2014.05.06.20.32.10
	for <multiple recipients>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 06 May 2014 20:32:11 -0700 (PDT)
From: Paul Wessel <pwessel@hawaii.edu>
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_013F7B3C-7D90-4289-9CBE-F64D8989B9BB"
Subject: Clip path ignored except by pdfwrite
Date: Tue, 6 May 2014 17:31:24 -1000
Message-Id: <57DA57D5-DD1E-4CD4-98CE-B9795368E190@hawaii.edu>
To: bug-ghostscript@gnu.org
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
X-Mailer: Apple Mail (2.1874)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 209.85.220.47
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 May 2014 03:32:28 -0000


--Apple-Mail=_013F7B3C-7D90-4289-9CBE-F64D8989B9BB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi gs maintainers-

[Apologies if this posting appears twice]

The Generic Mapping Tools (GMT; gmt.soest.hawaii.edu) uses PostScript =
for plotting.  For some contour labels and texts we set up clip paths =
based on bounding boxes around each text item to ensure that later plot =
items do not overwrite the labels.  We then turn clipping off.  However, =
we believe we have found a bug in gs affecting this situation.

The attached file both2.ps illustrates the problem. The top panel places =
two rectangular text boxes as clip paths and the bottom places two =
rounded rectangles as clip paths [we are not showing the texts in either =
case].  Both panels are then overwritten by a rectangular hachure image, =
and due to clipping the boxes should be visible in page white.  =
Converting the PS file to PDF works: gs, Preview, Distiller, and PS =
printers all render the correct result.  However, when we use gs to =
produce a raster file (JPG, TIFF, PNG, etc) or use gv (which presumably =
needs to produce a raster as well) the clipping is absent and no errors =
are reported.  We thus suspect there is a bug in the function that =
rasterizes the PS.

My particular gs version is 9.10 installed from macports under OS X =
10.9.2, but reports from Linux and Windows are similar.  I have reduced =
the PS file down as much as I could to minimize unnecessary code.

Sincerely, Paul Wessel

--Apple-Mail=_013F7B3C-7D90-4289-9CBE-F64D8989B9BB
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_563B9731-E68B-4334-B0C6-B7FD5805E229"


--Apple-Mail=_563B9731-E68B-4334-B0C6-B7FD5805E229
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi gs =
maintainers-<br><br>[Apologies if this posting appears =
twice]<div><br>The Generic Mapping Tools (GMT;&nbsp;<a =
href=3D"http://gmt.soest.hawaii.edu">gmt.soest.hawaii.edu</a>) uses =
PostScript for plotting. &nbsp;For some contour labels and texts we set =
up clip paths based on bounding boxes around each text item to ensure =
that later plot items do not overwrite the labels. &nbsp;We then turn =
clipping off. &nbsp;However, we believe we have found a bug in gs =
affecting this situation.<br><br>The attached file both2.ps illustrates =
the problem. The top panel places two rectangular text boxes as clip =
paths and the bottom places two rounded rectangles as clip paths [we are =
not showing the texts in either case]. &nbsp;Both panels are then =
overwritten by a rectangular hachure image, and due to clipping the =
boxes should be visible in page white. &nbsp;Converting the PS file to =
PDF works: gs, Preview, Distiller, and PS printers all render the =
correct result. &nbsp;However, when we use gs to produce a raster file =
(JPG, TIFF, PNG, etc) or use gv (which presumably needs to produce a =
raster as well) the clipping is absent and no errors are reported. =
&nbsp;We thus suspect there is a bug in the function that rasterizes the =
PS.<br><br>My particular gs version is 9.10 installed from macports =
under OS X 10.9.2, but reports from Linux and Windows are similar. =
&nbsp;I have reduced the PS file down as much as I could to minimize =
unnecessary code.<br><br>Sincerely, Paul =
Wessel<br></div><div></div></body></html>=

--Apple-Mail=_563B9731-E68B-4334-B0C6-B7FD5805E229
Content-Disposition: inline;
	filename=both2.ps
Content-Type: image/ps;
	x-unix-mode=0600;
	name="both2.ps"
Content-Transfer-Encoding: 7bit

%!PS-Adobe-3.0
%%BoundingBox: 0 0 595 842
%%HiResBoundingBox: 0 0 595 842
%%Title: GMT v5.1.2_r13107 [64-bit] Document from pstext
%%Creator: GMT5
%%For: pwessel
%%DocumentNeededResources: font Helvetica
%%CreationDate: Mon May  5 16:54:21 2014
%%LanguageLevel: 2
%%DocumentData: Clean7Bit
%%Orientation: Portrait
%%Pages: 1
%%EndComments

%%BeginProlog
% Begin pslib header
250 dict begin
/! {bind def} bind def
/# {load def}!
/A /setgray #
/B /setdash #
/C /setrgbcolor #
/D /rlineto #
/E {dup stringwidth pop}!
/F /fill #
/G /rmoveto #
/H /sethsbcolor #
/I /setpattern #
/K /setcmykcolor #
/L /lineto #
/M /moveto #
/N /newpath #
/P /closepath #
/R /rotate #
/S /stroke #
/T /translate #
/U /grestore #
/V /gsave #
/W /setlinewidth #
/Y {findfont exch scalefont setfont}!
/Z /show #
/FP {true charpath flattenpath}!
/MU {matrix setmatrix}!
/MS {/SMat matrix currentmatrix def}!
/MR {SMat setmatrix}!
/edef {exch def}!
% Path fill
/FS {/fc edef /fs {V fc F U} def}!
/FQ {/fs {} def}!
% Outline off or on
/O0 {/os {N} def}!
/O1 {/os {P S} def}!
% Set both fill and outline
/FO {fs os}!
% Rectangle: height width xc yc
/Sr {M dup -2 div 2 index -2 div G dup 0 D exch 0 exch D neg 0 D FO}!
% Rounded rectangle: height width radius xc yc
/SR {MS T /BoxR edef /BoxW edef /BoxH edef BoxR BoxW -2 div BoxH -2 div T BoxR 0 M
  BoxW 0 BoxW BoxH BoxR arct BoxW BoxH 0 BoxH BoxR arct 0 BoxH 0 0 BoxR arct 0 0 BoxW 0 BoxR arct MR FO}!
% String width, height, depth and total height (height-depth)
/sw {stringwidth pop}!
/sh {V MU 0 0 M FP pathbbox N 4 1 roll pop pop pop U}!
/sd {V MU 0 0 M FP pathbbox N pop pop exch pop U}!
/sH {V MU 0 0 M FP pathbbox N exch pop exch sub exch pop U}!
/sb {E exch sh}!
% To align text {bottom,middle,top}{left,center,right}
/bl {}!
/bc {E -2 div 0 G}!
/br {E neg 0 G}!
/ml {dup 0 exch sh -2 div G}!
/mc {dup E -2 div exch sh -2 div G}!
/mr {dup E neg exch sh -2 div G}!
/tl {dup 0 exch sh neg G}!
/tc {dup E -2 div exch sh neg G}!
/tr {dup E neg exch sh neg G}!
% Maximum of two numbers
/mx {2 copy lt {exch} if pop}!
% Translate and memorize advance
/PSL_xorig 0 def /PSL_yorig 0 def
/TM {2 copy T PSL_yorig add /PSL_yorig edef PSL_xorig add /PSL_xorig edef}!
/F0 {/Helvetica Y}!

% PSL LABEL CLIP FUNCTIONS

% PSL_straight_text_labels: handles text that has straight baseline
%
% Function assume that these variables have been predefined (at least once):
%
% PSL_setlinepen Function that sets the line pen attributes (width, texture, color)
% PSL_setboxpen  Function that sets the text box pen attributes (width, texture, color)
% PSL_setboxrgb  Function that sets the opaque text box color
% PSL_settxtrgb	 Function that sets the font rgb
% PSL_str	Array with all the labels
% PSL_m		Number of labels
% PSL_angle	The annotation angle for each label
% PSL_txt_x	(x,y) coordinates of the location of the m labels
% PSL_txt_y

% PSL_straight_text_labels deals with straight text labels w/wo textboxes (rect or rounded).
% Because only the (x,y) location of each label is needed we can do all the labels
% in one (or two, for clipping) call to PSL_straight_text_labels.
% Subroutines of this function are called PSL_ST_*

/PSL_straight_text_labels
{		% This will create a total clip path for all the labels in PSL_txt
  /bits exch def				% Single bitflag argument passed
  /PSL_clippath bits 1 and 0 eq def		% true if we want to clip, false to place text
  /PSL_rounded bits 16 and 16 eq def		% true for rounded box shape, false gives rectangular box
  /PSL_fillbox bits 128 and 128 eq def		% true to paint box opaque before placing text, false gives transparent box
  /PSL_drawbox bits 256 and 256 eq def		% true to draw box outline before placing text, false gives no outline
  /PSL_m1 PSL_m 1 sub def
  /PSL_justx PSL_just 4 mod 1 sub 2 div neg def
  /PSL_justy PSL_just 4 idiv PSL_height mul 2 div neg def
  /PSL_usebox PSL_fillbox PSL_drawbox or def	% true if we need box outline for fill or stroke or both

  PSL_clippath
  {PSL_ST_clippath}
  {PSL_usebox {PSL_ST_clippath} if
    PSL_ST_placelabel
  } ifelse
} def

/PSL_ST_placelabel	% Just place labels
{PSL_settxtrgb
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point
    V PSL_txt_x k get PSL_txt_y k get T		% Set origin at text point
    PSL_angle k get R				% Rotate the coordinate system to follow baseline text
    /BoxW PSL_str k get stringwidth pop def	% Width of current label space including clearance
    BoxW PSL_justx mul PSL_justy M		% Goto LL point on label
    PSL_str k get show				% Place the text
    U						% Undo damage to coordinate system
  } for
} def

/PSL_ST_clippath	% Create and lay down clip path
{N						% Start fresh
  PSL_usebox not {clipsave clippath} if		% Set clipsave and start clip path
  PSL_rounded {PSL_ST_clippath_round} {PSL_ST_clippath_rect} ifelse
  PSL_usebox
  {PSL_fillbox
    {V PSL_setboxrgb fill U} if
    PSL_drawbox
    {PSL_setboxpen S} if N
  }
  {PSL_clip		% Set the new clip path
  } ifelse
  N			% Clean up and return
} def

/PSL_ST_clippath_rect_old	% Create and lay down rectangular clip path
{
  /BoxH PSL_height PSL_gap_y 2 mul add def	% Height of current label space including clearance
  /DelY BoxH BoxH 0 3 array astore def		% Offsets in y from LL
  /y0 0 PSL_justy add PSL_gap_y sub def		% (x0,y0) is the rotated and adjusted text LL point relative to xp,yp
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point
    /MAT PSL_angle k get matrix R def		% Rotate the coordinate system to follow baseline text
    /W PSL_str k get stringwidth pop def	% Width of current label
    /BoxW W PSL_gap_x 2 mul add def		% Width of current label space including clearance
    /x0 0 W PSL_justx mul add PSL_gap_x sub def	% (x0,y0) is the rotated and adjusted text LL point relative to xp,yp
    /DelX 0 BoxW BoxW 3 array astore def	% Offsets in x from LL
    x0 y0 MAT transform
    /dy exch def /dx exch def
    xp dx add yp dy add M			% Start new clippath segment
    0 1 2
    { % Visit all points clockwise and append to clippath
      /ii exch def
      x0 DelX ii get add y0 DelY ii get add MAT transform
      /dy exch def /dx exch def
      xp dx add yp dy add L			% Start new clippath segment
    } for
    P						% Close the clippath segment
  } for
} def

/PSL_ST_clippath_rect	% Create and lay down rectangular clip path
{
  /BoxH PSL_height PSL_gap_y 2 mul add def	% Height of current label space including clearance
  /y0 PSL_justy def				% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point (xp, yp)
    /W PSL_str k get stringwidth pop def	% Width of current label space
    /BoxW W PSL_gap_x 2 mul add def		% Width of current label space including clearance
    /x0 W PSL_justx mul def			% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
    xp yp T PSL_angle k get R x0 y0 T		% Rotate the coordinate system to follow baseline text
    PSL_gap_x neg PSL_gap_y neg M
    BoxW 0 D 0 BoxH D BoxW neg 0 D P
    x0 neg y0 neg T PSL_angle k get neg R xp neg yp neg T	% Unto trans/rot above
  } for
} def

/PSL_ST_clippath_round	% Create and lay down rounded rectangular clip path
{
  /PSL_justy2 PSL_just 4 idiv 2 div neg def	% This is 0, -0.5, or 1
  /BoxR PSL_gap_x PSL_gap_y lt {PSL_gap_x} {PSL_gap_y} ifelse def	% Smallest gap distance is our corner radius
  /BoxH PSL_height PSL_gap_y 2 mul add def	% Height of current label space including clearance
  /y0 PSL_justy def				% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
  /xd PSL_gap_x BoxR sub def 			% When x_gap exceeds y_gap there will be an adjustment in x, else 0
  /yd PSL_gap_y BoxR sub def 			% When y_gap exceeds x_gap there will be an adjustment in y, else 0
  /H2 PSL_height yd 2 mul add def		% Inner height when adjusting for any yd offset
  /xL PSL_gap_x neg def				% Left-most x coordinate of text box
  /yB PSL_gap_y neg def				% Bottom y coordinate of text box
  /yT BoxH yB add def				% Top y coordinate of text box
  0 1 PSL_m1					% Loop over all labels
  { /k exch def					% Current label index
    /xp PSL_txt_x k get def
    /yp PSL_txt_y k get def			% Get text placement point (xp, yp)
    /W PSL_str k get stringwidth pop def	% Width of current label space
    /BoxW W PSL_gap_x 2 mul add def		% Width of current label space including clearance
    /W2 W xd 2 mul add def			% Inner width when adjusting for any xd offset
    /xR xL BoxW add def				% Right-most x coordinate of text box
    /x0 W PSL_justx mul def			% (x0,y0) is the rotated and adjusted text LL point on inside rectangle relative to xp,yp
    xp yp T PSL_angle k get R x0 y0 T		% Rotate the coordinate system to follow baseline text
    xL yd M					% Start of rounded box is on lower left side just before rounded corner
    xL yB xR yB BoxR arct W2 0 rlineto		% Drow LL rounded corner and line to start of LR rounded corner
    xR yB xR yT BoxR arct 0 H2 rlineto		% Draw LR rounded corner and line to UR rounded corner
    xR yT xL yT BoxR arct W2 neg 0 rlineto	% Draw UR rounded corner and line to UL rounded corner
    xL yT xL yB BoxR arct P			% Draw UL rounded corner and close the clippath segment
    x0 neg y0 neg T PSL_angle k get neg R xp neg yp neg T	% Unto trans/rot above
  } for
} def

/PSL_nclip 0 def							% The depth of clipping in effect
/PSL_clip {clip /PSL_nclip PSL_nclip 1 add def} def			% Clip and update PSL_nclip
/PSL_eoclip {eoclip /PSL_nclip PSL_nclip 1 add def} def			% Even-odd clip and update PSL_nclip
/PSL_cliprestore {cliprestore /PSL_nclip PSL_nclip 1 sub def} def	% Cliprestore and update PSL_nclip
%%EndProlog

%%BeginSetup
/PSLevel /languagelevel where {pop languagelevel} {1} ifelse def
PSLevel 1 gt { << /PageSize [595 842] /ImagingBBox null >> setpagedevice } if
%%EndSetup

%%Page: 1 1

%%BeginPageSetup
%
% Init coordinate system and scales
%
%
% Scale initialized to 0.06, so 1 inch equals 1200 Postscript units
%
V 0.06 0.06 scale
%%EndPageSetup

%
% End of PSL header
%
/PSL_page_xsize 9917 def
/PSL_page_ysize 14033 def
0 A
FQ
O0
1200 1200 TM

% PostScript produced by:
%%GMT: pstext -R0/6/0/4 -Jx1i -P -K -F+f32p+jCM -Gc -C1c/0.5c -TO
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_1
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
/PSL_setlinepen {4 W 0 A [] 0 B} def
/PSL_setboxpen {4 W 0 A [] 0 B} def
/PSL_setboxrgb {0 A} def
/PSL_settxtrgb {} def
533 F0
/PSL_m 2 def
/PSL_txt_x
2400.00
4800.00
2 array astore def
/PSL_txt_y
1200.00
3600.00
2 array astore def
/PSL_angle
0.00
0.00
2 array astore def
/PSL_str
(TEXT)
(TEXT)
2 array astore def
/PSL_just 6 def
/PSL_gap_x 472 def
/PSL_gap_y 236 def
(TEXT) sH /PSL_height edef
16 PSL_straight_text_labels
%%EndObject
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psxy -R0/6/0/4 -Jx1i -O -K -Sri -Gp100/8:B-
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_2
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
%
% Activate Map clip path
%
%
% Start of polygon clip path
%
clipsave
0 0 M
7200 0 D
0 4800 D
-7200 0 D
PSL_eoclip N
%
% End of polygon clip path.  Polygon clipping is currently ON
%
4 W
V
%
% Define pattern 8
%
/image8 {<~
J,iCW-mAWq!/&-R!,,Uq(^pC4,!Z.H;CrV#!$a5&!J3BTO"^PH.3JZs-\=Z2:oIp5)\\(IAl37&E]l@Ba^gK8/1Od4Qc*Q7$
(T:V)N[j0;E6T)#:l`GV:,bd(26=/;IhW+gnIS.PuO\>9!i'48=WF(E[p^Y_$@54k]L"@?B8fjf-GJ%'u#5t\^<%<CV=KU-+
;:kf,P7JX[e?,.s%Wp~>
/LZWDecode filter} def
%
% Setup imagemask fill using pattern 8
%
/pattern8 {V 768 768 scale
<< /PaintType 1 /PatternType 1 /TilingType 1 /BBox [0 0 1 1] /XStep 1 /YStep 1 /PaintProc
   {begin [/Indexed /DeviceGray 0 <00>] setcolorspace
<< /ImageType 1 /Decode [1 0] /Width 64 /Height 64 /BitsPerComponent 1
   /ImageMatrix [64 0 0 -64 0 64] /DataSource image8
>> imagemask end}
>> matrix makepattern U} def
{pattern8 I} FS
4800 7200 3600 2400 Sr
U
%
% Deactivate Map clip path
%
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
currentdict /image8 undef
currentdict /pattern8 undef
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psclip -R0/6/0/4 -Jx1i -C -O -K
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 0.000 0.000 0.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_3
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
0 A
FQ
O0
0 6000 TM

% PostScript produced by:
%%GMT: pstext -R0/6/0/4 -Jx1i -O -K -F+f32p+jCM -Gc -C1c/0.5c -To -Y5i
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_4
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
/PSL_setlinepen {4 W 0 A [] 0 B} def
/PSL_setboxpen {4 W 0 A [] 0 B} def
/PSL_setboxrgb {0 A} def
/PSL_settxtrgb {} def
533 F0
/PSL_m 2 def
/PSL_txt_x
2400.00
4800.00
2 array astore def
/PSL_txt_y
1200.00
3600.00
2 array astore def
/PSL_angle
0.00
0.00
2 array astore def
/PSL_str
(TEXT)
(TEXT)
2 array astore def
/PSL_just 6 def
/PSL_gap_x 472 def
/PSL_gap_y 236 def
(TEXT) sH /PSL_height edef
0 PSL_straight_text_labels
%%EndObject
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psxy -R0/6/0/4 -Jx1i -O -K -Sri -Gp100/8:B-
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 6.000 0.000 4.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_5
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
%
% Activate Map clip path
%
%
% Start of polygon clip path
%
clipsave
0 0 M
7200 0 D
0 4800 D
-7200 0 D
PSL_eoclip N
%
% End of polygon clip path.  Polygon clipping is currently ON
%
4 W
V
%
% Define pattern 8
%
/image8 {<~
J,iCW-mAWq!/&-R!,,Uq(^pC4,!Z.H;CrV#!$a5&!J3BTO"^PH.3JZs-\=Z2:oIp5)\\(IAl37&E]l@Ba^gK8/1Od4Qc*Q7$
(T:V)N[j0;E6T)#:l`GV:,bd(26=/;IhW+gnIS.PuO\>9!i'48=WF(E[p^Y_$@54k]L"@?B8fjf-GJ%'u#5t\^<%<CV=KU-+
;:kf,P7JX[e?,.s%Wp~>
/LZWDecode filter} def
%
% Setup imagemask fill using pattern 8
%
/pattern8 {V 768 768 scale
<< /PaintType 1 /PatternType 1 /TilingType 1 /BBox [0 0 1 1] /XStep 1 /YStep 1 /PaintProc
   {begin [/Indexed /DeviceGray 0 <00>] setcolorspace
<< /ImageType 1 /Decode [1 0] /Width 64 /Height 64 /BitsPerComponent 1
   /ImageMatrix [64 0 0 -64 0 64] /DataSource image8
>> imagemask end}
>> matrix makepattern U} def
{pattern8 I} FS
4800 7200 3600 2400 Sr
U
%
% Deactivate Map clip path
%
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
currentdict /image8 undef
currentdict /pattern8 undef
0 A
FQ
O0
0 0 TM

% PostScript produced by:
%%GMT: psclip -R0/6/0/4 -Jx1i -C -O
%%PROJ: xy 0.00000000 6.00000000 0.00000000 4.00000000 0.000 0.000 0.000 0.000 +xy +a=6378137.000 +b=6356752.314245
%%BeginObject PSL_Layer_6
0 setlinecap
0 setlinejoin
3.32551 setmiterlimit
PSL_cliprestore
%
% Clipping reduced by 1 level
%
%%EndObject
%%PageTrailer
%
% Reset transformations and call showpage
%
U
showpage

%%Trailer

end
%%EOF

--Apple-Mail=_563B9731-E68B-4334-B0C6-B7FD5805E229
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div></body></html>
--Apple-Mail=_563B9731-E68B-4334-B0C6-B7FD5805E229--

--Apple-Mail=_013F7B3C-7D90-4289-9CBE-F64D8989B9BB--


