[openstreetmap/openstreetmap-website] Limits on number of tags and relation members (#1711)
mmd
notifications at github.com
Sat Jan 29 15:09:45 UTC 2022
I created the following patch https://github.com/mmd-osm/openstreetmap-website/commit/e6f8fcfbedde2dc9771c8eef1d6a54ff0109c085 which covers the following topics:
* Saving relations checks relation member limit
* settings.yml: new parameter `max_number_of_relation_members: 32000`
* `/api/0.6/capabilities` now includes a new element `relationmembers`
* New error message "You tried to add #{provided} members to relation #{id}, however only #{max} are allowed" is already being used by CGImap
* Unit test for all changes
```xml
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="OpenStreetMap server" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<api>
<version minimum="0.6" maximum="0.6"/>
<area maximum="0.25"/>
<note_area maximum="25"/>
<tracepoints per_page="5000"/>
<waynodes maximum="2000"/>
<relationmembers maximum="32000"/>
<changesets maximum_elements="10000"/>
<timeout seconds="300"/>
<status database="online" api="online" gpx="online"/>
</api>
<policy>
<imagery>
<blacklist regex=".*\.google(apis)?\..*/(vt|kh)[\?/].*([xyz]=.*){3}.*"/>
<blacklist regex="http://xdworld\.vworld\.kr:8080/.*"/>
<blacklist regex=".*\.here\.com[/:].*"/>
</imagery>
</policy>
</osm>
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1711#issuecomment-1024929032
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/1711/1024929032 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220129/e153591d/attachment.htm>
More information about the rails-dev
mailing list