aleda_freeman ha scritto:
Is there a way to antialias the labels? I didn't see anything in the SLD
Spec.
Due to a label issue http://jira.codehaus.org/browse/GEOT-1128 where not all
my towns were being labeled, I had to reduce the font in order to get all
the towns I needed labeled. However, the labels aren't very distinct. I
wonder if antialiasing could help in the TextSymbolizer.
My GetMap:
http://giswebservices.massgis.state.ma.us/geoserver/wms?version=1.1.0&request=GetMap&layers=massgis%3AGISDATA.TOWNS_POLYM,massgis%3AGISDATA.TOWNS_POLYM&styles=GISDATA.TOWNS_POLYM::mdc_wspa,GISDATA.TOWNS_POLYM::mdc_wspa_labels&srs=EPSG:26986&bbox=117817.0,882919.875,188328.0,935803.125&width=440&height=330&format=image/png&service=wms&hilitelayer=&hilitecolor=&hilitexy=
My label style:
http://giswebservices.massgis.state.ma.us/geoserver/api/styles/GISDATA.TOWNS_POLYM::mdc_wspa_labels
Hem, Aleda, those labels are already antialiased. If you want to see the
version without antialisiasing, here it is (please be seated):
http://giswebservices.massgis.state.ma.us/geoserver/wms?version=1.1.0&request=GetMap&layers=massgis%3AGISDATA.TOWNS_POLYM,massgis%3AGISDATA.TOWNS_POLYM&styles=GISDATA.TOWNS_POLYM::mdc_wspa,GISDATA.TOWNS_POLYM::mdc_wspa_labels&srs=EPSG:26986&bbox=117817.0,882919.875,188328.0,935803.125&width=440&height=330&format=image/png&service=wms&hilitelayer=&hilitecolor=&hilitexy=&format_options=antialias:none
(I added the &format_options=antialias:none option at the end)
I suggest you try out with different type of fonts, some may be more
readable at small size than others.
Cheers
Andrea