2011/6/12 Anders Söderman <anders.soder...@gisassistans.se>: > Hello Andrea and David and thanks for your input. > > I have tried UOM meter instead of pixels, but it made things even more > complicated as far as I could see.
I guess your problem is not changing the size of the symbolizer based on the scale then. > I will look into CSS to see if my VERY LARGE SLDs could be made more > "readable" or at least shorter. That will definitely make for much more compact specifications, easier to read, and quicker to write. Though I guess you may want to use SLDs for a few months to come, at least until the SLD workshop at FOSS4G :-p http://2011.foss4g.org/sessions/practical-use-geoserver-sld-wms > One SLD file with 13 scaleintervals each having 3 - 8 areaintervals means > that I have to write the name of the SVG-file, Stroke colours etc many > times. > My guestion: > It would be very nice to be able to start the SLD with PARAMETERS > (SVG_file_1, SVG_file_2 ...) ie. > SVG_file_1 = xyz_1.svg > SVG_file_2 = xyz_2.svg > etc. > and then I only have to change xyz_1.svg, xyz_2.svg etc. to my SVG > filenamnes right in the beginning of the SLD file. > I hope you understand my problem. Not really no. Seeing the SLD in question would help. > I looked at the "env" variable but I couldn´t figure out if it could be > used. It is used to pass into the SLD values coming from the WMS request itself. It is documented here: http://docs.geoserver.org/stable/en/user/styling/sld-extensions/substitution.html If you want to change the name of a SVG on a per request basis you can do so by adding &env=svg1:symbol1 and then have the following in the SLD (using the dynamic symbolizers features, another GeoServer extension): <OnlineResource xlink:type="simple" xlink:href="${env('svg1')}.svg"/> that is calling the env function with 'svg1' as the key. You can also provide a default value to have a valid SLD even when the parameter is not provided in the request: <OnlineResource xlink:type="simple" xlink:href="${env('svg1', 'defaultSymbol')}.svg"/> In this case if you don't specify the value of svg1 in the request you'll get defaultSymbol.svg as the default svg file Ah, though I never tried, as far as I know most of the above can be done in CSS as well, so you can have the style be compact and parametric at the same time. Hope this helps! Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users