Possible Duplicate:
Labeling Geoserver SLD

I have a geoserver 2.1.x installation with SLD stylization. I have used a property to label the polygons which forms a map.

But the issues is the labels are getting repeated as in the figure enter image description here

Is there any way to prevent this from happening??

What I have done so far ---

  1. I have tried to use the geoserver Vendor option for grouping of polygons with perticular label

      <VendorOption name="group">yes</VendorOption>

but this doesn't help.

  1. I have used a custom solution suggested by someone from the mailing list ..

      <ogc:Function name="centroid">                

but removes the multiple labels, but adds some unwanted artifacts into the map, and I want to avoid using that...

  1. I also tried the metatiling functionality by doing this -

    tileorigin: [map.maxExtent.left,map.maxExtent.bottom],

This removes certain multiple labels but not all...

Any other solutions??



Browse other questions tagged or ask your own question.