[mapserver-users] LABEL_NO_CLIP seems not working inmapserver 5.4.1
Rodriguez, Heraldo
hrodriguez at siscat.com.ar
Wed Jul 1 06:51:47 PDT 2009
Hey Steve,
I found what the problem was. It was a silly mistake I made.
Some time ago the labels were separated from the polygon in another layer ( the labelling was no good so we provided the centroids to draw the labels) Since they were points ,in that case partials=False was fine.
I changed partials to true and that solved my problem. I hope this comment can help someone if they face the same problem I do.
To sum up
I use "labelcache_map_edge_buffer" "-10" at map level
PROCESSING "LABEL_NO_CLIP=ON" at layer level
Partials=true with labels
Thanks and regards.
Lic. Heraldo G. Rodriguez
hrodriguez at siscat.com.ar
TEL: 54-11-4326-4002 int 255
Dpto. Desarrollo
Sistemas Catastrales S.A
-----Mensaje original-----
De: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us]
Enviado el: miércoles, 01 de julio de 2009 0:58
Para: mapserver-users at lists.osgeo.org; Rodriguez, Heraldo
Asunto: Re: [mapserver-users] LABEL_NO_CLIP seems not working inmapserver 5.4.1
Hi Rodriguez: I did a couple of quick tests and it seems like the directive is
working as intended, at least with some government unit boundary data. Any
chance you could put together a small test case? Perhaps converting some
data to shapefile and whipping up a simple mapfile that shows the problem.
Are others experiencing the same issues?
Steve
>>> "Rodriguez, Heraldo" <hrodriguez at siscat.com.ar> 06/30/09 10:33 AM >>>
Hi everyone,
We have just upgraded from mapserver 5.2.0 to 5.4.1
Our application use OpenLayers, Tilecache with metatiles on, and
postgis.
The label positioning in polygons has improved a lot but now we are
experiencing label duplication on metatile boundaries.
The layer with the issues is parcelas. We are using
labelcache_map_edge_buffer and LABEL_NO_CLIP=ON .
Has anyone an idea why this is happening? The labels length varies from
2 to 4 characters maximum .
A fragment of our map is the following
WEB
# TEMPLATE "set in index.html"
# MINscale 1000
MAXscaleDENOM 1550000
METADATA
"wms_title" ...
"wfs_title" ...
"wms_onlineresource" ...
"wfs_onlineresource" ...
"WMS_FEATURE_INFO_MIME_TYPE" "text/html"
"wms_srs" ...
"wfs_srs" ...
"wms_encoding" ...
"labelcache_map_edge_buffer" "-10"
END
IMAGEPATH "/tmp/mapserver/"
IMAGEURL "/mapserver/"
END
LAYER
NAME parcelas
METADATA
"wms_title" "parcelas"
"wms_include_items" "all"
"wms_group_title" "Geograficos"
"wfs_title" "parcelas"
"gml_include_items" "all"
"gml_featureid" "gid"
END
CONNECTION "user=xxxxx password=xxxxxx dbname=scgis
host=localhost port=5432"
CONNECTIONTYPE postgis
PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "LABEL_NO_CLIP=ON"
DATA "the_geom FROM parcelas USING UNIQUE
gid"
STATUS DEFAULT
TYPE POLYGON
OPACITY 80
MAXscaledenom 15000
LABELITEM parcela
LabelMaxscaledenom 1200
DUMP true
CLASS
NAME "parcelas"
TEMPLATE './QueryTemplates/parcelas.html'
STYLE
COLOR 242 239 233 #g
earth
OUTLINECOLOR 210 210 210
END
Label
minsize 7
Size 7
maxsize 8
type truetype
PARTIALS false
POSITION AUTO
MINDISTANCE 20
PRIORITY 5
font "vera"
color 86 86 86
end
END
END
Any help would be appreciated. Thanks in advance
Regards,
Lic. Heraldo G. Rodriguez
hrodriguez at siscat.com.ar
TEL: 54-11-4326-4002 int 255
Dpto. Desarrollo
Sistemas Catastrales S.A
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list