Thank you very much. You touched the right key.<br>Regards,<br><br><div class="gmail_quote">2011/9/26 thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">remove the MINDISTANCE keywords from your labels, they prevent<br>
duplicate labels from appearing closer than the specified distance<br>
(i.e. 600 in your case) which depending an your image size can mean<br>
that your 0.0 is only displayed once.<br>
<br>
--<br>
thomas<br>
<div><div></div><div class="h5"><br>
On Mon, Sep 26, 2011 at 17:52, Toni Martínez <<a href="mailto:tmartinh@gmail.com">tmartinh@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I am using MapServer version 5.6.1 reading data from Postgis.<br>
> One of the layers I am working with makes use of labels displaying data from<br>
> a Postgis column over a marker on the map. Everything seems to be working<br>
> fine but some data to be displayed on labels is 0.0 In such case, mapserver<br>
> only displays one marker with its label.<br>
> Because I need all markers and labels to be represented on that layer even<br>
> if values are the same, I have been trying some options that I read in<br>
> mapserver official docs like MINDISTANCE or FORCE or PROCESSING<br>
> "LABEL_NO_CLIP=ON" with no results.<br>
> Please take a look at my layer's code.<br>
><br>
> LAYER<br>
> NAME pern_lectura<br>
> GROUP overlays<br>
> TYPE POINT<br>
> STATUS OFF<br>
> PROCESSING "CLOSE_CONNECTION=DEFER"<br>
> CONNECTIONTYPE POSTGIS<br>
> CONNECTION 'user=postgres password=xxxxxx dbname=UAS host=xxxxxxx<br>
> port=5432'<br>
> DATA "the_geom from gis_schema.perno_estat_geom using SRID=23031 using<br>
> unique id_perno"<br>
> FILTER "nombre_anillo='A903'"<br>
> OPACITY 100<br>
> CLASS<br>
> NAME 'Normalitat'<br>
> EXPRESSION ([estat] = 0)<br>
> STYLE<br>
> SYMBOL "quadrat"<br>
> SIZE 15<br>
> COLOR 45 181 45<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "circle"<br>
> SIZE 11.25<br>
> COLOR 204 204 255<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "creu"<br>
> SIZE 6<br>
> COLOR 0 0 0<br>
> END<br>
> LABEL<br>
> MINFEATURESIZE 80<br>
> TYPE TRUETYPE<br>
> FONT "arial"<br>
> SIZE 8<br>
> ANGLE FOLLOW<br>
> COLOR 25 25 175<br>
> OUTLINECOLOR 255 255 255<br>
> MINDISTANCE 600<br>
> PARTIALS FALSE<br>
> END<br>
> END<br>
> CLASS<br>
> NAME 'Notificació'<br>
> EXPRESSION ([estat] = 1)<br>
> STYLE<br>
> SYMBOL "quadrat"<br>
> SIZE 15<br>
> COLOR 226 226 0<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "circle"<br>
> SIZE 11.25<br>
> COLOR 204 204 255<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "creu"<br>
> SIZE 6<br>
> COLOR 0 0 0<br>
> END<br>
> LABEL<br>
> MINFEATURESIZE 80<br>
> TYPE TRUETYPE<br>
> FONT "arial"<br>
> SIZE 8<br>
> ANGLE FOLLOW<br>
> COLOR 25 25 175<br>
> OUTLINECOLOR 255 255 255<br>
> MINDISTANCE 600<br>
> PARTIALS FALSE<br>
> END<br>
> END<br>
> CLASS<br>
> NAME 'Preavís'<br>
> EXPRESSION ([estat] = 2)<br>
> STYLE<br>
> SYMBOL "quadrat"<br>
> SIZE 15<br>
> COLOR 255 130 0<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "circle"<br>
> SIZE 11.25<br>
> COLOR 204 204 255<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "creu"<br>
> SIZE 6<br>
> COLOR 0 0 0<br>
> END<br>
> LABEL<br>
> MINFEATURESIZE 80<br>
> TYPE TRUETYPE<br>
> FONT "arial"<br>
> SIZE 8<br>
> ANGLE FOLLOW<br>
> COLOR 25 25 175<br>
> OUTLINECOLOR 255 255 255<br>
> MINDISTANCE 600<br>
> PARTIALS FALSE<br>
> END<br>
> END<br>
> CLASS<br>
> NAME 'Atenció'<br>
> EXPRESSION ([estat] = 3)<br>
> STYLE<br>
> SYMBOL "quadrat"<br>
> SIZE 15<br>
> COLOR 212 0 0<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "circle"<br>
> SIZE 11.25<br>
> COLOR 204 204 255<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> STYLE<br>
> SYMBOL "creu"<br>
> SIZE 6<br>
> COLOR 0 0 0<br>
> END<br>
> LABEL<br>
> MINFEATURESIZE 80<br>
> TYPE TRUETYPE<br>
> FONT "arial"<br>
> SIZE 8<br>
> ANGLE FOLLOW<br>
> COLOR 25 25 175<br>
> OUTLINECOLOR 255 255 255<br>
> MINDISTANCE 600<br>
> PARTIALS FALSE<br>
> END<br>
> END<br>
> PROJECTION<br>
> "init=epsg:23031"<br>
> END<br>
> METADATA<br>
> "wms_srs" "EPSG:23031"<br>
> "wms_title" "Perns lectura"<br>
> "wms_include_items" "id"<br>
> END<br>
> TEMPLATE "templates/template.php"<br>
> TOLERANCE 1<br>
> PROCESSING "LABEL_NO_CLIP=ON"<br>
> TYPE ANNOTATION<br>
> LABELITEM lectura_dif<br>
> CLASS<br>
> LABEL<br>
> COLOR 0 0 0<br>
> TYPE TRUETYPE<br>
> FONT arial<br>
> SIZE 10<br>
> ANTIALIAS TRUE<br>
> POSITION AUTO<br>
> FORCE TRUE<br>
> PARTIALS FALSE<br>
> MINDISTANCE 3000<br>
> BUFFER 4<br>
> PARTIALS FALSE<br>
> END<br>
> END<br>
> END<br>
><br>
> Any help will be greatly appreciated.<br>
> Regards,<br>
> Toni M.<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
><br>
</blockquote></div><br>