[Geoserver-users] Geoserver WMS Labeling

Hi, I’ve searched the archives but I can’t seem to find an answer —

I have a simple WMS point layer of light rail stations. I would like Geoserver to label all of them regardless of whether or not the labels may overlap. I’ve tried using the “spaceAround” “conflictResolution” and “goodnessOfFit” values in my SLD, but the WMS still seems refuse to label a few of the stations. Also, some stations labels seem to turn on and off based on zoom level, even if the station is nowhere near another station. Is there any way that I can tell Geoserver to label all points in this WMS regardless of conflicts or how messy it looks? I’ve read through the documentation but I can’t seem to get this to work.

Thanks for the help! Geoserver is great, by the way!

Jonathan Harahush

GIS Analyst

Denver Regional Council of Governments

http://www.drcog.org

(303) 480-6746

HI have you tried the VendorOption “goodnessOfFit” with a value of 0?

I had the same issue just now and this one fixed it.

Alessandro Ferrucci

On Thu, Jun 25, 2009 at 6:03 PM, Jonathan Harahush <JHarahush@anonymised.com> wrote:

Hi, I’ve searched the archives but I can’t seem to find an answer —

I have a simple WMS point layer of light rail stations. I would like Geoserver to label all of them regardless of whether or not the labels may overlap. I’ve tried using the “spaceAround” “conflictResolution” and “goodnessOfFit” values in my SLD, but the WMS still seems refuse to label a few of the stations. Also, some stations labels seem to turn on and off based on zoom level, even if the station is nowhere near another station. Is there any way that I can tell Geoserver to label all points in this WMS regardless of conflicts or how messy it looks? I’ve read through the documentation but I can’t seem to get this to work.

Thanks for the help! Geoserver is great, by the way!

Jonathan Harahush

GIS Analyst

Denver Regional Council of Governments

http://www.drcog.org

(303) 480-6746



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Signed,
Alessandro Ferrucci

What version of Geoserver and Geotools are you using? because I believe they added goodnessOfFit in geotools 2.5.x

On Thu, Jun 25, 2009 at 7:03 PM, Alessandro Ferrucci <alessandroferrucci@anonymised.com.> wrote:

HI have you tried the VendorOption “goodnessOfFit” with a value of 0?

I had the same issue just now and this one fixed it.

Alessandro Ferrucci

On Thu, Jun 25, 2009 at 6:03 PM, Jonathan Harahush <JHarahush@anonymised.com> wrote:

Hi, I’ve searched the archives but I can’t seem to find an answer —

I have a simple WMS point layer of light rail stations. I would like Geoserver to label all of them regardless of whether or not the labels may overlap. I’ve tried using the “spaceAround” “conflictResolution” and “goodnessOfFit” values in my SLD, but the WMS still seems refuse to label a few of the stations. Also, some stations labels seem to turn on and off based on zoom level, even if the station is nowhere near another station. Is there any way that I can tell Geoserver to label all points in this WMS regardless of conflicts or how messy it looks? I’ve read through the documentation but I can’t seem to get this to work.

Thanks for the help! Geoserver is great, by the way!

Jonathan Harahush

GIS Analyst

Denver Regional Council of Governments

http://www.drcog.org

(303) 480-6746



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Signed,
Alessandro Ferrucci


Signed,
Alessandro Ferrucci

Just in case you need more info here’s my relevant snipped of SLD.

name Arial Normal 14 bold 0.5 0.5 2 #CCFFFF 0.75 #000000 false 0

On Thu, Jun 25, 2009 at 7:05 PM, Alessandro Ferrucci <alessandroferrucci@anonymised.com> wrote:

What version of Geoserver and Geotools are you using? because I believe they added goodnessOfFit in geotools 2.5.x

On Thu, Jun 25, 2009 at 7:03 PM, Alessandro Ferrucci <alessandroferrucci@anonymised.com> wrote:

HI have you tried the VendorOption “goodnessOfFit” with a value of 0?

I had the same issue just now and this one fixed it.

Alessandro Ferrucci

On Thu, Jun 25, 2009 at 6:03 PM, Jonathan Harahush <JHarahush@anonymised.com66…> wrote:

Hi, I’ve searched the archives but I can’t seem to find an answer —

