[Geoserver-users] Difficulties with Road data labelling

Hello,

I have difficulties with Road Data labeling.
I am using all the options mentioned below but I do not get the desirable result.

yes
true
128
30
10
true

Specifically, I am using the group option so that only one label is displayed in segments with the same road address
As you can see in the attached image (Zoom Level 17) there is a single road segment (multipart) between the two x marks (with pencil).
However the label is displayed three times, without even uing the repeat option
How can I handle this issue?

Thanks in advance,
Stephanos

Road_Data_labeling.jpg

Hello,

I have difficulties with Road Data labeling.
I am using all the options mentioned below but I do not get the desirable result.

yes
true
128
30
10
true

Specifically, I am using the group option so that only one label is displayed in segments with the same road address
As you can see in the attached image (Zoom Level 17) there is a single road segment (multipart) between the two x marks (with pencil).
However the label is displayed three times, without even using the repeat option
How can I handle this issue?
Note that I use the “Tiled” option in the LayerPreview page instead of “Single Tile”.

Thanks in advance,
Stephanos

Road_Data_labeling.jpg

Stephanos,

I believe you are getting the multiple labels because they are written to an individual image tile. If you change to a single tile, the labels should display a single time.

You can try changing the meta tile sizes to maybe reduce the number of times the label is generated as GeoServer will create a single larger image (the meta tile) and cut the smaller image from it.

Let us know if this helps.

image001.png

···

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Description: Description: Description: cid:image001.png@...5633...

From: Stephanos Charalambous [mailto:stephanos_ch@…936…]
Sent: Wednesday, April 13, 2016 5:15 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Πρθ: Difficulties with Road data labelling

Hello,

I have difficulties with Road Data labeling.

I am using all the options mentioned below but I do not get the desirable result.

yes

true

128

30

10

true

Specifically, I am using the group option so that only one label is displayed in segments with the same road address

As you can see in the attached image (Zoom Level 17) there is a single road segment (multipart) between the two x marks (with pencil).

However the label is displayed three times, without even using the repeat option

How can I handle this issue?

Note that I use the “Tiled” option in the LayerPreview page instead of “Single Tile”.

Thanks in advance,

Stephanos

Hi Stephanos,
I wonder if it’s because it’s a multi-part line? I see that Omirou has four lines, so it’s not a one off. Or maybe there are invisible (i.e. whitespace) characters that make the road names different, but that seems unlikely.
Otherwise I can’t see any obvious reason for it to be doing this, the SLD given looks fine.

Cheers,
Jonathan

---- On Tue, 12 Apr 2016 12:17:38 +0100 Stephanos Charalambousstephanos_ch@anonymised.com wrote ----

Hello,

I have difficulties with Road Data labeling.
I am using all the options mentioned below but I do not get the desirable result.

yes
true
128
30
10
true

Specifically, I am using the group option so that only one label is displayed in segments with the same road address
As you can see in the attached image (Zoom Level 17) there is a single road segment (multipart) between the two x marks (with pencil).
However the label is displayed three times, without even uing the repeat option
How can I handle this issue?

Thanks in advance,
Stephanos


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
Geoserver-users mailing list
Geoserver-users@anonymised.comts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Is the image you attached actually made up of multiple tiles. If so each one will its own label. To help prevent this you can use the tiled option.

http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#tiled

However even this can give duplicates, especially when your roads are made up of individual geometries and those geometries extend beyond the area covered by the meta-tile size. For my data the only way I could get this to an acceptable level was to use GWC and seed with a large meta tile size and gutter.

The only way I can think of completely eliminating duplicate labels is to create some data to define where to position the labels and render as a separate layer/feature set. Or possibly even combine any individual geometries into a single one.

Regards, Vic

···

From: Stephanos Charalambous [mailto:stephanos_ch@…936…]
Sent: 12 April 2016 12:18
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Difficulties with Road data labelling

Hello,

I have difficulties with Road Data labeling.

I am using all the options mentioned below but I do not get the desirable result.

yes

true

128

30

10

true

Specifically, I am using the group option so that only one label is displayed in segments with the same road address

As you can see in the attached image (Zoom Level 17) there is a single road segment (multipart) between the two x marks (with pencil).

However the label is displayed three times, without even uing the repeat option

How can I handle this issue?

Thanks in advance,

Stephanos