[Tile-serving] [osm2pgsql] Replace pthread and boost::thread with std::async (#498)

Paul Norman notifications at github.com
Wed Nov 11 09:50:05 UTC 2015


[a comment in output-pgsql.cpp](https://github.com/openstreetmap/osm2pgsql/blob/master/output-pgsql.cpp#L59-L70) discusses WKB, but for table_t::write_node a WKT is constructed by hand with boost::format so the comment might just be wrong. Something similar is done for ways.

I do recall issues with locale stuff not being thread-safe in Geos coming up previously, but can't find a reference. If this the issue, then it might be reproducible on linux by changing the locale to non-C before starting osm2pgsql.

There's a difference between WKB as text, EWKB as text, WKB, and EWKB, and I'm not sure which we'd want to send with either COPY or INSERT

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/498#issuecomment-155718559
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151111/f5fe2452/attachment-0001.html>


More information about the Tile-serving mailing list