openmaptiles/openmaptiles-tools

Enhanced height parser.

Open

#463 aberto em 1 de dez. de 2025

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (147 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (463 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador