{"action":"created","issue":{"url":"https://api.github.com/repos/mapnik/mapnik/issues/2902","labels_url":"https://api.github.com/repos/mapnik/mapnik/issues/2902/labels{/name}","comments_url":"https://api.github.com/repos/mapnik/mapnik/issues/2902/comments","events_url":"https://api.github.com/repos/mapnik/mapnik/issues/2902/events","html_url":"https://github.com/mapnik/mapnik/issues/2902","id":87208469,"number":2902,"title":"Incorrect raster-colorizer results when not using nearest neighbor raster-scaling","user":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapnik/mapnik/labels/mustfix","name":"mustfix","color":"e10c02"},{"url":"https://api.github.com/repos/mapnik/mapnik/labels/post3x","name":"post3x","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mapnik/mapnik/milestones/26","html_url":"https://github.com/mapnik/mapnik/milestones/Mapnik%203.1.0","labels_url":"https://api.github.com/repos/mapnik/mapnik/milestones/26/labels","id":1187837,"number":26,"title":"Mapnik 3.1.0","description":"","creator":{"login":"springmeyer","id":20300,"avatar_url":"https://avatars.githubusercontent.com/u/20300?v=3","gravatar_id":"","url":"https://api.github.com/users/springmeyer","html_url":"https://github.com/springmeyer","followers_url":"https://api.github.com/users/springmeyer/followers","following_url":"https://api.github.com/users/springmeyer/following{/other_user}","gists_url":"https://api.github.com/users/springmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/springmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springmeyer/subscriptions","organizations_url":"https://api.github.com/users/springmeyer/orgs","repos_url":"https://api.github.com/users/springmeyer/repos","events_url":"https://api.github.com/users/springmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/springmeyer/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":0,"state":"open","created_at":"2015-06-30T19:22:15Z","updated_at":"2015-10-07T21:10:45Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-06-11T04:38:22Z","updated_at":"2015-10-10T19:47:01Z","closed_at":null,"body":"Given:\r\n\r\n  - single raster band image with discrete values\r\n  - a raster `scaling` value != `near`\r\n  - a source raster that needs to be rescaled to fit the map bounds (basically this will always be the case)\r\n  - because the scaling is currently done before colorization this leads to incorrectly colorized pixels because scaling that is not `near` will create new pixel values.\r\n\r\nThis will have regressed during the work on https://github.com/mapnik/mapnik/issues/2491.\r\n\r\nRefs https://github.com/mapbox/tilemill/issues/2510"},"comment":{"url":"https://api.github.com/repos/mapnik/mapnik/issues/comments/147120181","html_url":"https://github.com/mapnik/mapnik/issues/2902#issuecomment-147120181","issue_url":"https://api.github.com/repos/mapnik/mapnik/issues/2902","id":147120181,"user":{"login":"talaj","id":1950911,"avatar_url":"https://avatars.githubusercontent.com/u/1950911?v=3","gravatar_id":"","url":"https://api.github.com/users/talaj","html_url":"https://github.com/talaj","followers_url":"https://api.github.com/users/talaj/followers","following_url":"https://api.github.com/users/talaj/following{/other_user}","gists_url":"https://api.github.com/users/talaj/gists{/gist_id}","starred_url":"https://api.github.com/users/talaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talaj/subscriptions","organizations_url":"https://api.github.com/users/talaj/orgs","repos_url":"https://api.github.com/users/talaj/repos","events_url":"https://api.github.com/users/talaj/events{/privacy}","received_events_url":"https://api.github.com/users/talaj/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T19:47:01Z","updated_at":"2015-10-10T19:47:01Z","body":"I'm wonder whether GDAL would be more suitable for warping/scaling rasters than AGG."}}