[mapserver-users] RE: Possible bug: Cairo/PDF output labels
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Thu Apr 19 06:17:08 PDT 2012
If you put a constant in for the ANGLE it works? Does the rotation column contain numbers for all features?
Steve
________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Frost89 [kristian_frost7 at hotmail.com]
Sent: Thursday, April 19, 2012 4:14 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] RE: Possible bug: Cairo/PDF output labels
I'll try to be a bit more specific :) Below I've posted my layers as they look in the mapfile.
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.
In my logfile it stop with this line: [Wed Apr 18 12:39:37 2012].327000 msDrawMap(): Drawing Label Cache, 0.000s
My layers:
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
________________________________
View this message in context: RE: Possible bug: Cairo/PDF output labels<http://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4897513.html>
Sent from the Mapserver - User mailing list archive<http://osgeo-org.1560.n6.nabble.com/Mapserver-User-f4226646.html> at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120419/f5918b81/attachment.htm>
More information about the MapServer-users
mailing list