[mapserver-users] Displaying points & labe

Michael Schulz mschulz at webgis.de
Fri Apr 18 09:03:59 EDT 2008


Hi,

could you have a look at the debug output? Turn debugging on with
DEBUG on on the map and on the layer level, then you should get debug
output, either to your configured mapserver log or the webserver
(error) log. Another way woudl be to use shp2img.

Cheers, Michael


2008/4/18 Clemiou <clems_mars at hotmail.com>:
>
>  Hi,
>
>  I have modifief my layer for just have the points, as you can see:
>
>
>  #############################
>  # Le layer des aérodromes . #
>  #############################
>
>  LAYER
>         NAME "AERO"
>         TYPE POINT
>         STATUS ON
>         PROJECTION
>                 "init=epsg:27582"
>         END
>         TEMPLATE "ttt_query.html"
>         CONNECTIONTYPE OGR
>         CONNECTION "mysql.ovf"
>         #TOLERANCE 5
>         #TYPE ANNOTATION
>         #LABELITEM "nom"
>         DATA "my_layer"
>
>
>         CLASS
>                 NAME "my_class"
>                 #LABEL
>                 #       ANGLE auto
>                         #TYPE TRUETYPE
>                         #ANTIALIAS TRUE
>                         #MINFEATURESIZE 100
>                         #COLOR 255 255 255
>                         #OUTLINECOLOR 255 0 0
>                         #SIZE 20
>                         #FONT "arial"
>                         #FORCE TRUE
>                 #END # Fin LABEL AERO
>
>                 STYLE
>                         SYMBOL 'circle'
>                         SIZE 15
>                         COLOR 0 255 0
>                         #OUTLINECOLOR 255 0 0
>                 END # Fin du STYLE AERO
>         END # Fin de CLASS AERO
>  END # Fin du LAYER AERO
>  ============================
>
>  But it doesn't work.
>
>  Thakns for your answer
>  Clement
>  ----------------------------------------
>  > Date: Fri, 18 Apr 2008 14:51:44 +0200
>  > From: mschulz at webgis.de
>  > To: clems_mars at hotmail.com
>  > Subject: Re: [mapserver-users] Displaying points & label
>  > CC: mapserver-users at lists.osgeo.org
>  >
>  > Hi,
>  >
>  > you are using a layer of type annotation. This type of layer usually
>  > does not display the actual point symbol, it only renders the label at
>  > that position. Thus you could try to use type point, to really draw
>  > the points and the labels... I just realized that you have two TYPE
>  > declarations in your layer: point and annotation. That could also be a
>  > problem ;-)
>  >
>  > Cheers, Michael
>  >
>  >
>  > 2008/4/18 Clemiou :
>  >>
>  >>  Hi!
>  >>
>  >>  I'd like displaying points and labels. My points are on MySql database and I use them with OGR.
>  >>  The connexion is OK and I think my mapfile too.
>  >>  But I don't see the points and the labels.
>  >>
>  >>  My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085
>  >>
>  >>  I hope find someone to help me.
>  >>
>  >>  Have a nice day.
>  >>
>  >>  Clement
>  >>
>  >>  PS: Excuse me for my English, I'm a frenchy!
>  >>
>  >>  _________________________________________________________________
>  >>  Créez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit !
>  >>  http://www.windowslive.fr/skydrive/_______________________________________________
>  >>  mapserver-users mailing list
>  >>  mapserver-users at lists.osgeo.org
>  >>  http://lists.osgeo.org/mailman/listinfo/mapserver-users
>  >>
>  >
>  >
>  >
>  > --
>  > -----------------------------------------------------------
>  > Michael Schulz
>  > mschulz at webgis.de
>  >
>  > in medias res
>  > Gesellschaft für Informationstechnologie mbH
>  >
>  > In den Weihermatten 66
>  > 79108 Freiburg
>  >
>  > Tel +49 (0)761 556959-5
>  > Fax +49 (0)761 556959-6
>  >
>  > http://www.webgis.de / http://www.zopecms.de
>  > -----------------------------------------------------------
>
>  _________________________________________________________________
>  Créez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit !
>  http://www.windowslive.fr/skydrive/



-- 
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66
79108 Freiburg

Tel +49 (0)761 556959-5
Fax +49 (0)761 556959-6

http://www.webgis.de / http://www.zopecms.de
-----------------------------------------------------------


More information about the mapserver-users mailing list