[Tile-serving] [openstreetmap/osm2pgsql] Add properties from input file(s) to database (PR #1976)
Sarah Hoffmann
notifications at github.com
Mon Jun 19 15:02:08 UTC 2023
@lonvia commented on this pull request.
> @@ -113,6 +115,22 @@ static void store_properties(properties_t *properties, options_t const &options)
properties->store();
}
+static void store_data_properties(properties_t *properties,
+ file_info const &finfo)
+{
+ properties->set_string("last_timestamp", finfo.last_timestamp.to_iso());
Should we set this conditionally only if `last_timestamp != osmium::start_of_time()`. This would force the user to handle a case when a file comes without timestamps.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1976#pullrequestreview-1486418822
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1976/review/1486418822 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230619/21790017/attachment.htm>
More information about the Tile-serving
mailing list