<p dir="auto">To calculate the "real" area of a (multi)polygon. This is still an approximation. Results are similar to what ST_Area(geography, false) calculates in PostGIS. Accessible from Lua.</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/2019'>https://github.com/openstreetmap/osm2pgsql/pull/2019</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/commits/bc3819514660fc9911453dbe4010e371f738d702" class="commit-link">bc38195</a> Add spherical_area() function</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files">6 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files#diff-671a7120b35283e10c9f32cf6cae7939f7d53c5623081c1066d54d4df7c49040">flex-config/geometries.lua</a>
(11)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files#diff-db26d1cd0f936a06d679e8933d356e71fe75a5aacadaf80aa157c8756e3f42ac">src/flex-lua-geom.cpp</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files#diff-8e516e3a075df67c9ff04b84cc4c11486e7811b1b1326eb1f6ef93867e1aa5fa">src/geom-functions.cpp</a>
(38)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files#diff-c4360a478d6b2f8a59148d27de7598d79579ac8e68f4405dc5b0f5be7c6a765a">src/geom-functions.hpp</a>
(11)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files#diff-3f4928b8fe24934241b34fdf29778a924b05a475b25a931eebab86fad980ef77">tests/test-geom-multipolygons.cpp</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2019/files#diff-a945dd568dfcfcb10e512dd5d86c1217825076864ee22b0633256ef3b872eac1">tests/test-geom-polygons.cpp</a>
(7)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/2019.patch'>https://github.com/openstreetmap/osm2pgsql/pull/2019.patch</a></li>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/2019.diff'>https://github.com/openstreetmap/osm2pgsql/pull/2019.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/2019">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353VSJBP2YWS2SJNTB4DXSUCIDANCNFSM6AAAAAA24PWRM4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353QZ4J4VLYJPF2PEXVLXSUCIDA5CNFSM6AAAAAA24PWRM6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGZ3H53U.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/osm2pgsql/pull/2019</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/2019",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/2019",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>