[mapserver-users] Displaying points & la

Michael Schulz mschulz at webgis.de
Fri Apr 18 09:11:31 PDT 2008


Hi Clement,

please answer not directly to me, but to the mapserver list.

sorry i forgot you have to add the -o output option to shp2img:

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

Then it should save the image to the specified file. Still no points?

Michael


2008/4/18 Clemiou <clems_mars at hotmail.com>:
>
>  Hi!
>
>  I resolved the last error but now, I don't have error! Just this log and always no points & labels.
>
>  ================
>  [Fri Apr 18 16:58:43 2008].559339 msOGRFileOpen(mysql.ovf)...
>  [Fri Apr 18 16:58:43 2008].569987 OGROPen(/usr/local/mapserver-5.0.2/../../../var/www/html/ms/map_files/mysql.ovf)
>  [Fri Apr 18 16:58:51 2008].160106 msConnPoolRegister(AERO,mysql.ovf,0x8802e20)
>  [Fri Apr 18 16:58:51 2008].332909 msOGRLayerClose(mysql.ovf).
>  [Fri Apr 18 16:58:51 2008].332975 msOGRFileClose(/usr/local/mapserver-5.0.2/../../../var/www/html/ms/map_files/mysql.ovf,0).
>  [Fri Apr 18 16:58:51 2008].332989 msConnPoolRelease(AERO,mysql.ovf,0x8802e20)
>  [Fri Apr 18 16:58:51 2008].333003 msConnPoolClose(mysql.ovf,0x8802e20)
>  [Fri Apr 18 16:58:51 2008].333276 msDrawMap(): Layer 1 (AERO), 7.953s
>  [Fri Apr 18 16:58:51 2008].333330 msDrawMap(): Drawing Label Cache, 0.000s
>  [Fri Apr 18 16:58:51 2008].333348 msDrawMap() total time: 7.976s
>  GIF87a� � ������,� �  ��ŋ���ڋ�޼��H�扦�ʶ�
>                                          ��L����
>
>   ËçôºýŽÏë÷ü¾ÿ (8HXhx������� )9IYiy��������       *:JZjz������
>  K[k{��������
>              ,N^n~���� /?O_⎺  Ÿ¯¿Ïßïÿ0��� ]m}������
>                                 ¼øñäË›? >½úõìÛ» ?�����ۿ扤��`� H◆   ˆ◆‚~
>  .È◆ƒ▒„ NH▒… ^ˆ▒† ┼È▒‡ ␉ˆ"ŽH␉‰&žˆ␉Š*(R)È␉‹.␌Œ2ÎH␌ 6Þˆ␌Ž:îÈ␌ >␍ BI␍'F ‰␍'J.É␍"N>    ␊"RNI␊•V^‰␊–Z┼É␊—^·     °˜␉ŽI°™°ž‰°š┘(R)É°›┼¾    ±œ⎼ÎI± ┴Þ‰±ž≥îɱŸ·þ     ␤ ‚J␤¡† Š␤¢Š.Ê␤£Ž>
>  ␋¤'NJ␋¥–^Š␋¦š┼Ê␋§ž·
>  ┘¨¢ŽJ┘(c)¦žŠ┘ªª(R)Ê┘«(R)¾
>  ┐¬²ÎJ┐­¶ÞŠ┐(R)ºîÊ┐¯¾þ
>  ┌°ÂK┌±Æ ‹þ┌²Ê.Ë┌³Î>
>                    └´ÒNK└µÖ^‹└¶Ú┼Ë└·Þ·
>                                       ┼¸âŽK┼¹æž‹┼ºê(R)Ë┼»î¾
>                                                          ⎺¼òÎK⎺½öÞ‹⎺¾úîË⎺¿þþ
>                                                                             ⎻À Lp�  �p
>  [Fri Apr 18 16:58:51 2008].616500 msFreeMap(): freeing map at 0x87297f8.
>
>  ===================
>
>  Thanks for your help
>
>
> Clement
>  ----------------------------------------
>  > Date: Fri, 18 Apr 2008 15:45:17 +0200
>  > From: mschulz at webgis.de
>  > To: clems_mars at hotmail.com; mapserver-users at lists.osgeo.org
>  > Subject: Re: [mapserver-users] Displaying points & lab
>  >
>  > 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 :
>  >>
>  >>  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
>  > -----------------------------------------------------------
>
>  _________________________________________________________________
>  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