{ "name": "length", "type": "function", "description": "Returns the number of characters in a string or the length of a geometry linestring.", "variants": [ { "variant": "String variant", "variant_description": "Returns the number of characters in a string.", "arguments": [ {"arg":"string","description":"string to count length of"} ], "examples": [ { "expression":"length('hello')", "returns":"5"} ] }, { "variant": "Geometry variant", "variant_description": "Calculate the length of a geometry line object. Calculations are in the Spatial Reference System of this geometry.", "arguments": [ {"arg":"geometry","description":"line geometry object"}], "examples": [ { "expression":"length(geom_from_wkt('LINESTRING(0 0, 4 0)'))", "returns":"4.0"}] }] }