{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/ngageoint/six-library/pulls/15","id":43694398,"html_url":"https://github.com/ngageoint/six-library/pull/15","diff_url":"https://github.com/ngageoint/six-library/pull/15.diff","patch_url":"https://github.com/ngageoint/six-library/pull/15.patch","issue_url":"https://api.github.com/repos/ngageoint/six-library/issues/15","number":15,"state":"open","locked":false,"title":"Add SIDD legend support","user":{"login":"asylvest","id":11707082,"avatar_url":"https://avatars.githubusercontent.com/u/11707082?v=3","gravatar_id":"","url":"https://api.github.com/users/asylvest","html_url":"https://github.com/asylvest","followers_url":"https://api.github.com/users/asylvest/followers","following_url":"https://api.github.com/users/asylvest/following{/other_user}","gists_url":"https://api.github.com/users/asylvest/gists{/gist_id}","starred_url":"https://api.github.com/users/asylvest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asylvest/subscriptions","organizations_url":"https://api.github.com/users/asylvest/orgs","repos_url":"https://api.github.com/users/asylvest/repos","events_url":"https://api.github.com/users/asylvest/events{/privacy}","received_events_url":"https://api.github.com/users/asylvest/received_events","type":"User","site_admin":false},"body":"Adding support for saving off legends with a SIDD per section 2.4.3 of SIDD Volume 2.  Currently only mono 8 bit and indexed RGB LUTs are supported as these are the common cases.  SIX auto-populates as much of the image subheader, including IDLVL and IALVL, for you that it can.  It makes some simplifying assumptions which mainly amount to...\r\na. For a given product, you always want exactly 0 or 1 legends\r\nb. For a product that is split into multiple NITF image segments (presumably due to file format limitations), you always want the legend to attach to the first of these image segments\r\n\r\nIt does support adding a legend with each product, so you can have a SIDD with as many legends as you have SIDD XML DESs.\r\n\r\nAdded test_create_sidd_legend to test all this.\r\n\r\n@mbojrab @chvink ","created_at":"2015-08-29T13:12:21Z","updated_at":"2015-08-29T13:12:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ngageoint/six-library/pulls/15/commits","review_comments_url":"https://api.github.com/repos/ngageoint/six-library/pulls/15/comments","review_comment_url":"https://api.github.com/repos/ngageoint/six-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ngageoint/six-library/issues/15/comments","statuses_url":"https://api.github.com/repos/ngageoint/six-library/statuses/72e981e2e3cb72eeb56cd0506bb16c18200e8d98","head":{"label":"ngageoint:legend_support","ref":"legend_support","sha":"72e981e2e3cb72eeb56cd0506bb16c18200e8d98","user":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"repo":{"id":39220791,"name":"six-library","full_name":"ngageoint/six-library","owner":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ngageoint/six-library","description":"Sensor Independent XML Library","fork":false,"url":"https://api.github.com/repos/ngageoint/six-library","forks_url":"https://api.github.com/repos/ngageoint/six-library/forks","keys_url":"https://api.github.com/repos/ngageoint/six-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngageoint/six-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngageoint/six-library/teams","hooks_url":"https://api.github.com/repos/ngageoint/six-library/hooks","issue_events_url":"https://api.github.com/repos/ngageoint/six-library/issues/events{/number}","events_url":"https://api.github.com/repos/ngageoint/six-library/events","assignees_url":"https://api.github.com/repos/ngageoint/six-library/assignees{/user}","branches_url":"https://api.github.com/repos/ngageoint/six-library/branches{/branch}","tags_url":"https://api.github.com/repos/ngageoint/six-library/tags","blobs_url":"https://api.github.com/repos/ngageoint/six-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngageoint/six-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngageoint/six-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngageoint/six-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngageoint/six-library/statuses/{sha}","languages_url":"https://api.github.com/repos/ngageoint/six-library/languages","stargazers_url":"https://api.github.com/repos/ngageoint/six-library/stargazers","contributors_url":"https://api.github.com/repos/ngageoint/six-library/contributors","subscribers_url":"https://api.github.com/repos/ngageoint/six-library/subscribers","subscription_url":"https://api.github.com/repos/ngageoint/six-library/subscription","commits_url":"https://api.github.com/repos/ngageoint/six-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngageoint/six-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngageoint/six-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngageoint/six-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngageoint/six-library/contents/{+path}","compare_url":"https://api.github.com/repos/ngageoint/six-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngageoint/six-library/merges","archive_url":"https://api.github.com/repos/ngageoint/six-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngageoint/six-library/downloads","issues_url":"https://api.github.com/repos/ngageoint/six-library/issues{/number}","pulls_url":"https://api.github.com/repos/ngageoint/six-library/pulls{/number}","milestones_url":"https://api.github.com/repos/ngageoint/six-library/milestones{/number}","notifications_url":"https://api.github.com/repos/ngageoint/six-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngageoint/six-library/labels{/name}","releases_url":"https://api.github.com/repos/ngageoint/six-library/releases{/id}","created_at":"2015-07-16T21:13:43Z","updated_at":"2015-08-05T14:57:26Z","pushed_at":"2015-08-29T13:09:13Z","git_url":"git://github.com/ngageoint/six-library.git","ssh_url":"git@github.com:ngageoint/six-library.git","clone_url":"https://github.com/ngageoint/six-library.git","svn_url":"https://github.com/ngageoint/six-library","homepage":"","size":54755,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"ngageoint:master","ref":"master","sha":"8a800df5a95bd08b6f4ebf9aa7ee19913ae5a4ec","user":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"repo":{"id":39220791,"name":"six-library","full_name":"ngageoint/six-library","owner":{"login":"ngageoint","id":7175944,"avatar_url":"https://avatars.githubusercontent.com/u/7175944?v=3","gravatar_id":"","url":"https://api.github.com/users/ngageoint","html_url":"https://github.com/ngageoint","followers_url":"https://api.github.com/users/ngageoint/followers","following_url":"https://api.github.com/users/ngageoint/following{/other_user}","gists_url":"https://api.github.com/users/ngageoint/gists{/gist_id}","starred_url":"https://api.github.com/users/ngageoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngageoint/subscriptions","organizations_url":"https://api.github.com/users/ngageoint/orgs","repos_url":"https://api.github.com/users/ngageoint/repos","events_url":"https://api.github.com/users/ngageoint/events{/privacy}","received_events_url":"https://api.github.com/users/ngageoint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ngageoint/six-library","description":"Sensor Independent XML Library","fork":false,"url":"https://api.github.com/repos/ngageoint/six-library","forks_url":"https://api.github.com/repos/ngageoint/six-library/forks","keys_url":"https://api.github.com/repos/ngageoint/six-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngageoint/six-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngageoint/six-library/teams","hooks_url":"https://api.github.com/repos/ngageoint/six-library/hooks","issue_events_url":"https://api.github.com/repos/ngageoint/six-library/issues/events{/number}","events_url":"https://api.github.com/repos/ngageoint/six-library/events","assignees_url":"https://api.github.com/repos/ngageoint/six-library/assignees{/user}","branches_url":"https://api.github.com/repos/ngageoint/six-library/branches{/branch}","tags_url":"https://api.github.com/repos/ngageoint/six-library/tags","blobs_url":"https://api.github.com/repos/ngageoint/six-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngageoint/six-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngageoint/six-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngageoint/six-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngageoint/six-library/statuses/{sha}","languages_url":"https://api.github.com/repos/ngageoint/six-library/languages","stargazers_url":"https://api.github.com/repos/ngageoint/six-library/stargazers","contributors_url":"https://api.github.com/repos/ngageoint/six-library/contributors","subscribers_url":"https://api.github.com/repos/ngageoint/six-library/subscribers","subscription_url":"https://api.github.com/repos/ngageoint/six-library/subscription","commits_url":"https://api.github.com/repos/ngageoint/six-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngageoint/six-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngageoint/six-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngageoint/six-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngageoint/six-library/contents/{+path}","compare_url":"https://api.github.com/repos/ngageoint/six-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngageoint/six-library/merges","archive_url":"https://api.github.com/repos/ngageoint/six-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngageoint/six-library/downloads","issues_url":"https://api.github.com/repos/ngageoint/six-library/issues{/number}","pulls_url":"https://api.github.com/repos/ngageoint/six-library/pulls{/number}","milestones_url":"https://api.github.com/repos/ngageoint/six-library/milestones{/number}","notifications_url":"https://api.github.com/repos/ngageoint/six-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngageoint/six-library/labels{/name}","releases_url":"https://api.github.com/repos/ngageoint/six-library/releases{/id}","created_at":"2015-07-16T21:13:43Z","updated_at":"2015-08-05T14:57:26Z","pushed_at":"2015-08-29T13:09:13Z","git_url":"git://github.com/ngageoint/six-library.git","ssh_url":"git@github.com:ngageoint/six-library.git","clone_url":"https://github.com/ngageoint/six-library.git","svn_url":"https://github.com/ngageoint/six-library","homepage":"","size":54755,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ngageoint/six-library/pulls/15"},"html":{"href":"https://github.com/ngageoint/six-library/pull/15"},"issue":{"href":"https://api.github.com/repos/ngageoint/six-library/issues/15"},"comments":{"href":"https://api.github.com/repos/ngageoint/six-library/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/ngageoint/six-library/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/ngageoint/six-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ngageoint/six-library/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/ngageoint/six-library/statuses/72e981e2e3cb72eeb56cd0506bb16c18200e8d98"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":17,"additions":964,"deletions":418,"changed_files":13}}