[Tile-serving] [openstreetmap/osm2pgsql] Add starts_with()/ends_with() and suffix check in make_clean_tags_func (#1307)

Jochen Topf notifications at github.com
Thu Nov 5 09:00:53 UTC 2020


Adds Lua helper functions has_prefix() and has_suffix(). This is useful
for checks like osm2pgsql.has_prefix(some_tag, 'addr:').

Also add functionality to the osm2pgsql.make_clean_tags_func() function
to also check for suffixes, so '*:sources' will check for all tags
with suffix ':sources'.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1307

-- Commit Summary --

  * Add starts_with()/ends_with() and suffix check in make_clean_tags_func

-- File Changes --

    M src/init.lua (25)
    M tests/lua/tests.lua (33)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1307.patch
https://github.com/openstreetmap/osm2pgsql/pull/1307.diff

-- 
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/1307
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20201105/b39cb3da/attachment.htm>


More information about the Tile-serving mailing list