[Qgis-developer] BUG? strpos("area",'.') doesn't work

Elstermann, Mike Mike.Elstermann at itc-halle.de
Mon Nov 7 03:07:02 PST 2016


Hi,



"area" is a double-field with values e. g. 213.1234,  43215.3456, ...



strpos("area",'.') gives only value 1 return :-(

strpos(to_string("area"),'.') gives only value 1 return  :-(



This error exits only by '.', other search-strings e. g. '12', '1', ... work fine



Our workarround works fine.



strpos( replace( to_string( "area" ), '.', ',' ), ',' )



Is this a bug with '.'?



best regards, mikeE.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161107/2a4bf4e3/attachment.html>


More information about the Qgis-developer mailing list