[mapserver-users] Displaying points & lab

Michael Schulz mschulz at webgis.de
Fri Apr 18 09:45:17 EDT 2008


Hi Clement,

please leave the thread also on the list...
Ok, that is not the real debug output, merely the log. Did you try it
from the command line with shp2img:

shp2img -m aero.map -l AERO -all_debug 5

this should print some debug information to stdout. Are you using
mapserver 5? Then you can set a special error log for each mapfile,
with the directive CONFIG "MS_ERRORFILE" "/path/to/mserror.log" at the
map level.

Cheers, Michael



2008/4/18 Clemiou <clems_mars at hotmail.com>:
>
>  Hi
>
>  The one thing that I can see in the mapserver log is:
>
>  Fri Apr 18 15:18:51 2008,18284,127.0.0.1,MS,3,1.241143 46.540217 1.445917 46.744991,-1.000000 -1.000000,FRANCE ,normal execution
>
>  ^^ Very funny isn't it?
>
>  Clement
>  ----------------------------------------
>  > Date: Fri, 18 Apr 2008 15:03:59 +0200
>  > From: mschulz at webgis.de
>  > To: clems_mars at hotmail.com; mapserver-users at lists.osgeo.org
>  > Subject: Re: [mapserver-users] Displaying points & labe
>  >
>  > 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 :
>  >>
>  >>  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
>  > -----------------------------------------------------------
>
>  _________________________________________________________________
>  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