openmaptiles/openmaptiles-tools

Enhanced height parser.

Open

#463 创建于 2025年12月1日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (147 fork)github user discovery
help wanted

仓库指标

Star
 (463 star)
PR 合并指标
 (PR 指标待抓取)

描述

Based on taginfo, there are at least 137k heights with the value 2 m, 105k with value 3 m, 71k 6 m... The current function CleanNumeric handles simple strings and converts them to a number (SELECT cleannumeric('2.0'::text); -> 2::numeric).

The function should not replace CleanNumeric function, but be another function to deal with these non-numeric values (with m, m, ft, ", ' ",...)

The new function will be used for parsing heights for buildings, for mountain_peak, and for aerodrome_label layers.

One attempt was already discussed in #362.

贡献者指南