[uMap] regex format for numeric ranges in remote data

Yohan Boniface ybon at openstreetmap.fr
Tue Nov 11 21:44:06 UTC 2014


 From here, it seems that the "{3}" is being interpreted by uMap as a 
variable.
Try to replace it by %7B3%7D
But clearly this should not make uMap to bug, so I will need to make 
that not found variable are ignored.

On 11/11/2014 22:30, Andy Robinson wrote:
> Trying to get a regex working for a numeric range within a remote data
> query.
>
>
>
> This format works fine in umap for a range of 1 to 9999:
>
> http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(way["key
> "~"^0*[1-9][0-9]{0,3}$"]({south},{west},{north},{east}););out body;>;out
> skel qt;
>
>
>
> But this one for a range of 1:4999 does not:
>
> http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(way["key
> "~"^0*([1-9][0-9]{0,2}|[1-4][0-9]{3})$"]({south},{west},{north},{east}););ou
> t body;>;out skel qt;
>
>
>
> Both queries work fine when used in overpass-turbo
>
>
>
> Furthermore the presence of the second query in umap seems to make the layer
> inaccessible and therefore not possible to edit or delete despite it saving
> when created without returning an error.
>
>
>
> Am I missing something or did I find a bug?
>
>
>
> Cheers
>
> Andy
>
>
>
>
> _______________________________________________
> Umap mailing list
> Umap at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/umap
>





More information about the Umap mailing list