[Tile-serving] [openstreetmap/osm2pgsql] Add option for cutom OSM API server in replication script (#1568)
Justin Bronn
notifications at github.com
Sat Sep 4 23:27:46 UTC 2021
Let me expand further and respond further to specific issues raised by @lonvia:
> It does add yet another command line option and the number of users for which this will be useful is very, very small.
> Many small PRs of this kind are how you end up with the [number of options in bold face](https://github.com/openstreetmap/osm2pgsql/blob/8ecae57db2c5340cd67992a0ca9f99534cf72ede/README.md#usage).
I'm not patching the `osm2pgsql` command but the `osm2pgsql-replication init` *subcommand* -- a script just added [April 7, 2021 in 1.4.2](https://github.com/openstreetmap/osm2pgsql/releases/tag/1.4.2) and automates a niche operations process for replicating tile databases. No major Linux distributions package `osm2pgsql-replication` yet.¹ In fact, I have a hunch that more users run custom API instances than those with custom planet replication endpoints, a feature the `--server` option already supports.² Thus, I suspect the existing user base for `osm2pgsql-replication` is already very, very small.
Moreover, the [OSM Wiki itself lists the API URI as `api.openstreetmap.org`](https://wiki.openstreetmap.org/wiki/API_v0.6#URL_.2B_authentication) and `masters.api.devs.openstreetmap.org` for development usage. This clearly demonstrates that multiple public API URLs other than `www.openstreetmap.org` is reality and not a hypothetical.³
If there there are further improvements that can be resolved technically here (e.g., I noticed I neglected to update the docstring) then I'd like to continue as a new contributor. However, I can't resolve an objection based on a belief that *this* particular feature starts the nebulous "slippery slope" of feature creep and unreasonable maintenance burden for this project. If so, I'll close out so we can all focus our time on more productive efforts.
¹ Ubuntu's latest is [1.4.1](https://launchpad.net/ubuntu/+source/osm2pgsql) while Fedora 36 has 1.5.1 available, they haven't updated their [`osm2pgsql.spec`](https://src.fedoraproject.org/rpms/osm2pgsql/blob/main/f/osm2pgsql.spec) to include `osm2pgsql-replication` yet.
² Unlike the dedicated projects for the [Rails website](https://github.com/openstreetmap/openstreetmap-website) or [CGImap](https://github.com/openstreetmap/cgimap), the only "implementation" of a planet server I know of has to be assembled manually by grokking [Chef configuration](https://github.com/openstreetmap/chef/tree/master/cookbooks/planet) and [database tools](https://github.com/openstreetmap/osmdbt).
³ *See also* OSM's Apache [backend](https://github.com/openstreetmap/chef/blob/master/cookbooks/web/templates/default/apache.backend.erb#L8) and [frontend](https://github.com/openstreetmap/chef/blob/master/cookbooks/web/templates/default/apache.frontend.erb#L8) server configurations.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1568#issuecomment-913054149
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210904/19086d69/attachment.htm>
More information about the Tile-serving
mailing list