[Tile-serving] [osm2pgsql] Add area reprojection facility (#454)

Paul Norman notifications at github.com
Sat Oct 3 00:15:20 UTC 2015


> +    std::unique_ptr<pg::tempdb> db;
> +
> +    try {
> +        db.reset(new pg::tempdb);
> +    } catch (const std::exception &e) {
> +        std::cerr << "Unable to setup database: " << e.what() << "\n";
> +        exit(77);
> +    }
> +
> +    std::shared_ptr<middle_pgsql_t> mid_pgsql(new middle_pgsql_t());
> +    options_t options;
> +    options.database_options = db->database_options;
> +    options.num_procs = 1;
> +    options.style = "default.style";
> +    options.prefix = "osm2pgsql_test";
> +    if (latlon) options.projection.reset(new reprojection(PROJ_LATLONG));

These should also be [1TBS style](https://github.com/openstreetmap/osm2pgsql/blob/master/CONTRIBUTING.md#code-style)

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


More information about the Tile-serving mailing list