Hello,
I have this quick little question: I am drawing a symbol using a point symbolizer on a polygon. The question is: what is the reference point? I suspect it’s the centroid of the clipped polygon, but I’m not sure. Any help?
Regards,
Mihail
Hello,
I have this quick little question: I am drawing a symbol using a point symbolizer on a polygon. The question is: what is the reference point? I suspect it’s the centroid of the clipped polygon, but I’m not sure. Any help?
Regards,
Mihail
Mihail,
yes and no. If you display the entire polygon, that is correct. If you
display only parts of it Geoserver arranges the label accordingly. Have a
look at the cadastre image.
http://lctest.land.vic.gov.au/cm/label_in_Polygons.jpeg
At the bottom: The 'X-B\PP5529' parcel labels have been shifted vertically,
so that you can see them.
All the labels are in the middle (horizontally), apart from the most right
label '5-B\PP5529' where the parcel is cut off vertically and horizontally.
In the middle the label '5-C\PP5529' is horizontally in the middle, but sits
vertically on top of the centroid.
The four parcels middle right have the labels arranged horizontally and
vertically in the middle. Again the label is horizontally left and right of
the centroid and vertically on top of the centroid. The fourth parcel label
is lowered a bit in order to fit into the cut off polygon.
I think Geoserver does actually quite a nice job in arranging the labels.
Cheers
Christian
-----
____________________________
Dr Christian Maul
Project Manager
Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000
PO Box 500, East Melbourne Vic 3002
Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-symbols-for-polygons-tp5088519p5088880.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Mihail,
Yes. If you display the entire polygon, that is correct. If you display only
parts of it Geoserver arranges the label or the point symbol accordingly.
Have a look at the cadastre image. Labels are strings in that case but any
XLink would be treated the same.
http://lctest.land.vic.gov.au/cm/label_in_Polygons.jpeg
At the bottom: The 'X-B\PP5529' parcel labels have been shifted vertically,
so that you can see them.
All the labels are in the middle (horizontally), apart from the most right
label '5-B\PP5529' where the parcel is cut off vertically and horizontally.
In the middle the label '5-C\PP5529' is horizontally in the middle, but sits
vertically on top of the centroid.
The four parcels middle right have the labels arranged horizontally and
vertically in the middle. Again the label is horizontally left and right of
the centroid and vertically on top of the centroid. The fourth parcel label
is lowered a bit in order to fit into the cut off polygon.
I think Geoserver does actually quite a nice job in arranging the labels.
Cheers
Christian
-----
____________________________
Dr Christian Maul
Project Manager
Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000
PO Box 500, East Melbourne Vic 3002
Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-symbols-for-polygons-tp5088519p5088881.html
Sent from the GeoServer - User mailing list archive at Nabble.com.