Per discussion here:
https://osgeo-org.atlassian.net/browse/GEOS-7643?jql=text%20~%20%22URL%20Encode%22
 
<https://osgeo-org.atlassian.net/browse/GEOS-7643?jql=text%20~%20%22URL%20Encode%22>

I think it would be helpful to add a filter function to url encode strings.  I 
can have a pull request ready pretty quickly, but first wanted to check with 
the dev team to see if this is something that can be added to the core filter 
functions provided by geo tools.

An example use case is the ability to URL encode property values via a cql 
expression when using a dynamic symbolizer.

IE this:

<ExternalGraphic>
   <OnlineResource xlink:type="simple"
                   xlink:href="http://mysite.com/tn_${STATE_ABBR}.jpg"/>
   <Format>image/jpeg</Format>
</ExternalGraphic>

Would turn into this, if users needed to ensure a valid remote URL.

<ExternalGraphic>
   <OnlineResource xlink:type="simple"
                   
xlink:href="http://mysite.com/tn_${strURLEncode(STATE_ABBR)}.jpg"/>
   <Format>image/jpeg</Format>
</ExternalGraphic>

Thoughts, concerns?

Thanks all.
-Billy
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to