<p><b>@lonvia</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/971#discussion_r346531227">options.hpp</a>:</p>
<pre style='color:#555'>> std::shared_ptr<reprojection> projection; ///< SRS of projection
- bool append; ///< Append to existing data
- bool slim; ///< In slim mode
- int cache; ///< Memory usable for cache in MB
- boost::optional<std::string> tblsmain_index; ///< Pg Tablespace to store indexes on main tables (no default TABLESPACE)
- boost::optional<std::string> tblsslim_index; ///< Pg Tablespace to store indexes on slim tables (no default TABLESPACE)
- boost::optional<std::string> tblsmain_data; ///< Pg Tablespace to store main tables (no default TABLESPACE)
- boost::optional<std::string> tblsslim_data; ///< Pg Tablespace to store slim tables (no default TABLESPACE)
- std::string style; ///< style file to use
+ bool append = false; ///< Append to existing data
+ bool slim = false; ///< In slim mode
+ int cache = 800; ///< Memory usable for cache in MB
+ boost::optional<std::string> tblsmain_index{boost::none}; ///< Pg Tablespace to store indexes on main tables (no default TABLESPACE)
+ boost::optional<std::string> tblsslim_index{boost::none}; ///< Pg Tablespace to store indexes on slim tables (no default TABLESPACE)
+ boost::optional<std::string> tblsmain_data{boost::none}; ///< Pg Tablespace to store main tables (no default TABLESPACE)
+ boost::optional<std::string> tblsslim_data{boost::none}; ///< Pg Tablespace to store slim tables (no default TABLESPACE)
</pre>
<p>Please also adhere to the 80 column limit while you are changing stuff here (i.e. move comments above the members).</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/971#discussion_r346532739">options.cpp</a>:</p>
<pre style='color:#555'>> @@ -278,30 +278,14 @@ std::string database_options_t::conninfo() const
}
options_t::options_t()
-: prefix("planet_osm"),
- projection(reprojection::create_projection(PROJ_SPHERE_MERC)), append(false),
- slim(false), cache(800), tblsmain_index(boost::none),
- tblsslim_index(boost::none), tblsmain_data(boost::none),
- tblsslim_data(boost::none), style(DEFAULT_STYLE),
- expire_tiles_zoom(0), expire_tiles_zoom_min(0),
- expire_tiles_max_bbox(20000.0), expire_tiles_filename("dirty_tiles"),
- hstore_mode(HSTORE_NONE), enable_hstore_index(false), enable_multi(false),
- hstore_columns(), keep_coastlines(false), parallel_indexing(true),
+: projection(reprojection::create_projection(PROJ_SPHERE_MERC)),
#ifdef __amd64__
alloc_chunkwise(ALLOC_SPARSE | ALLOC_DENSE),
#else
alloc_chunkwise(ALLOC_SPARSE),
#endif
</pre>
<p>Want to get rid of the #ifdef in the middle of the constructor as well?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/971?email_source=notifications&email_token=AA6353SDPEFXIVK27AZWOI3QTWY7JA5CNFSM4JNC4WVKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLULKTY#pullrequestreview-317240655">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353QSWDJGCFCTQME5Y4LQTWY7JANCNFSM4JNC4WVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353Q3OXDO6CSFHG35EGTQTWY7JA5CNFSM4JNC4WVKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLULKTY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/971?email_source=notifications\u0026email_token=AA6353SDPEFXIVK27AZWOI3QTWY7JA5CNFSM4JNC4WVKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLULKTY#pullrequestreview-317240655",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/971?email_source=notifications\u0026email_token=AA6353SDPEFXIVK27AZWOI3QTWY7JA5CNFSM4JNC4WVKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLULKTY#pullrequestreview-317240655",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>