diff --git a/src/command-line-parser.cpp b/src/command-line-parser.cpp index b5b42e109..ed2fdfb6f 100644 --- a/src/command-line-parser.cpp +++ b/src/command-line-parser.cpp @@ -183,10 +183,6 @@ void check_options_output_null(CLI::App const &app) void check_options_output_pgsql(CLI::App const &app, options_t *options) { - log_warn("The pgsql (default) output is deprecated. For details see " - "https://osm2pgsql.org/doc/" - "faq.html#the-pgsql-output-is-deprecated-what-does-that-mean"); - if (app.count("--latlong") + app.count("--merc") + app.count("--proj") > 1) { throw std::runtime_error{"You can only use one of --latlong, -l, " diff --git a/src/output-pgsql.cpp b/src/output-pgsql.cpp index 896683636..67e92d5d1 100644 --- a/src/output-pgsql.cpp +++ b/src/output-pgsql.cpp @@ -442,6 +442,10 @@ output_pgsql_t::output_pgsql_t(std::shared_ptr const &mid, m_rels_buffer(1024, osmium::memory::Buffer::auto_grow::yes), m_area_buffer(1024, osmium::memory::Buffer::auto_grow::yes) { + log_warn("The pgsql (default) output is deprecated. For details see " + "https://osm2pgsql.org/doc/" + "faq.html#the-pgsql-output-is-deprecated-what-does-that-mean"); + m_expire_config.full_area_limit = get_options()->expire_tiles_max_bbox; if (get_options()->expire_tiles_max_bbox > 0.0) { m_expire_config.mode = expire_mode::hybrid;