<p>Supersedes <a href="https://github.com/openstreetmap/osm2pgsql/pull/454" class="issue-link" title="Add area reprojection facility">#454</a> which is no longer mergable because of cmake and geometry-builder refactoring.</p>

<p><a href="https://github.com/woodpeck" class="user-mention">@woodpeck</a> could you check that it still works for you? I've done some minor cleanup especially wrt resource management but functionally it should be the same.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/osm2pgsql/pull/506'>https://github.com/openstreetmap/osm2pgsql/pull/506</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add area reprojection facility</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-0">geometry-builder.cpp</a>
    (79)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-1">geometry-builder.hpp</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-2">options.cpp</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-3">options.hpp</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-4">output-pgsql.cpp</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-5">reprojection.cpp</a>
    (28)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-6">reprojection.hpp</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-7">tests/CMakeLists.txt</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-8">tests/test-output-pgsql-area.cpp</a>
    (107)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/506/files#diff-9">tests/test_output_pgsql_area.osm</a>
    (55)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/506.patch'>https://github.com/openstreetmap/osm2pgsql/pull/506.patch</a></li>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/506.diff'>https://github.com/openstreetmap/osm2pgsql/pull/506.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/osm2pgsql/pull/506">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7tv2F6V7kw4xVEqanoMgkZ5OHT9Lks5pHJHBgaJpZM4Gkx5y.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/pull/506"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>