{"action":"created","comment":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/177518484","pull_request_review_id":107403824,"id":177518484,"diff_hunk":"@@ -132,6 +132,38 @@ A complete list of the implemented UDFs is given in the next section (:doc:`./sp\n \n .. _OpenGIS Simple feature access SQL option: http://www.opengeospatial.org/standards/sfs\n \n+GeoJSON Output\n+^^^^^^^^^^^^^^\n+\n+The Spark JTS module also provides a means of exporting a ``DataFrame`` to a `GeoJSON <http://geojson.org/>`__ string.\n+This allows for quick visualization of the data in many front-end mapping libraries that support GeoJSON input such as\n+Leaflet or Open Layers.\n+\n+To convert a DataFrame, each partition can be map its rows to GeoJSON by instantiating a ``RowGeoJSON`` converter.\n+\n+.. code-block:: scala\n+\n+    import org.locationtech.geomesa.spark.jts.util.RowGeoJSON\n+    val df : DataFrame = // Some data frame\n+    val schema = df.schema\n+    val geojsonDf = df.mapPartitions { iter =>\n+        val row2GeoJSON = new RowGeoJSON(schema)\n+        iter.map { r => rowJSON.toString(r) }\n+    }\n+\n+If the result can fit in memory, it can then be collected on the driver and written to a file. If not, each executor can\n+write to a distributed file system like HDFS.\n+\n+.. code::","path":"docs/user/spark/spark_jts.rst","position":26,"original_position":26,"commit_id":"5b5428fdad32296621a085e881cfaa9dcaf900f1","original_commit_id":"5b5428fdad32296621a085e881cfaa9dcaf900f1","user":{"login":"elahrvivaz","id":7715322,"avatar_url":"https://avatars0.githubusercontent.com/u/7715322?v=4","gravatar_id":"","url":"https://api.github.com/users/elahrvivaz","html_url":"https://github.com/elahrvivaz","followers_url":"https://api.github.com/users/elahrvivaz/followers","following_url":"https://api.github.com/users/elahrvivaz/following{/other_user}","gists_url":"https://api.github.com/users/elahrvivaz/gists{/gist_id}","starred_url":"https://api.github.com/users/elahrvivaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elahrvivaz/subscriptions","organizations_url":"https://api.github.com/users/elahrvivaz/orgs","repos_url":"https://api.github.com/users/elahrvivaz/repos","events_url":"https://api.github.com/users/elahrvivaz/events{/privacy}","received_events_url":"https://api.github.com/users/elahrvivaz/received_events","type":"User","site_admin":false},"body":"can add 'scala' typing here","created_at":"2018-03-27T18:03:51Z","updated_at":"2018-03-27T18:03:51Z","html_url":"https://github.com/locationtech/geomesa/pull/1907#discussion_r177518484","pull_request_url":"https://api.github.com/repos/locationtech/geomesa/pulls/1907","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/177518484"},"html":{"href":"https://github.com/locationtech/geomesa/pull/1907#discussion_r177518484"},"pull_request":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1907"}}},"pull_request":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/1907","id":177777225,"html_url":"https://github.com/locationtech/geomesa/pull/1907","diff_url":"https://github.com/locationtech/geomesa/pull/1907.diff","patch_url":"https://github.com/locationtech/geomesa/pull/1907.patch","issue_url":"https://api.github.com/repos/locationtech/geomesa/issues/1907","number":1907,"state":"open","locked":false,"title":"GEOMESA-2231 Add Row to GeoJSON converter class","user":{"login":"atallahhezbor","id":7144661,"avatar_url":"https://avatars3.githubusercontent.com/u/7144661?v=4","gravatar_id":"","url":"https://api.github.com/users/atallahhezbor","html_url":"https://github.com/atallahhezbor","followers_url":"https://api.github.com/users/atallahhezbor/followers","following_url":"https://api.github.com/users/atallahhezbor/following{/other_user}","gists_url":"https://api.github.com/users/atallahhezbor/gists{/gist_id}","starred_url":"https://api.github.com/users/atallahhezbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atallahhezbor/subscriptions","organizations_url":"https://api.github.com/users/atallahhezbor/orgs","repos_url":"https://api.github.com/users/atallahhezbor/repos","events_url":"https://api.github.com/users/atallahhezbor/events{/privacy}","received_events_url":"https://api.github.com/users/atallahhezbor/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Atallah Hezbor <atallahhezbor@gmail.com>","created_at":"2018-03-27T15:24:05Z","updated_at":"2018-03-27T18:03:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc822a09594c3bd4f952c5b644c04a35be8a8d40","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/locationtech/geomesa/pulls/1907/commits","review_comments_url":"https://api.github.com/repos/locationtech/geomesa/pulls/1907/comments","review_comment_url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/locationtech/geomesa/issues/1907/comments","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/5b5428fdad32296621a085e881cfaa9dcaf900f1","head":{"label":"ccri:ahezbor-fcr_row2geojson","ref":"ahezbor-fcr_row2geojson","sha":"5b5428fdad32296621a085e881cfaa9dcaf900f1","user":{"login":"ccri","id":1089783,"avatar_url":"https://avatars3.githubusercontent.com/u/1089783?v=4","gravatar_id":"","url":"https://api.github.com/users/ccri","html_url":"https://github.com/ccri","followers_url":"https://api.github.com/users/ccri/followers","following_url":"https://api.github.com/users/ccri/following{/other_user}","gists_url":"https://api.github.com/users/ccri/gists{/gist_id}","starred_url":"https://api.github.com/users/ccri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccri/subscriptions","organizations_url":"https://api.github.com/users/ccri/orgs","repos_url":"https://api.github.com/users/ccri/repos","events_url":"https://api.github.com/users/ccri/events{/privacy}","received_events_url":"https://api.github.com/users/ccri/received_events","type":"Organization","site_admin":false},"repo":{"id":16865543,"name":"geomesa","full_name":"ccri/geomesa","owner":{"login":"ccri","id":1089783,"avatar_url":"https://avatars3.githubusercontent.com/u/1089783?v=4","gravatar_id":"","url":"https://api.github.com/users/ccri","html_url":"https://github.com/ccri","followers_url":"https://api.github.com/users/ccri/followers","following_url":"https://api.github.com/users/ccri/following{/other_user}","gists_url":"https://api.github.com/users/ccri/gists{/gist_id}","starred_url":"https://api.github.com/users/ccri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccri/subscriptions","organizations_url":"https://api.github.com/users/ccri/orgs","repos_url":"https://api.github.com/users/ccri/repos","events_url":"https://api.github.com/users/ccri/events{/privacy}","received_events_url":"https://api.github.com/users/ccri/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ccri/geomesa","description":"docs","fork":true,"url":"https://api.github.com/repos/ccri/geomesa","forks_url":"https://api.github.com/repos/ccri/geomesa/forks","keys_url":"https://api.github.com/repos/ccri/geomesa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccri/geomesa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccri/geomesa/teams","hooks_url":"https://api.github.com/repos/ccri/geomesa/hooks","issue_events_url":"https://api.github.com/repos/ccri/geomesa/issues/events{/number}","events_url":"https://api.github.com/repos/ccri/geomesa/events","assignees_url":"https://api.github.com/repos/ccri/geomesa/assignees{/user}","branches_url":"https://api.github.com/repos/ccri/geomesa/branches{/branch}","tags_url":"https://api.github.com/repos/ccri/geomesa/tags","blobs_url":"https://api.github.com/repos/ccri/geomesa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccri/geomesa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccri/geomesa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccri/geomesa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccri/geomesa/statuses/{sha}","languages_url":"https://api.github.com/repos/ccri/geomesa/languages","stargazers_url":"https://api.github.com/repos/ccri/geomesa/stargazers","contributors_url":"https://api.github.com/repos/ccri/geomesa/contributors","subscribers_url":"https://api.github.com/repos/ccri/geomesa/subscribers","subscription_url":"https://api.github.com/repos/ccri/geomesa/subscription","commits_url":"https://api.github.com/repos/ccri/geomesa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccri/geomesa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccri/geomesa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccri/geomesa/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccri/geomesa/contents/{+path}","compare_url":"https://api.github.com/repos/ccri/geomesa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccri/geomesa/merges","archive_url":"https://api.github.com/repos/ccri/geomesa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccri/geomesa/downloads","issues_url":"https://api.github.com/repos/ccri/geomesa/issues{/number}","pulls_url":"https://api.github.com/repos/ccri/geomesa/pulls{/number}","milestones_url":"https://api.github.com/repos/ccri/geomesa/milestones{/number}","notifications_url":"https://api.github.com/repos/ccri/geomesa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccri/geomesa/labels{/name}","releases_url":"https://api.github.com/repos/ccri/geomesa/releases{/id}","deployments_url":"https://api.github.com/repos/ccri/geomesa/deployments","created_at":"2014-02-15T15:39:50Z","updated_at":"2017-06-15T18:04:32Z","pushed_at":"2018-03-27T15:23:25Z","git_url":"git://github.com/ccri/geomesa.git","ssh_url":"git@github.com:ccri/geomesa.git","clone_url":"https://github.com/ccri/geomesa.git","svn_url":"https://github.com/ccri/geomesa","homepage":"","size":72387,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"locationtech:master","ref":"master","sha":"c99d135584e58251e225626a455f6a2694f5f2a5","user":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars2.githubusercontent.com/u/1991411?v=4","gravatar_id":"","url":"https://api.github.com/users/locationtech","html_url":"https://github.com/locationtech","followers_url":"https://api.github.com/users/locationtech/followers","following_url":"https://api.github.com/users/locationtech/following{/other_user}","gists_url":"https://api.github.com/users/locationtech/gists{/gist_id}","starred_url":"https://api.github.com/users/locationtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locationtech/subscriptions","organizations_url":"https://api.github.com/users/locationtech/orgs","repos_url":"https://api.github.com/users/locationtech/repos","events_url":"https://api.github.com/users/locationtech/events{/privacy}","received_events_url":"https://api.github.com/users/locationtech/received_events","type":"Organization","site_admin":false},"repo":{"id":13226069,"name":"geomesa","full_name":"locationtech/geomesa","owner":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars2.githubusercontent.com/u/1991411?v=4","gravatar_id":"","url":"https://api.github.com/users/locationtech","html_url":"https://github.com/locationtech","followers_url":"https://api.github.com/users/locationtech/followers","following_url":"https://api.github.com/users/locationtech/following{/other_user}","gists_url":"https://api.github.com/users/locationtech/gists{/gist_id}","starred_url":"https://api.github.com/users/locationtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locationtech/subscriptions","organizations_url":"https://api.github.com/users/locationtech/orgs","repos_url":"https://api.github.com/users/locationtech/repos","events_url":"https://api.github.com/users/locationtech/events{/privacy}","received_events_url":"https://api.github.com/users/locationtech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locationtech/geomesa","description":"GeoMesa is a suite of tools for working with big geo-spatial data in a distributed fashion.","fork":false,"url":"https://api.github.com/repos/locationtech/geomesa","forks_url":"https://api.github.com/repos/locationtech/geomesa/forks","keys_url":"https://api.github.com/repos/locationtech/geomesa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locationtech/geomesa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locationtech/geomesa/teams","hooks_url":"https://api.github.com/repos/locationtech/geomesa/hooks","issue_events_url":"https://api.github.com/repos/locationtech/geomesa/issues/events{/number}","events_url":"https://api.github.com/repos/locationtech/geomesa/events","assignees_url":"https://api.github.com/repos/locationtech/geomesa/assignees{/user}","branches_url":"https://api.github.com/repos/locationtech/geomesa/branches{/branch}","tags_url":"https://api.github.com/repos/locationtech/geomesa/tags","blobs_url":"https://api.github.com/repos/locationtech/geomesa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locationtech/geomesa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locationtech/geomesa/git/refs{/sha}","trees_url":"https://api.github.com/repos/locationtech/geomesa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/{sha}","languages_url":"https://api.github.com/repos/locationtech/geomesa/languages","stargazers_url":"https://api.github.com/repos/locationtech/geomesa/stargazers","contributors_url":"https://api.github.com/repos/locationtech/geomesa/contributors","subscribers_url":"https://api.github.com/repos/locationtech/geomesa/subscribers","subscription_url":"https://api.github.com/repos/locationtech/geomesa/subscription","commits_url":"https://api.github.com/repos/locationtech/geomesa/commits{/sha}","git_commits_url":"https://api.github.com/repos/locationtech/geomesa/git/commits{/sha}","comments_url":"https://api.github.com/repos/locationtech/geomesa/comments{/number}","issue_comment_url":"https://api.github.com/repos/locationtech/geomesa/issues/comments{/number}","contents_url":"https://api.github.com/repos/locationtech/geomesa/contents/{+path}","compare_url":"https://api.github.com/repos/locationtech/geomesa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locationtech/geomesa/merges","archive_url":"https://api.github.com/repos/locationtech/geomesa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locationtech/geomesa/downloads","issues_url":"https://api.github.com/repos/locationtech/geomesa/issues{/number}","pulls_url":"https://api.github.com/repos/locationtech/geomesa/pulls{/number}","milestones_url":"https://api.github.com/repos/locationtech/geomesa/milestones{/number}","notifications_url":"https://api.github.com/repos/locationtech/geomesa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locationtech/geomesa/labels{/name}","releases_url":"https://api.github.com/repos/locationtech/geomesa/releases{/id}","deployments_url":"https://api.github.com/repos/locationtech/geomesa/deployments","created_at":"2013-09-30T20:13:46Z","updated_at":"2018-03-27T17:53:54Z","pushed_at":"2018-03-27T17:56:02Z","git_url":"git://github.com/locationtech/geomesa.git","ssh_url":"git@github.com:locationtech/geomesa.git","clone_url":"https://github.com/locationtech/geomesa.git","svn_url":"https://github.com/locationtech/geomesa","homepage":"https://www.locationtech.org/projects/technology.geomesa","size":48503,"stargazers_count":414,"watchers_count":414,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":177,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":177,"open_issues":10,"watchers":414,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1907"},"html":{"href":"https://github.com/locationtech/geomesa/pull/1907"},"issue":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/1907"},"comments":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/1907/comments"},"review_comments":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1907/comments"},"review_comment":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/1907/commits"},"statuses":{"href":"https://api.github.com/repos/locationtech/geomesa/statuses/5b5428fdad32296621a085e881cfaa9dcaf900f1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"elahrvivaz"}}