Hi,
I´ve tried 4 days now (GS 2.1, 2.1.1 and OpenGeo GS 2.1-SNAPSHOT), but
Dynamic symbolizer just want work for me.
I made a new column in PostGIS which I called YMark500 and I used the
PostGIS SQL DEFAULT command.
to write the name of one .svg file:
from pgAdminIII: "YMark500" character varying DEFAULT
'YMark500_Lst_RI_Naturvard_Panda_URC_LimeGron_TEXT_ans110621.svg'::character
varying,
for each of the 2597 features in that table. I can se the .svg filenames in
the table.
I uploaded the .svg file to my homepage (www.gisassistans.se
<http://www.gisassistans.se/> ) and the SLD is:
<ogc:Filter>
<ogc:PropertyIsBetween>
<ogc:PropertyName>yta_ha_ans</ogc:PropertyName>
<ogc:LowerBoundary>
<ogc:Literal>4.7</ogc:Literal>
</ogc:LowerBoundary>
<ogc:UpperBoundary>
<ogc:Literal>50000000</ogc:Literal>
</ogc:UpperBoundary>
</ogc:PropertyIsBetween>
</ogc:Filter>
<sld:MinScaleDenominator>3000.0</sld:MinScaleDenominator>
<sld:MaxScaleDenominator>6000.0</sld:MaxScaleDenominator>
<PolygonSymbolizer>
<Fill>
<GraphicFill>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://www.gisassistans.se/SVG/${YMark500} />
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>200</ogc:Literal>
</Size>
</Graphic>
</GraphicFill>
</Fill>
I also tried with /${YMark500} which PostGIS use to like.
With:
<OnlineResource xlink:type="simple"
xlink:href="'YMark500_Lst_RI_Naturvard_Panda_URC_LimeGron_TEXT_ans110621.svg
' />
it works.
Hopefully someone finds out what I have done wrong :-) .
Regards Anders Söderman Stockholm Sweden
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users