Tobias Spaltenberger ha scritto: > Hi Andrea, > > while googling on how to make polygon fills with hatching, I found > your mail and the following page: > http://jira.codehaus.org/browse/GEOT-829. > > I was able to create hatched polygons using Geoserver 1.6.3 and the > following SLD snippet: > > <sld:PolygonSymbolizer> > <sld:Fill> > <sld:GraphicFill> > <sld:Graphic> > <sld:Mark> > > <sld:WellKnownName>hatch</sld:WellKnownName> > <sld:Fill> > <sld:CssParameter > name="fill">#00FF00</sld:CssParameter> > </sld:Fill> > </sld:Mark> > </sld:Graphic> > </sld:GraphicFill> > </sld:Fill> > <sld:Stroke> > <sld:CssParameter name="Stroke">#000000</sld:CssParameter> > <sld:CssParameter name="Stroke-width">1</sld:CssParameter> > </sld:Stroke> > </sld:PolygonSymbolizer> > > I haven't found out how to change stroke width and spacing (and > rotation other than multiples of 45 degrees) of the hatching, I don't > know if that is possible with this Mark...
Yeah, it's not. I have prepared an infrastructure that allows developers to add new mark and external graphics as well make dynamic ones, but unfortunately that work was not sponsored and I had to stop it mid flight to attend to paid work. I looked a bit into supporting AutoCad hatches, but it does not seem to be easy at all, unfortunately. The thing is, I wanted to leverage some already existing hatch pattern library, and the only ones I've found are the AutoCad ones. If you're a developer and would like to contribute some extra well known marks, eventually dynamic ones, have a look at this proposal: http://docs.codehaus.org/display/GEOTOOLS/Dynamic+SLD+Graphic+objects I managed to get the infrastructure in, and to add support for TTF font based markers, but got no luck so far with hatches. Maybe you can code up some? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
