[Tile-serving] [osm2pgsql] Cleanup geometry-builder (#501)

Sarah Hoffmann notifications at github.com
Sun Nov 15 09:50:54 UTC 2015


> @@ -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

It's taking ownership (consumed by geos in line 142).

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/501/files#r44869660
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151115/7def64e6/attachment.html>


More information about the Tile-serving mailing list