[Geoserver-users] very thin 1 pixel width

Ah yeah, very nasty issue.
I was thinking to actually fix it in GeoServer 2.0.
The main problem I’m facing with this change is that it will
invalidate
all existing SLD that do not specify a line width or those that
do specify a line width less than 1.5 pixels, since the line will
be drawn almost twice as thick when the patch is made.
So as you can see I’m facing a backwards compatibility issue.

The same goes with the other issue we’ve found during that test,
that is, fonts sized in points instead of pixels. If I find a way
to get fonts sized in pixels, all font sizes will be invalidate
as well, because points are smaller than pixels.

Another option I could look into would be to provide, for the
moment, an option to setup in web.xml, something like
ENABLE_NATURAL_STROKE_SIZE=true and ENABLE_FONT_SIZE_PIXELS=true…

Suggestions?

From my point of view (as a happy user who doesn’t like the thin lines ;)) I would appreciate a “web.xml”-solution as with the new labeller.

regards
Stefan

Cheers
Andrea


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

Ziegler Stefan ha scritto:

From my point of view (as a happy user who doesn't like the thin lines ;)) I would appreciate a "web.xml"-solution as with the new labeller.

I've just commited the changes for
http://jira.codehaus.org/browse/GEOS-2228

So starting from tomorrow you can grab a nightly build and test out
a build that does not do super-thin lines.
All you have to do is to add the following to your web.xml:

<context-param>
    <param-name>OPTIMIZE_LINE_WIDTH</param-name>
    <param-value>false</param-value>
</context-param>

(the meaning is that the code turned every line width less than 1.5
  to 0 to get into a fast path in the java2d rendering code, and
  if you disable it, you give up the faster path for better line
  width control).

I'm actually not super happy with that setting name but
could not come up with a better one so... suggestions
welcomed.

Cheers
Andrea

PS: the nightly build you can grab here:
http://gridlock.openplans.org/geoserver/1.7.x/

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