As some might know already, i am writing an stand-alone SLD editor based on
Swing+Geotools 2.4. Its licensed under LGPL and maybe maybe will be merged
into the geowidgets-pending module in August.
I realized that hatchures (de: Schraffuren) are not easily realized with SLD
1.1. Following the official standard, one can
A) only used squares, triangle and circle to fill a polgon, no /// or \\\
B) can use an external SVG graphic to fill a polygon. As SVGs contian their
color information its not a cool solution. Still it would be possible to use
a black hatchures SVG and change the color of the background to create
different hatchures. I thought ...
I added a cool SVG support to the AtlasStyler. If you want to use an external
graphic, you can browse a collection of about 100 open source SVGs at
http://www.geopublishing.org online. This collection is updated form the
OpenStreetMap projects svn-repository from time to time. So the user of the
AtlasStyler can directly start accessing about 100 open source SVGs...
Sadly, i realized that geotools 2.4 doesn't seem to render a PolygonSymbolizer
with an External Graphic :-( Nothing is rendered .. no exceptions...
I only see SVGs rendered when it is used with a PointSymbolizer. I didn't test
it with a LineSymbolizer.
Any chances, that this could be fixed in some 2.4.x release?
On Thursday 26 June 2008 14:49:26 you wrote:
> > How are we supposed to make hachures / hatchures (dt. Schraffuren) for a
> > polygon with SLD? The "native" Graphic+Mark stuff (with circle and box
> > etc) doesn't help much.
> > When i use ExternalGraphics i can use a nice hatchures graphics to fill
> > the polygon, BUT i can't change the color programatically. So i would
> > need many many precolored SVGs - which sux for seriouse classifications.
> > Am i missing something? I just want to fill the polygon with //// or \\\\
wiki² - Softwareentwicklung
Straßburger Weg 26
mobile 0151 50543949
reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.