Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-14 Thread Ákos Maróy
On 14/11/12 02:33, cmaul wrote: > I am wondering whether it actually is an error. My assumption was that > is always a string. > > The method, strSubstring (string:String, begin:Integer, end:Integer) > clearly wants a string and two integers. So, you must give these types to > that method. this

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread cmaul
I am wondering whether it actually is an error. My assumption was that is always a string. The method, strSubstring (string:String, begin:Integer, end:Integer) clearly wants a string and two integers. So, you must give these types to that method. Hence, the correct form would be:

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Martin Davis
Ok, issue is generalized. Any functions known to require improvement can be added. This is simple stuff, for sure - but that might make it appealing for a developer who wants to make a contribution, but on something easy and low-risk. The hardest part will be creating unit tests.. 8^) On Tue,

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Andrea Aime
On Tue, Nov 13, 2012 at 7:03 PM, Martin Davis wrote: > There's a ticket for this issue for just the IEERemainder function here: > > https://jira.codehaus.org/browse/GEOT-4267 > > Perhaps it could be generalized. > Yep, same general problem. Please do. The issue with these tasks is that they are

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Martin Davis
There's a ticket for this issue for just the IEERemainder function here: https://jira.codehaus.org/browse/GEOT-4267 Perhaps it could be generalized. On Tue, Nov 13, 2012 at 6:16 AM, Andrea Aime wrote: > On Tue, Nov 13, 2012 at 2:46 PM, Ákos Maróy wrote: > >> I found a similar issue, and my so

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Orlando Irrazabal
El 13/11/2012 10:46, Ákos Maróy escribió: On 13/11/12 13:52, Orlando Irrazabal wrote: Hi, I am trying to cut a substring from my data for labeling polygons, i'm using the strSubstring function, but Geoserver doesn't re

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Andrea Aime
On Tue, Nov 13, 2012 at 2:46 PM, Ákos Maróy wrote: > I found a similar issue, and my solution was to explicitly convert the > literal numbers to ints, like this: > > > 0 > > Checked and yeah, s

Re: [Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Ákos Maróy
On 13/11/12 13:52, Orlando Irrazabal wrote: > Hi, > > I am trying to cut a substring from my data for labeling polygons, i'm using > the strSubstring function, > but Geoserver doesn't render any label. > > According to documents > (http://docs.geoserver.org/stable/en/user/filter/function_refere

[Geoserver-users] Problem with strSubstring function in SLD

2012-11-13 Thread Orlando Irrazabal
Hi, I am trying to cut a substring from my data for labeling polygons, i'm using the strSubstring function, but Geoserver doesn't render any label. According to documents (http://docs.geoserver.org/stable/en/user/filter/function_reference.html#string-functions), strSubstring syntax