{"action":"created","issue":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/71","labels_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/71/comments","events_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/71/events","html_url":"https://github.com/Oslandia/SFCGAL/pull/71","id":52467966,"number":71,"title":"Added sfcgal_geometry_as_text_decim function to C API","user":{"login":"matze09","id":3092905,"avatar_url":"https://avatars.githubusercontent.com/u/3092905?v=3","gravatar_id":"","url":"https://api.github.com/users/matze09","html_url":"https://github.com/matze09","followers_url":"https://api.github.com/users/matze09/followers","following_url":"https://api.github.com/users/matze09/following{/other_user}","gists_url":"https://api.github.com/users/matze09/gists{/gist_id}","starred_url":"https://api.github.com/users/matze09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matze09/subscriptions","organizations_url":"https://api.github.com/users/matze09/orgs","repos_url":"https://api.github.com/users/matze09/repos","events_url":"https://api.github.com/users/matze09/events{/privacy}","received_events_url":"https://api.github.com/users/matze09/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-19T10:24:25Z","updated_at":"2015-01-14T14:10:43Z","closed_at":"2015-01-14T13:59:05Z","pull_request":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/pulls/71","html_url":"https://github.com/Oslandia/SFCGAL/pull/71","diff_url":"https://github.com/Oslandia/SFCGAL/pull/71.diff","patch_url":"https://github.com/Oslandia/SFCGAL/pull/71.patch"},"body":"new **sfcgal_geometry_as_text_decim** function allows to set the numDecimals parameter which is passed to the asText function and then used in WktWriter. This way the precision of coordinate values in the generated WKT can be controlled over the C API. Most importantly, the default \"exact mode\" of CGAL outputting integer fractions (= invalid WKT) can be avoided.\r\n\r\nThe existing function was not touched to ensure backwards compatibility.\r\n\r\nremoved comments for num_decimals parameter in **sfcgal_prepared_geometry_as_ewkt** function. so far, passed num_decimals did not have any effect since they were not passed to the asEWKT method. this is changed now and the precision can be controlled for EWKT as well.\r\n\r\nThe first enhancement was previously discussed and agreed upon in [Issue #70](https://github.com/Oslandia/SFCGAL/issues/70).\r\nShould the second EWKT-related enhancement be undesired by the original authors, please reject that part or suggest a different implementation.\r\n\r\nMany thanks,\r\nMatthias"},"comment":{"url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/comments/69920602","html_url":"https://github.com/Oslandia/SFCGAL/pull/71#issuecomment-69920602","issue_url":"https://api.github.com/repos/Oslandia/SFCGAL/issues/71","id":69920602,"user":{"login":"matze09","id":3092905,"avatar_url":"https://avatars.githubusercontent.com/u/3092905?v=3","gravatar_id":"","url":"https://api.github.com/users/matze09","html_url":"https://github.com/matze09","followers_url":"https://api.github.com/users/matze09/followers","following_url":"https://api.github.com/users/matze09/following{/other_user}","gists_url":"https://api.github.com/users/matze09/gists{/gist_id}","starred_url":"https://api.github.com/users/matze09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matze09/subscriptions","organizations_url":"https://api.github.com/users/matze09/orgs","repos_url":"https://api.github.com/users/matze09/repos","events_url":"https://api.github.com/users/matze09/events{/privacy}","received_events_url":"https://api.github.com/users/matze09/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T14:10:43Z","updated_at":"2015-01-14T14:10:43Z","body":"cool, many thanks :-)\r\nM."}}