Hi,

I've a problem with external graphic.

If I try to get external graphic dynamically - the field 'geomname' holds the name of svg (first example)

<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/${strToLowerCase(geomname)}"/>
<Format>image/svg+xml</Format>
</ExternalGraphic>

and  part of name in this example :

<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/${strToLowerCase(geomname)}.svg"/>
<Format>image/svg+xml</Format>
</ExternalGraphic>

Both these give errors like this:
08 Okt 13:39:33 ERROR [lite.StyledShapePainter] - ShapePainter has been asked to paint a null style!!

and there is no elements on my map.

This one  works:

<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/HEIN.svg"/>
<Format>image/svg+xml</Format>
</ExternalGraphic>


But I really need to get these symbols dynamically from database.
Why I don't get the style defined? What is the problem? To my eye it is quite the same as in example:

<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://www.usautoparts.net/tn_${strToLowerCase(STATE_ABBR)}.jpg" />
<Format>image/jpeg</Format>
</ExternalGraphic>

I use PostgreSQL8.4  and GeoServer 2.1-beta1.

Regards,

Katrin
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to