{"action":"created","comment":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/23170418","id":23170418,"diff_hunk":"@@ -38,9 +39,31 @@ case class Raster(chunk: RenderedImage, metadata: DecodedIndex, resolution: Doub\n \n   lazy val serializedChunk = RasterUtils.imageSerialize(chunk)\n \n+  def encodeValue = RasterUtils.imageSerialize(chunk)\n+\n+  def encodeToBytes(): Array[Byte] = {\n+    val chunkBytes = RasterUtils.imageSerialize(chunk)\n+    val metaDataBytes = metadata.toBytes\n+\n+    ByteBuffer.allocate(4).putInt(chunkBytes.length).array() ++ chunkBytes ++\n+      ByteBuffer.allocate(4).putInt(metaDataBytes.length).array() ++ metaDataBytes ++\n+      ByteBuffer.allocate(8).putDouble(resolution).array()","path":"geomesa-raster/src/main/scala/org/locationtech/geomesa/raster/data/Raster.scala","position":27,"original_position":27,"commit_id":"15a9e805caa65ccabc5fbc08ab17e463d6cab01f","original_commit_id":"15a9e805caa65ccabc5fbc08ab17e463d6cab01f","user":{"login":"jnh5y","id":1915111,"avatar_url":"https://avatars.githubusercontent.com/u/1915111?v=3","gravatar_id":"","url":"https://api.github.com/users/jnh5y","html_url":"https://github.com/jnh5y","followers_url":"https://api.github.com/users/jnh5y/followers","following_url":"https://api.github.com/users/jnh5y/following{/other_user}","gists_url":"https://api.github.com/users/jnh5y/gists{/gist_id}","starred_url":"https://api.github.com/users/jnh5y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnh5y/subscriptions","organizations_url":"https://api.github.com/users/jnh5y/orgs","repos_url":"https://api.github.com/users/jnh5y/repos","events_url":"https://api.github.com/users/jnh5y/events{/privacy}","received_events_url":"https://api.github.com/users/jnh5y/received_events","type":"User","site_admin":false},"body":"Same comment as above.  During a later ticket, we may want to explore Avro encoding for this info.","created_at":"2015-01-19T16:31:33Z","updated_at":"2015-01-19T16:31:33Z","html_url":"https://github.com/locationtech/geomesa/pull/434#discussion_r23170418","pull_request_url":"https://api.github.com/repos/locationtech/geomesa/pulls/434","_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/23170418"},"html":{"href":"https://github.com/locationtech/geomesa/pull/434#discussion_r23170418"},"pull_request":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/434"}}},"pull_request":{"url":"https://api.github.com/repos/locationtech/geomesa/pulls/434","id":27532942,"html_url":"https://github.com/locationtech/geomesa/pull/434","diff_url":"https://github.com/locationtech/geomesa/pull/434.diff","patch_url":"https://github.com/locationtech/geomesa/pull/434.patch","issue_url":"https://api.github.com/repos/locationtech/geomesa/issues/434","number":434,"state":"open","locked":false,"title":"GEOMESA-642 Implement raster files ingestion using Scalding","user":{"login":"wjp22903","id":1178188,"avatar_url":"https://avatars.githubusercontent.com/u/1178188?v=3","gravatar_id":"","url":"https://api.github.com/users/wjp22903","html_url":"https://github.com/wjp22903","followers_url":"https://api.github.com/users/wjp22903/followers","following_url":"https://api.github.com/users/wjp22903/following{/other_user}","gists_url":"https://api.github.com/users/wjp22903/gists{/gist_id}","starred_url":"https://api.github.com/users/wjp22903/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjp22903/subscriptions","organizations_url":"https://api.github.com/users/wjp22903/orgs","repos_url":"https://api.github.com/users/wjp22903/repos","events_url":"https://api.github.com/users/wjp22903/events{/privacy}","received_events_url":"https://api.github.com/users/wjp22903/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-16T20:12:30Z","updated_at":"2015-01-19T16:31:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ada01c03f4c3e182c355dbc0798345f1ea8e5bc7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/locationtech/geomesa/pulls/434/commits","review_comments_url":"https://api.github.com/repos/locationtech/geomesa/pulls/434/comments","review_comment_url":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/{number}","comments_url":"https://api.github.com/repos/locationtech/geomesa/issues/434/comments","statuses_url":"https://api.github.com/repos/locationtech/geomesa/statuses/15a9e805caa65ccabc5fbc08ab17e463d6cab01f","head":{"label":"ccri:fcr_raster_ingest_scalding","ref":"fcr_raster_ingest_scalding","sha":"15a9e805caa65ccabc5fbc08ab17e463d6cab01f","user":{"login":"ccri","id":1089783,"avatar_url":"https://avatars.githubusercontent.com/u/1089783?v=3","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://avatars.githubusercontent.com/u/1089783?v=3","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":"","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}","created_at":"2014-02-15T15:39:50Z","updated_at":"2014-06-24T19:42:53Z","pushed_at":"2015-01-16T20:10:57Z","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":null,"size":6941,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"locationtech:f_wcs_4","ref":"f_wcs_4","sha":"09ada6eb97e84c43cb0539496a46ad12f1964051","user":{"login":"locationtech","id":1991411,"avatar_url":"https://avatars.githubusercontent.com/u/1991411?v=3","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://avatars.githubusercontent.com/u/1991411?v=3","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":"","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}","created_at":"2013-09-30T20:13:46Z","updated_at":"2015-01-19T16:08:08Z","pushed_at":"2015-01-19T16:08:08Z","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":null,"size":14579,"stargazers_count":43,"watchers_count":43,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":5,"forks":31,"open_issues":5,"watchers":43,"default_branch":"accumulo1.5.x/1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/434"},"html":{"href":"https://github.com/locationtech/geomesa/pull/434"},"issue":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/434"},"comments":{"href":"https://api.github.com/repos/locationtech/geomesa/issues/434/comments"},"review_comments":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/434/comments"},"review_comment":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/locationtech/geomesa/pulls/434/commits"},"statuses":{"href":"https://api.github.com/repos/locationtech/geomesa/statuses/15a9e805caa65ccabc5fbc08ab17e463d6cab01f"}}}}