FunkMonkey33
2017-06-29 21:23:03 UTC
I've seen a lot of posts like "I want to render a label, even if the polygon
is too small to fit it".My problem is the opposite: I want to make sure that
a label only will render if it fits in its polygon.Supposedly that's the
default behavior, yet here is this:
<Loading Image...
> I believe
that a label will render if half of it will fit in the bounding box of the
polygon. In this case, that's not what's happening, as you can see. Also,
I'd really rather have it only render if all of it fits within the polygon,
or at least it's bounding box.Here is my SLD:<?xml version="1.0"
encoding="UTF-8"?> default_polygon Default Polygon
A sample style that draws a polygon base
Green Polygon A polygon with a green fill and a 1 pixel outline
#00B200 0.1 #00B200
1 geom
name Arial 12
normal bold
0.5 0.5
#00B200 2
#000000
true 0.9 60 0
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Labels-Burst-out-of-their-Polygons-tp5326100.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
is too small to fit it".My problem is the opposite: I want to make sure that
a label only will render if it fits in its polygon.Supposedly that's the
default behavior, yet here is this:
<Loading Image...
that a label will render if half of it will fit in the bounding box of the
polygon. In this case, that's not what's happening, as you can see. Also,
I'd really rather have it only render if all of it fits within the polygon,
or at least it's bounding box.Here is my SLD:<?xml version="1.0"
encoding="UTF-8"?> default_polygon Default Polygon
A sample style that draws a polygon base
Green Polygon A polygon with a green fill and a 1 pixel outline
#00B200 0.1 #00B200
1 geom
name Arial 12
normal bold
0.5 0.5
#00B200 2
#000000
true 0.9 60 0
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Labels-Burst-out-of-their-Polygons-tp5326100.html
Sent from the GeoServer - User mailing list archive at Nabble.com.