]> git.openstreetmap.org Git - nominatim.git/commit
simplify use of secondary importance
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 27 Sep 2022 20:12:48 +0000 (22:12 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 1 Oct 2022 09:01:49 +0000 (11:01 +0200)
commitabf349fb0da9c1f08cbe17a70b3134b64c0e61c3
tree4d17bfc0103b7ee082e392b1da40de2eedebee1d
parent3185fad9182b9f6b2ec609aacf9344b4922a0d35
simplify use of secondary importance

The values in the raster are already normalized between 0 and 2**16,
so a simple conversion to [0, 1] will do.

Check for existance of secondary_importance table statically when
creating the SQL function. For that to work importance tables need
to be created before the functions.
lib-sql/functions/importance.sql
lib-sql/functions/placex_triggers.sql
lib-sql/tables.sql
nominatim/clicmd/setup.py