{"action":"opened","issue":{"url":"https://api.github.com/repos/BaseXdb/basex/issues/1246","labels_url":"https://api.github.com/repos/BaseXdb/basex/issues/1246/labels{/name}","comments_url":"https://api.github.com/repos/BaseXdb/basex/issues/1246/comments","events_url":"https://api.github.com/repos/BaseXdb/basex/issues/1246/events","html_url":"https://github.com/BaseXdb/basex/issues/1246","id":127104214,"number":1246,"title":"geo module genereated geometries not operable in future geo calls","user":{"login":"james-jw","id":7120229,"avatar_url":"https://avatars.githubusercontent.com/u/7120229?v=3","gravatar_id":"","url":"https://api.github.com/users/james-jw","html_url":"https://github.com/james-jw","followers_url":"https://api.github.com/users/james-jw/followers","following_url":"https://api.github.com/users/james-jw/following{/other_user}","gists_url":"https://api.github.com/users/james-jw/gists{/gist_id}","starred_url":"https://api.github.com/users/james-jw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-jw/subscriptions","organizations_url":"https://api.github.com/users/james-jw/orgs","repos_url":"https://api.github.com/users/james-jw/repos","events_url":"https://api.github.com/users/james-jw/events{/privacy}","received_events_url":"https://api.github.com/users/james-jw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T15:57:29Z","updated_at":"2016-01-17T15:57:29Z","closed_at":null,"body":"For example:\r\n\r\n```xquery\r\nlet $Polygon:= <gml:Polygon>\r\n                   <gml:outerBoundaryIs>\r\n                      <gml:LinearRing><gml:coordinates>10,10 20,10 30,40 20,40 10,10</gml:coordinates></gml:LinearRing>\r\n                   </gml:outerBoundaryIs>\r\n               </gml:Polygon>\r\n                             \r\nreturn geo:buffer($Polygon, xs:double(3)) \r\n        => geo:envelope()\r\n```\r\n\r\nOr for example:\r\n```xquery\r\nlet $env := geo:envelope($Polygon)\r\nreturn\r\n   geo:intersection($env, $Polygon)\r\n```\r\n\r\nIn all cases this error is returned:\r\n``\r\n[FORG0006] element() expected, document-node() found: document-node \r\n``\r\n\r\nThe call to geo:envelope() results in the following error:\r\n"}}