Re: Resolving issues with duplicated labels in meta-tiling

Hi Eugene

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?

Re: Resolving issues with duplicated labels in meta-tiling

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?

Re: Resolving issues with duplicated labels in meta-tiling

Sorry, yes, your are right, it does work but with point (centroid) labeling you lose the possibility to render the label relative to the polygon size. You will need to define the arae-zoom ranges manually in the style, won't you?

Re: Resolving issues with duplicated labels in meta-tiling

Le 21/01/2019 à 10:37, Eugene Podshivalov a écrit :
> Sorry, yes, your are right, it does work but with point (centroid)
> labeling you lose the possibility to render the label relative to the
> polygon size. You will need to define the arae-zoom ranges manually in
> the style, won't you?

Yes exactly, that's what I do. I have an area field and I draw labels
depending on the zoom/area combination.
You lose a lot of flexibility, but that's the only solution that worked
100% of the time for me.

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?

Re: Resolving issues with duplicated labels in meta-tiling

You lose a lot of flexibility, but that's the only solution that worked 100% of the time for me.

I'm using the label-on-point approach as well right now, but as you've correctly noted, it is less flexible than it could be with label-on-polygon one.

Apart from the afore-mentioned necessity to define the area-zoom levels, the conflict resolution has less space for resolving collisions with other labels, which will lead to some label not displayed at all.

Fixing the issue with duplicated labels in meta-tiling would be a huge jump forward in geoserver's polygon labeling capabilities.

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?

You lose a lot of flexibility, but that's the only solution that worked 100% of the time for me.

I'm using the label-on-point approach as well right now, but as you've correctly noted, it is less flexible than it could be with label-on-polygon one.

Apart from the afore-mentioned necessity to define the area-zoom levels, the conflict resolution has less space for resolving collisions with other labels, which will lead to some label not displayed at all.

Fixing the issue with duplicated labels in meta-tiling would be a huge jump forward in geoserver's polygon labeling capabilities.

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?

You lose a lot of flexibility, but that's the only solution that worked 100% of the time for me.

I'm using the label-on-point approach as well right now, but as you've correctly noted, it is less flexible than it could be with label-on-polygon one.

Apart from the afore-mentioned necessity to define the area-zoom levels, the conflict resolution has less space for resolving collisions with other labels, which will lead to some label not displayed at all.

Fixing the issue with duplicated labels in meta-tiling would be a huge jump forward in geoserver's polygon labeling capabilities.

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?

You lose a lot of flexibility, but that's the only solution that worked 100% of the time for me.

I'm using the label-on-point approach as well right now, but as you've correctly noted, it is less flexible than it could be with label-on-polygon one.

Apart from the afore-mentioned necessity to define the area-zoom levels, the conflict resolution has less space for resolving collisions with other labels, which will lead to some label not displayed at all.

Fixing the issue with duplicated labels in meta-tiling would be a huge jump forward in geoserver's polygon labeling capabilities.

Le 20/01/2019 à 18:52, Eugene Podshivalov a écrit :
> Meta-tiling resolves most of the issues with duplicated labels but they
> are still happening on geometries which cover several meta-tiles. You
> can see that illustrated on the diagram below.
>
> Would it be possible to resolve it by putting a label only to that
> meta-tile which covers the largest portion of the geometry?