[mapserver-users] RE: Possible bug: Cairo/PDF output labels

Frost89 kristian_frost7 at hotmail.com
Thu Apr 19 02:14:37 PDT 2012


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: http://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4897513.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120419/a204d75d/attachment.htm>


More information about the MapServer-users mailing list