Monday, 27 March 2017

geoserver - Dynamic Symbolizers w/ CQL not URL encoded


I am trying user Dynamic Symbolizers in my SLD:





cite:test

Test







image/png

35









How if the value of 'some_type' has characters in it that need to be URL encoded the URL after parsing the CQL is invalid.


An easy example is if the value has a space in it i.e. 'Some Value'. Which produces the URL http://localhost/icons/Some Value, and it should probably produce: http://localhost/icons/Some%20Value.


Am I using CQL correctly in this instance. I looked through the provided functions here:



https://github.com/geotools/geotools/tree/master/modules/library/main/src/main/java/org/geotools/filter/function


and did not find one specific to URL encoding. That being said its not a huge deal to write a filter function to do this. However if you can use CQL in the href of an OnlineResource the core CQL parsing logic should probably handle this.


Is there anything else I might be missing? Crossing my fingers ;)




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...