<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/501#discussion_r44869548">geometry-builder.cpp</a>:</p>
<pre style='color:#555'>> @@ -88,40 +127,51 @@ struct polygondata_comparearea {
>  
>  } // anonymous namespace
>  
> +
> +geometry_builder::wkt_t::wkt_t(const geos::geom::Geometry *g)
> +: wkt_t(g, g->getArea())
> +{}
> +
> +geometry_builder::wkt_t::wkt_t(const geos::geom::Geometry *g, double a)
> +: geom(geos::io::WKTWriter().write(g)), area(a)
> +{}
> +
> +geom_ptr geometry_builder::create_simple_poly(GeometryFactory &gf,
> +                                              std::unique_ptr<CoordinateSequence> coords) const
</pre>
<p>should this be a CoordinateSequence *coords, or are we taking ownership of it?</p>

<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/501/files#r44869548">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7obfTX-4FRT4V6EWci-jJL2mRFc7ks5pGEqlgaJpZM4GiXOs.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/501/files#r44869548"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>