<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">If you put a constant in for the ANGLE it works? Does the rotation column contain numbers for all features?<br>
<br>
Steve<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF127747"><font color="#000000" face="Tahoma" size="2"><b>From:</b> mapserver-users-bounces@lists.osgeo.org [mapserver-users-bounces@lists.osgeo.org] on behalf of Frost89 [kristian_frost7@hotmail.com]<br>
<b>Sent:</b> Thursday, April 19, 2012 4:14 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] RE: Possible bug: Cairo/PDF output labels<br>
</font><br>
</div>
<div></div>
<div>
<p>I'll try to be a bit more specific :) Below I've posted my layers as they look in the mapfile.<br>
I'm drawing the PDF with C# MapScript in a webapplication. When debugging, I can see that it fails when calling draw() on my mapObj. It doesn't fail everytime, but most of the time.</p>
<p>In my logfile it stop with this line: <code>[Wed Apr 18 12:39:37 2012].327000 msDrawMap(): Drawing Label Cache, 0.000s</code></p>
<p>My layers: </p>
<pre><code>LAYER # Streetnames
CONNECTION "C:\proj\Grundkort\VEJMIDTE_syddjurs.tab"
CONNECTIONTYPE ogr
FILTER ("[vejnavn]" != "UDEN NAVN")
GROUP "Oversigtskort"
LABELITEM "vejnavn"
MAXSCALEDENOM 60000
NAME "Vejnavne"
STATUS on
TYPE line
METADATA
"ows_group_title" "Oversigtskort"
"ows_title" "Oversigtskort - Vejnavne"
END
CLASS
LABEL
ANGLE follow
ALIGN center
COLOR 0 0 0
FONT "Arial"
MINDISTANCE 150
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION cc
SIZE 10
TYPE truetype
END
END
END
LAYER # Housenumbers
CONNECTION "C:\proj\Grundkort\Husnr.tab"
CONNECTIONTYPE ogr
GROUP "Oversigtskort"
LABELITEM "husnummer"
MAXSCALEDENOM 2000
NAME "Husnumre"
STATUS on
TYPE annotation
METADATA
"ows_group_title" "Grundkort"
"ows_title" "Grundkort - Husnumre"
END
CLASS
LABEL
ANGLE [rotation]
ALIGN center
COLOR 0 0 0
FONT "Arial"
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION cc
SIZE 10
TYPE truetype
END
END
END</code></pre>
<br>
<hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4897513.html" target="_blank">
RE: Possible bug: Cairo/PDF output labels</a><br>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/Mapserver-User-f4226646.html" target="_blank">
Mapserver - User mailing list archive</a> at Nabble.com.<br>
</div>
</div>
</div>
</body>
</html>