[Mapserver-users] pdf output
Ed McNierney
ed at topozone.com
Mon Sep 1 13:12:35 PDT 2003
This is a multi-part message in MIME format.
------_=_NextPart_001_01C370C5.626AA8B2
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Michael -
=20
Does the map file/request work correctly if you do NOT create PDF
output? That is, if you create a PNG or JPEG image, for example?
=20
- Ed
=20
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: (978) 251-4242 Fax: (978) 251-1396
ed at topozone.com
=20
-----Original Message-----
From: Michael Heldt [mailto:mewsick at web.de]=20
Sent: Monday, September 01, 2003 3:54 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] pdf output
=20
=20
Hi List,
I was trying to create a pdf using the outputformat tag, everything's
working fine until I try to include an annotation layer... As long as i
use polygon, line and point layers a pdf is created. When I add the
annotation layer Mapserver is crashing... Can I use annotation layers at
all? Or is there something wrong in my mapfile? I'll add a rough sample
of my mapfile below this message. Maybe you can help me find the problem
if there is one.=20
Thanks in advance
Micha
>>> Mapserver 4.0, W2K, Apache=20
NAME PDFTest
IMAGETYPE pdf
EXTENT -439.1858 -720.1234 523.3631 180.1234
SIZE 1200 1050
STATUS ON
UNITS meters
SHAPEPATH "daten"
FONTSET "d:/my/path/to/the/fonts.list"
WEB
TEMPLATE templ_bplan.html
IMAGEPATH "d:\there\are\the\pics\"
IMAGEURL "/the/pics/"
LOG "log.txt"
END
OUTPUTFORMAT
NAME pdf
MIMETYPE "application/x-pdf"
DRIVER pdf
EXTENSION "pdf"
END
... ... ...
LAYER
NAME POLYLINES
DATA oralllin
STATUS DEFAULT
TYPE LINE
=20
CLASS
EXPRESSION /./=20
COLOR 6 131 255
END =20
END =20
... ... ...
LAYER # Label
NAME LABELS
DATA oralllabels
STATUS DEFAULT
TYPE ANNOTATION
=20
LABELITEM "LABEL"
CLASSITEM "LAYER"
=20
CLASS =20
EXPRESSION ('[LAYER]' eq 'Verfahr' and '[LABEL]' ne
'RECHTSGRUNDLAGE' and '[LABEL]' ne 'VERFAHRENSVERMERKE:')
#EXPRESSION /./
LABEL
COLOR 0 0 0
TYPE TrueType
FONT Arial
Size 6
POSITION cr
PARTIALS TRUE
ANTIALIAS TRUE
FORCE TRUE
END # end of label
END # end of class object
END
END # end of mapfile
________________________________________________________________________
__
Die sicherste Form der Kommunikation: E-Mails verschluesseln,
Spam-Filter,
Adressverifizierung, digitale Unterschrift: http://freemail.web.de
<http://freemail.web.de>
_______________________________________________ Mapserver-users mailing
list Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
------_=_NextPart_001_01C370C5.626AA8B2
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
<base href=3D"https://freemail.web.de/">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Michael –</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Does the map file/request work =
correctly
if you do NOT create PDF output? That is, if you create a PNG or =
JPEG image,
for example?</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> =
- Ed</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ed McNierney</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>President and Chief =
Mapmaker</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>TopoZone.com / Maps a la carte, =
Inc.</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>73 Princeton Street, Suite =
305</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>North Chelmsford, MA =
01863</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Phone: (978) 251-4242 Fax: =
(978) 251-1396</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>ed at topozone.com</span></font></p>
</div>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Michael Heldt
[mailto:mewsick at web.de] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, September =
01, 2003
3:54 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
mapserver-users at lists.gis.umn.edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[Mapserver-users] pdf
output</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'> </span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D1 =
face=3DVerdana><span
style=3D'font-size:9.0pt;font-family:Verdana'> </span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>Hi =
List,</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>I was trying =
to create a
pdf using the outputformat tag, everything’s working fine until I =
try to
include an annotation layer… As long as i use polygon, line and =
point
layers a pdf is created. When I add the annotation layer Mapserver =
is
crashing... Can I use annotation layers at all? Or is there something =
wrong in
my mapfile? I'll add a rough sample of my mapfile below this =
message.
Maybe you can help me find the problem if there is one. =
</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>Thanks in =
advance</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB =
style=3D'font-size:10.0pt;font-family:Arial'>Micha</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>>>> =
Mapserver
4.0, W2K, Apache </span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>NAME =
PDFTest<br>
IMAGETYPE pdf<br>
EXTENT -439.1858 -720.1234 523.3631 180.1234<br>
SIZE 1200 1050<br>
STATUS ON<br>
UNITS meters<br>
SHAPEPATH "daten"<br>
FONTSET =
"d:/my/path/to/the/fonts.list"</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>WEB<br>
TEMPLATE templ_bplan.html<br>
IMAGEPATH "d:\there\are\the\pics\"<br>
IMAGEURL "/the/pics/"<br>
LOG "log.txt"<br>
END</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB =
style=3D'font-size:10.0pt;font-family:Arial'> OUTPUTFORMAT<br>
NAME pdf<br>
MIMETYPE "application/x-pdf"<br>
DRIVER pdf<br>
EXTENSION "pdf"<br>
END</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>... ... =
...</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>LAYER<br>
NAME POLYLINES<br>
DATA oralllin<br>
STATUS DEFAULT<br>
TYPE LINE<br>
<br>
CLASS<br>
EXPRESSION /./ <br>
COLOR 6 131 255<br>
END <br>
END </span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>... ... =
...</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
lang=3DEN-GB style=3D'font-size:10.0pt;font-family:Arial'>LAYER # =
Label<br>
NAME LABELS<br>
DATA oralllabels<br>
STATUS DEFAULT<br>
TYPE ANNOTATION<br>
<br>
LABELITEM "LABEL"<br>
CLASSITEM "LAYER"<br>
<br>
CLASS <br>
EXPRESSION ('[LAYER]' eq 'Verfahr' and '[LABEL]' ne
'RECHTSGRUNDLAGE' and '[LABEL]' ne 'VERFAHRENSVERMERKE:')<br>
#EXPRESSION /./<br>
LABEL<br>
COLOR 0 0 0<br>
TYPE TrueType<br>
FONT Arial<br>
Size 6<br>
POSITION cr<br>
PARTIALS TRUE<br>
ANTIALIAS TRUE<br>
FORCE TRUE<br>
END # end of label<br>
END # end of class object<br>
END<br>
END # end of mapfile</span></font></p>
</div>
</body>
</html>
_________________________________________________________________________=
_<br>Die sicherste Form der Kommunikation: E-Mails verschluesseln, =
Spam-Filter,<br>Adressverifizierung, digitale Unterschrift: <A =
HREF=3D"http://freemail.web.de"><B>http://freemail.web.de</B></A>
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users=00
------_=_NextPart_001_01C370C5.626AA8B2--
More information about the MapServer-users
mailing list