I have a simple WMS point layer of light rail stations. I would like Geoserver to label all of them regardless of whether or not the labels may overlap. I’ve tried using the “spaceAround” “conflictResolution” and “goodnessOfFit” values in my SLD, but the WMS still seems refuse to label a few of the stations. Also, some stations labels seem to turn on and off based on zoom level, even if the station is nowhere near another station. Is there any way that I can tell Geoserver to label all points in this WMS regardless of conflicts or how messy it looks? I’ve read through the documentation but I can’t seem to get this to work.

Thanks for the help! Geoserver is great, by the way!

Jonathan Harahush

GIS Analyst

Denver Regional Council of Governments

http://www.drcog.org

(303) 480-6746



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Signed,
Alessandro Ferrucci


Signed,
Alessandro Ferrucci


Signed,
Alessandro Ferrucci

Jonathan Harahush ha scritto:

Hi, I’ve searched the archives but I can’t seem to find an answer ---

I have a simple WMS point layer of light rail stations. I would like Geoserver to label all of them regardless of whether or not the labels may overlap. I’ve tried using the “spaceAround” “conflictResolution” and “goodnessOfFit” values in my SLD, but the WMS still seems refuse to label a few of the stations. Also, some stations labels seem to turn on and off based on zoom level, even if the station is nowhere near another station. Is there any way that I can tell Geoserver to label all points in this WMS regardless of conflicts or how messy it looks? I’ve read through the documentation but I can’t seem to get this to work.

Are you by any chance using tiling? If so, there is no solution, labels
that span the tile borders won't be drawn.

Cheers
Andrea

List:
I also have been experiencing this problem, where some point labels are not being drawn when I see no interference or reason why they are not rendered. They will draw at some zoom levels and then not draw at the next zoom level.
I have a simple SLD for the points, turning on at a set scale with grouping set to false and goodness of fit set to 0.
I have included a few screenshots of where I have placed an outline on the tiles (using css) to see if tiling seams are the problem, however they are not. Labels will render on top of seams and across seams. My problem is a bit more random. My SLD is included in the screenshot doc. Any other advice would be helpful!

Jeremy Holt
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Friday, June 26, 2009 8:20 AM
To: Jonathan Harahush
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver WMS Labeling

Jonathan Harahush ha scritto:

Hi, I've searched the archives but I can't seem to find an answer ---

I have a simple WMS point layer of light rail stations. I would like
Geoserver to label all of them regardless of whether or not the labels
may overlap. I've tried using the "spaceAround" "conflictResolution"
and "goodnessOfFit" values in my SLD, but the WMS still seems refuse to
label a few of the stations. Also, some stations labels seem to turn on
and off based on zoom level, even if the station is nowhere near another
station. Is there any way that I can tell Geoserver to label all points
in this WMS regardless of conflicts or how messy it looks? I've read
through the documentation but I can't seem to get this to work.

Are you by any chance using tiling? If so, there is no solution, labels
that span the tile borders won't be drawn.

Cheers
Andrea

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

GeoserverLabelIssue.doc (986 KB)

Jeremy Holt ha scritto:

List: I also have been experiencing this problem, where some point
labels are not being drawn when I see no interference or reason why
they are not rendered. They will draw at some zoom levels and then
not draw at the next zoom level. I have a simple SLD for the points,
turning on at a set scale with grouping set to false and goodness of
fit set to 0. I have included a few screenshots of where I have
placed an outline on the tiles (using css) to see if tiling seams are
the problem, however they are not. Labels will render on top of seams
and across seams. My problem is a bit more random. My SLD is included
in the screenshot doc. Any other advice would be helpful!

There is something strange with your report.
Labels are never painted across tile seams, and there is no way to
turn it off. The only way to get some crossing is to enable
meta tiling, which GWC and the GeoServer preview do, that
is, make the renderer work against a group of tiles rendering
a single image (GeoServer inner meta tiling does 3x3 meta tiles,
GWC one is configurable).

In that case the labels are not drawn when the cross the seams
of the meta tile (in general, they are not drawn when they go out
of the rendering area for the current request).

The second screenshot you're showing has 4 labels not showing,
they could end up at the border of a meta tile, or they could
have a label long enough to conflict (even in small part)
with the other three labelled points on the side of them.
The fourth not labelled on in the bottom most likely conficts
with the road name.

You have long labels, I would also suggest you use the label
auto wrapping ability of GeoServer:
http://geoserver.org/display/GEOSDOC/LabelingOptions

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.