{"action":"created","issue":{"url":"https://api.github.com/repos/geotools/geotools/issues/855","labels_url":"https://api.github.com/repos/geotools/geotools/issues/855/labels{/name}","comments_url":"https://api.github.com/repos/geotools/geotools/issues/855/comments","events_url":"https://api.github.com/repos/geotools/geotools/issues/855/events","html_url":"https://github.com/geotools/geotools/pull/855","id":79430342,"number":855,"title":"Return empty bounds on empty shapefiles","user":{"login":"HendrikPeilke","id":4234660,"avatar_url":"https://avatars.githubusercontent.com/u/4234660?v=3","gravatar_id":"","url":"https://api.github.com/users/HendrikPeilke","html_url":"https://github.com/HendrikPeilke","followers_url":"https://api.github.com/users/HendrikPeilke/followers","following_url":"https://api.github.com/users/HendrikPeilke/following{/other_user}","gists_url":"https://api.github.com/users/HendrikPeilke/gists{/gist_id}","starred_url":"https://api.github.com/users/HendrikPeilke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HendrikPeilke/subscriptions","organizations_url":"https://api.github.com/users/HendrikPeilke/orgs","repos_url":"https://api.github.com/users/HendrikPeilke/repos","events_url":"https://api.github.com/users/HendrikPeilke/events{/privacy}","received_events_url":"https://api.github.com/users/HendrikPeilke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-22T12:06:57Z","updated_at":"2015-08-15T15:32:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/geotools/geotools/pulls/855","html_url":"https://github.com/geotools/geotools/pull/855","diff_url":"https://github.com/geotools/geotools/pull/855.diff","patch_url":"https://github.com/geotools/geotools/pull/855.patch"},"body":"As talked about in the mailing list (topic: bounds of empty shape file), this makes the shapefile datastore return empty bounds on a shapefile without data instead of returning the bounds stated in the header (like [0:0,0:0]). This makes it easier to calculate the bounds of a whole map by using globalBounds.expandToInclude(layerBounds), where the special case of no features inside a shapefile layer had to be handled to get the correct bounds.\r\n\r\nThe pull request includes the fix, a test and updated documentation."},"comment":{"url":"https://api.github.com/repos/geotools/geotools/issues/comments/131393999","html_url":"https://github.com/geotools/geotools/pull/855#issuecomment-131393999","issue_url":"https://api.github.com/repos/geotools/geotools/issues/855","id":131393999,"user":{"login":"aaime","id":325433,"avatar_url":"https://avatars.githubusercontent.com/u/325433?v=3","gravatar_id":"","url":"https://api.github.com/users/aaime","html_url":"https://github.com/aaime","followers_url":"https://api.github.com/users/aaime/followers","following_url":"https://api.github.com/users/aaime/following{/other_user}","gists_url":"https://api.github.com/users/aaime/gists{/gist_id}","starred_url":"https://api.github.com/users/aaime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaime/subscriptions","organizations_url":"https://api.github.com/users/aaime/orgs","repos_url":"https://api.github.com/users/aaime/repos","events_url":"https://api.github.com/users/aaime/events{/privacy}","received_events_url":"https://api.github.com/users/aaime/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T15:32:10Z","updated_at":"2015-08-15T15:32:10Z","body":"Fixed the build issue in GeoServer... then it took me 2 hours to untangle the history of this messy pull request in a single commit, and fix some coding convention and header issues. Replaced by https://github.com/geotools/geotools/pull/941"}}