{"action":"created","issue":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/68","labels_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/68/comments","events_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/68/events","html_url":"https://github.com/AtlasOfLivingAustralia/biocache-store/issues/68","id":99588187,"number":68,"title":"Processing Country values doesn't match State processing","user":{"login":"m-hope","id":8856025,"avatar_url":"https://avatars.githubusercontent.com/u/8856025?v=3","gravatar_id":"","url":"https://api.github.com/users/m-hope","html_url":"https://github.com/m-hope","followers_url":"https://api.github.com/users/m-hope/followers","following_url":"https://api.github.com/users/m-hope/following{/other_user}","gists_url":"https://api.github.com/users/m-hope/gists{/gist_id}","starred_url":"https://api.github.com/users/m-hope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-hope/subscriptions","organizations_url":"https://api.github.com/users/m-hope/orgs","repos_url":"https://api.github.com/users/m-hope/repos","events_url":"https://api.github.com/users/m-hope/events{/privacy}","received_events_url":"https://api.github.com/users/m-hope/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"adam-collins","id":8031500,"avatar_url":"https://avatars.githubusercontent.com/u/8031500?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-collins","html_url":"https://github.com/adam-collins","followers_url":"https://api.github.com/users/adam-collins/followers","following_url":"https://api.github.com/users/adam-collins/following{/other_user}","gists_url":"https://api.github.com/users/adam-collins/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-collins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-collins/subscriptions","organizations_url":"https://api.github.com/users/adam-collins/orgs","repos_url":"https://api.github.com/users/adam-collins/repos","events_url":"https://api.github.com/users/adam-collins/events{/privacy}","received_events_url":"https://api.github.com/users/adam-collins/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/milestones/1","html_url":"https://github.com/AtlasOfLivingAustralia/biocache-store/milestones/Sprint%203","labels_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/milestones/1/labels","id":1261761,"number":1,"title":"Sprint 3","description":"","creator":{"login":"nickdos","id":532845,"avatar_url":"https://avatars.githubusercontent.com/u/532845?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdos","html_url":"https://github.com/nickdos","followers_url":"https://api.github.com/users/nickdos/followers","following_url":"https://api.github.com/users/nickdos/following{/other_user}","gists_url":"https://api.github.com/users/nickdos/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdos/subscriptions","organizations_url":"https://api.github.com/users/nickdos/orgs","repos_url":"https://api.github.com/users/nickdos/repos","events_url":"https://api.github.com/users/nickdos/events{/privacy}","received_events_url":"https://api.github.com/users/nickdos/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":0,"state":"open","created_at":"2015-08-19T01:39:28Z","updated_at":"2015-09-03T00:01:55Z","due_on":"2015-09-17T14:00:00Z","closed_at":null},"comments":5,"created_at":"2015-08-07T06:20:50Z","updated_at":"2015-09-03T02:01:52Z","closed_at":null,"body":"I discovered this when I was tracking down some issues with APPD.\r\n\r\nThe issue is that we process State/Territory boundaries using the 'State plus coastal waters' layer, but the country boundaries layer for processing Country seems to be land mass only.  This produces a significant number of records (around 880k in the ALA) where we have a processed value for State but not for Country... you can see the affected records here:\r\n\r\n![ala - bad country value](https://cloud.githubusercontent.com/assets/8856025/9129714/95f26dc2-3d1e-11e5-83a0-42b8eb03e074.JPG)\r\n\r\nNot sure if we have a 'countries with territorial waters' layer, but that might be more appropriate to process countries against.  A short term fix alternative might be to add something to the processing so that any record that is identified in a Australian State overrides the processed country value as 'Australia'."},"comment":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/comments/137300904","html_url":"https://github.com/AtlasOfLivingAustralia/biocache-store/issues/68#issuecomment-137300904","issue_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/68","id":137300904,"user":{"login":"adam-collins","id":8031500,"avatar_url":"https://avatars.githubusercontent.com/u/8031500?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-collins","html_url":"https://github.com/adam-collins","followers_url":"https://api.github.com/users/adam-collins/followers","following_url":"https://api.github.com/users/adam-collins/following{/other_user}","gists_url":"https://api.github.com/users/adam-collins/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-collins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-collins/subscriptions","organizations_url":"https://api.github.com/users/adam-collins/orgs","repos_url":"https://api.github.com/users/adam-collins/repos","events_url":"https://api.github.com/users/adam-collins/events{/privacy}","received_events_url":"https://api.github.com/users/adam-collins/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T02:01:52Z","updated_at":"2015-09-03T02:01:52Z","body":"No intention of changing the layers used in processing for now. Might need to revisit if we get a countries ocean boundaries which would reverse the issue; more in Australia than in States.\r\n\r\nI agree that the current use of the state facet can be misleading as it does not indicate in the name that it contains dwc values as well as intersections with a layer having a marine buffer. Moving to using facets that are based on a single layer mean you get what the layer says it is. I also like to add fq=geospatial_kosher:true to anything spatial to remove some of the known issues."}}