[uMap] regex format for numeric ranges in remote data
Andy Robinson
ajrlists at gmail.com
Tue Nov 11 22:05:04 UTC 2014
Thanks Yohan, that’s sorted it.
Cheers
Andy
-----Original Message-----
From: Yohan Boniface [mailto:ybon at openstreetmap.fr]
Sent: 11 November 2014 21:44
To: Discussions about uMap project
Subject: Re: [uMap] regex format for numeric ranges in remote data
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];(wa
> y["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];(wa
> y["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
>
_______________________________________________
Umap mailing list
Umap at openstreetmap.org
https://lists.openstreetmap.org/listinfo/umap
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4765 / Virus Database: 4189/8553 - Release Date: 11/11/14
More information about the Umap
mailing list