24 Nov
2017
24 Nov
'17
5:31 p.m.
What is wrong with this code? import module namespace geo = 'http://expath.org/ns/geo'; declare namespace gml='http://www.opengis.net/gml'; let $opt := map { "lax": true() } let $y := json:parse('{ "coords":{ "gml:Point":{ "gml:coordinates":"0,0" } } }', $opt ) let $x := json:parse('{ "coords":{ "gml:Point":{ "gml:coordinates":"-123.45,45.343" } } }', $opt ) return geo:distance($x/json/coords/*, $y/json/coords/*)