Add expression support for ExternalGraphic format tag
-----------------------------------------------------

                 Key: GEOT-3139
                 URL: http://jira.codehaus.org/browse/GEOT-3139
             Project: GeoTools
          Issue Type: Bug
          Components: core render
    Affects Versions: 2.5.8, 2.6-M0, 2.6-M1, 2.6-M2, 2.6-M3, 2.6-RC1, 2.6.0, 
2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.7-M0
            Reporter: Frank Gasdorf
            Assignee: Andrea Aime
             Fix For: 2.6.5, 2.7-M1


Dynamic ExternalGraphic href supports expressions as part of an URL like
http://myservice/${icon} where icon is a attribute of a FeatureType (Attribute 
value would be myimage.png). 

But if there is a complete URL stored as an attribute value a 
MalformedURLException will be thrown for a SLD looking like that:
<ExternalGraphic>
  <OnlineResource xlink:type="simple" xlink:href="${attributeImageURL}"/>
  <Format>image/png</Format>
</ExternalGraphic>

It is not possible to read fromat from feature attribute like:
<ExternalGraphic>
  <OnlineResource xlink:type="simple" 
xlink:href="http://myservice/${attributeImageURL}"/>
  <Format>${attributeImageFormat}</Format>
</ExternalGraphic>

Please have a look at the patch for the test cases.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to