{"action":"opened","number":454,"pull_request":{"url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/454","id":46693993,"html_url":"https://github.com/openstreetmap/osm2pgsql/pull/454","diff_url":"https://github.com/openstreetmap/osm2pgsql/pull/454.diff","patch_url":"https://github.com/openstreetmap/osm2pgsql/pull/454.patch","issue_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/454","number":454,"state":"open","locked":false,"title":"Add area reprojection facility","user":{"login":"woodpeck","id":705471,"avatar_url":"https://avatars.githubusercontent.com/u/705471?v=3","gravatar_id":"","url":"https://api.github.com/users/woodpeck","html_url":"https://github.com/woodpeck","followers_url":"https://api.github.com/users/woodpeck/followers","following_url":"https://api.github.com/users/woodpeck/following{/other_user}","gists_url":"https://api.github.com/users/woodpeck/gists{/gist_id}","starred_url":"https://api.github.com/users/woodpeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodpeck/subscriptions","organizations_url":"https://api.github.com/users/woodpeck/orgs","repos_url":"https://api.github.com/users/woodpeck/repos","events_url":"https://api.github.com/users/woodpeck/events{/privacy}","received_events_url":"https://api.github.com/users/woodpeck/received_events","type":"User","site_admin":false},"body":"This adds a command line option --reproject-area which is useful for those who do not import data in EPSG:3857, but a different projection, but who still want to use one of the open styles available for standard EPSG:3857 databases.\r\n\r\nThese styles will often rely on the way_area column in the polygon table for rendering decisions (e.g. draw larger lakes on smaller zoom levels, and only bring in smaller lakes later). Because way_area was, until now, computed in target projection units, styles written for EPSG:3857 would not work with a database imported, say, with the -l (ell) flag.\r\n\r\nYou can now use the --reproject-area flag which projects every polygon to EPSG:3857 temporarily to compute its way_area. \r\n\r\nThis patch should not negatively affect the standard use case, but it will take more time on import if --reproject-area is used together with -l (ell) or -E.\r\n\r\nA simple test is provided, covering the -l (ell) use case but not more exotic projections that should, in theory, also work, provided that the proj library is able to project from the target projection to EPSG:3857 which is not always guaranteed.","created_at":"2015-10-02T23:57:19Z","updated_at":"2015-10-02T23:57:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/454/commits","review_comments_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/454/comments","review_comment_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/454/comments","statuses_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/statuses/b123d6011448764fd5004bdea17c074f814faea8","head":{"label":"woodpeck:projected_area","ref":"projected_area","sha":"b123d6011448764fd5004bdea17c074f814faea8","user":{"login":"woodpeck","id":705471,"avatar_url":"https://avatars.githubusercontent.com/u/705471?v=3","gravatar_id":"","url":"https://api.github.com/users/woodpeck","html_url":"https://github.com/woodpeck","followers_url":"https://api.github.com/users/woodpeck/followers","following_url":"https://api.github.com/users/woodpeck/following{/other_user}","gists_url":"https://api.github.com/users/woodpeck/gists{/gist_id}","starred_url":"https://api.github.com/users/woodpeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodpeck/subscriptions","organizations_url":"https://api.github.com/users/woodpeck/orgs","repos_url":"https://api.github.com/users/woodpeck/repos","events_url":"https://api.github.com/users/woodpeck/events{/privacy}","received_events_url":"https://api.github.com/users/woodpeck/received_events","type":"User","site_admin":false},"repo":{"id":40587514,"name":"osm2pgsql","full_name":"woodpeck/osm2pgsql","owner":{"login":"woodpeck","id":705471,"avatar_url":"https://avatars.githubusercontent.com/u/705471?v=3","gravatar_id":"","url":"https://api.github.com/users/woodpeck","html_url":"https://github.com/woodpeck","followers_url":"https://api.github.com/users/woodpeck/followers","following_url":"https://api.github.com/users/woodpeck/following{/other_user}","gists_url":"https://api.github.com/users/woodpeck/gists{/gist_id}","starred_url":"https://api.github.com/users/woodpeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodpeck/subscriptions","organizations_url":"https://api.github.com/users/woodpeck/orgs","repos_url":"https://api.github.com/users/woodpeck/repos","events_url":"https://api.github.com/users/woodpeck/events{/privacy}","received_events_url":"https://api.github.com/users/woodpeck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/woodpeck/osm2pgsql","description":"OpenStreetMap data to PostgreSQL converter","fork":true,"url":"https://api.github.com/repos/woodpeck/osm2pgsql","forks_url":"https://api.github.com/repos/woodpeck/osm2pgsql/forks","keys_url":"https://api.github.com/repos/woodpeck/osm2pgsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woodpeck/osm2pgsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woodpeck/osm2pgsql/teams","hooks_url":"https://api.github.com/repos/woodpeck/osm2pgsql/hooks","issue_events_url":"https://api.github.com/repos/woodpeck/osm2pgsql/issues/events{/number}","events_url":"https://api.github.com/repos/woodpeck/osm2pgsql/events","assignees_url":"https://api.github.com/repos/woodpeck/osm2pgsql/assignees{/user}","branches_url":"https://api.github.com/repos/woodpeck/osm2pgsql/branches{/branch}","tags_url":"https://api.github.com/repos/woodpeck/osm2pgsql/tags","blobs_url":"https://api.github.com/repos/woodpeck/osm2pgsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woodpeck/osm2pgsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woodpeck/osm2pgsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/woodpeck/osm2pgsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woodpeck/osm2pgsql/statuses/{sha}","languages_url":"https://api.github.com/repos/woodpeck/osm2pgsql/languages","stargazers_url":"https://api.github.com/repos/woodpeck/osm2pgsql/stargazers","contributors_url":"https://api.github.com/repos/woodpeck/osm2pgsql/contributors","subscribers_url":"https://api.github.com/repos/woodpeck/osm2pgsql/subscribers","subscription_url":"https://api.github.com/repos/woodpeck/osm2pgsql/subscription","commits_url":"https://api.github.com/repos/woodpeck/osm2pgsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/woodpeck/osm2pgsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/woodpeck/osm2pgsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/woodpeck/osm2pgsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/woodpeck/osm2pgsql/contents/{+path}","compare_url":"https://api.github.com/repos/woodpeck/osm2pgsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woodpeck/osm2pgsql/merges","archive_url":"https://api.github.com/repos/woodpeck/osm2pgsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woodpeck/osm2pgsql/downloads","issues_url":"https://api.github.com/repos/woodpeck/osm2pgsql/issues{/number}","pulls_url":"https://api.github.com/repos/woodpeck/osm2pgsql/pulls{/number}","milestones_url":"https://api.github.com/repos/woodpeck/osm2pgsql/milestones{/number}","notifications_url":"https://api.github.com/repos/woodpeck/osm2pgsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woodpeck/osm2pgsql/labels{/name}","releases_url":"https://api.github.com/repos/woodpeck/osm2pgsql/releases{/id}","created_at":"2015-08-12T07:50:40Z","updated_at":"2015-08-12T07:50:41Z","pushed_at":"2015-10-02T23:44:49Z","git_url":"git://github.com/woodpeck/osm2pgsql.git","ssh_url":"git@github.com:woodpeck/osm2pgsql.git","clone_url":"https://github.com/woodpeck/osm2pgsql.git","svn_url":"https://github.com/woodpeck/osm2pgsql","homepage":"","size":32811,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openstreetmap:master","ref":"master","sha":"01dd482f17ea4d130100810ead7111a479714e83","user":{"login":"openstreetmap","id":261431,"avatar_url":"https://avatars.githubusercontent.com/u/261431?v=3","gravatar_id":"","url":"https://api.github.com/users/openstreetmap","html_url":"https://github.com/openstreetmap","followers_url":"https://api.github.com/users/openstreetmap/followers","following_url":"https://api.github.com/users/openstreetmap/following{/other_user}","gists_url":"https://api.github.com/users/openstreetmap/gists{/gist_id}","starred_url":"https://api.github.com/users/openstreetmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstreetmap/subscriptions","organizations_url":"https://api.github.com/users/openstreetmap/orgs","repos_url":"https://api.github.com/users/openstreetmap/repos","events_url":"https://api.github.com/users/openstreetmap/events{/privacy}","received_events_url":"https://api.github.com/users/openstreetmap/received_events","type":"Organization","site_admin":false},"repo":{"id":641729,"name":"osm2pgsql","full_name":"openstreetmap/osm2pgsql","owner":{"login":"openstreetmap","id":261431,"avatar_url":"https://avatars.githubusercontent.com/u/261431?v=3","gravatar_id":"","url":"https://api.github.com/users/openstreetmap","html_url":"https://github.com/openstreetmap","followers_url":"https://api.github.com/users/openstreetmap/followers","following_url":"https://api.github.com/users/openstreetmap/following{/other_user}","gists_url":"https://api.github.com/users/openstreetmap/gists{/gist_id}","starred_url":"https://api.github.com/users/openstreetmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstreetmap/subscriptions","organizations_url":"https://api.github.com/users/openstreetmap/orgs","repos_url":"https://api.github.com/users/openstreetmap/repos","events_url":"https://api.github.com/users/openstreetmap/events{/privacy}","received_events_url":"https://api.github.com/users/openstreetmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstreetmap/osm2pgsql","description":"OpenStreetMap data to PostgreSQL converter","fork":false,"url":"https://api.github.com/repos/openstreetmap/osm2pgsql","forks_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/forks","keys_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/teams","hooks_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/hooks","issue_events_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/events{/number}","events_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/events","assignees_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/assignees{/user}","branches_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/branches{/branch}","tags_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/tags","blobs_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/statuses/{sha}","languages_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/languages","stargazers_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/stargazers","contributors_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/contributors","subscribers_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/subscribers","subscription_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/subscription","commits_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/contents/{+path}","compare_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/merges","archive_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/downloads","issues_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues{/number}","pulls_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls{/number}","milestones_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/milestones{/number}","notifications_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/labels{/name}","releases_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/releases{/id}","created_at":"2010-05-01T20:08:40Z","updated_at":"2015-09-30T18:42:14Z","pushed_at":"2015-09-29T00:01:46Z","git_url":"git://github.com/openstreetmap/osm2pgsql.git","ssh_url":"git@github.com:openstreetmap/osm2pgsql.git","clone_url":"https://github.com/openstreetmap/osm2pgsql.git","svn_url":"https://github.com/openstreetmap/osm2pgsql","homepage":"","size":35118,"stargazers_count":289,"watchers_count":289,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":80,"forks":149,"open_issues":80,"watchers":289,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/454"},"html":{"href":"https://github.com/openstreetmap/osm2pgsql/pull/454"},"issue":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/454"},"comments":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/454/comments"},"review_comments":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/454/comments"},"review_comment":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/454/commits"},"statuses":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/statuses/b123d6011448764fd5004bdea17c074f814faea8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":278,"deletions":12,"changed_files":10}}