{"action":"created","issue":{"url":"https://api.github.com/repos/harsha2010/magellan/issues/197","repository_url":"https://api.github.com/repos/harsha2010/magellan","labels_url":"https://api.github.com/repos/harsha2010/magellan/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/harsha2010/magellan/issues/197/comments","events_url":"https://api.github.com/repos/harsha2010/magellan/issues/197/events","html_url":"https://github.com/harsha2010/magellan/pull/197","id":302455364,"number":197,"title":"Utility to convert shapes to GeoJSON","user":{"login":"halfabrane","id":16269939,"avatar_url":"https://avatars0.githubusercontent.com/u/16269939?v=4","gravatar_id":"","url":"https://api.github.com/users/halfabrane","html_url":"https://github.com/halfabrane","followers_url":"https://api.github.com/users/halfabrane/followers","following_url":"https://api.github.com/users/halfabrane/following{/other_user}","gists_url":"https://api.github.com/users/halfabrane/gists{/gist_id}","starred_url":"https://api.github.com/users/halfabrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfabrane/subscriptions","organizations_url":"https://api.github.com/users/halfabrane/orgs","repos_url":"https://api.github.com/users/halfabrane/repos","events_url":"https://api.github.com/users/halfabrane/events{/privacy}","received_events_url":"https://api.github.com/users/halfabrane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T20:45:52Z","updated_at":"2018-03-05T20:51:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/harsha2010/magellan/pulls/197","html_url":"https://github.com/harsha2010/magellan/pull/197","diff_url":"https://github.com/harsha2010/magellan/pull/197.diff","patch_url":"https://github.com/harsha2010/magellan/pull/197.patch"},"body":"adds a utility magellan.GeoJSON, along with a Spark SQL expression to convert shapes to GeoJSON geometries.\r\nA shape of the form Point(0.0, 0.5) will be converted to \r\n```json\r\n{\"type\": \"Point\", \"coords\": [0.0, 0.5]}\r\n```\r\n\r\nUsage:\r\n```scala\r\nimport magellan.GeoJSON\r\nGeoJSON.writeJson(shape)\r\n```\r\n\r\nUsage in Spark SQL:\r\n```scala\r\nimport org.apache.spark.sql.magellan.dsl.expressions._\r\ndf.withColumn(\"json\",  $\"point\" asGeoJSON)\r\n```"},"comment":{"url":"https://api.github.com/repos/harsha2010/magellan/issues/comments/370560783","html_url":"https://github.com/harsha2010/magellan/pull/197#issuecomment-370560783","issue_url":"https://api.github.com/repos/harsha2010/magellan/issues/197","id":370560783,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars0.githubusercontent.com/u/8655789?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T20:51:43Z","updated_at":"2018-03-05T20:51:43Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=h1) Report\n> Merging [#197](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=desc) into [master](https://codecov.io/gh/harsha2010/magellan/commit/58ebcd995e345fdff2a090bb359485ea16285dd4?src=pr&el=desc) will **increase** coverage by `0.26%`.\n> The diff coverage is `93.65%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/harsha2010/magellan/pull/197/graphs/tree.svg?token=UQHCJqoSHY&width=650&height=150&src=pr)](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff             @@\n##           master     #197      +/-   ##\n==========================================\n+ Coverage   89.57%   89.84%   +0.26%     \n==========================================\n  Files          48       49       +1     \n  Lines        1564     1605      +41     \n  Branches      103      112       +9     \n==========================================\n+ Hits         1401     1442      +41     \n  Misses        163      163\n```\n\n\n| [Impacted Files](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [src/main/scala/magellan/GeoJSONRelation.scala](https://codecov.io/gh/harsha2010/magellan/pull/197/diff?src=pr&el=tree#diff-c3JjL21haW4vc2NhbGEvbWFnZWxsYW4vR2VvSlNPTlJlbGF0aW9uLnNjYWxh) | `100% <ø> (+11.11%)` | :arrow_up: |\n| [src/main/scala/magellan/geojson.scala](https://codecov.io/gh/harsha2010/magellan/pull/197/diff?src=pr&el=tree#diff-c3JjL21haW4vc2NhbGEvbWFnZWxsYW4vZ2VvanNvbi5zY2FsYQ==) | `100% <100%> (ø)` | |\n| [src/main/scala/magellan/dsl/package.scala](https://codecov.io/gh/harsha2010/magellan/pull/197/diff?src=pr&el=tree#diff-c3JjL21haW4vc2NhbGEvbWFnZWxsYW4vZHNsL3BhY2thZ2Uuc2NhbGE=) | `82.35% <50%> (-4.32%)` | :arrow_down: |\n| [...che/spark/sql/catalyst/expressions/functions.scala](https://codecov.io/gh/harsha2010/magellan/pull/197/diff?src=pr&el=tree#diff-c3JjL21haW4vc2NhbGEvb3JnL2FwYWNoZS9zcGFyay9zcWwvY2F0YWx5c3QvZXhwcmVzc2lvbnMvZnVuY3Rpb25zLnNjYWxh) | `95.55% <86.36%> (-1.79%)` | :arrow_down: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=footer). Last update [58ebcd9...9f5ea9b](https://codecov.io/gh/harsha2010/magellan/pull/197?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov-io"}}