Why does
planet('ar[boundary=administrative][admin_level=2][type!=multilinestring]').relations("*[name:en=Germany]")
return four relations, some of which are not returned by
planet('ar[boundary=administrative][admin_level=2][type!=multilinestring]').relations
?
Only the following returns what I expected:
planet('ar[boundary=administrative][admin_level=2][type!=multilinestring][name:en=Germany]').relations
I would have expected these filters to work one after the other, so that adding another one can only ever make the resulting feature set smaller.
I would expect the following to work:
countries = planet('ar[boundary=administrative][admin_level=2][type!=multilinestring]').relations
countries('*[name:en=Germany]').one
Instead it complains: QueryError: Expected only one feature, but found multiple.
Why does
planet('ar[boundary=administrative][admin_level=2][type!=multilinestring]').relations("*[name:en=Germany]")
return four relations, some of which are not returned byplanet('ar[boundary=administrative][admin_level=2][type!=multilinestring]').relations
?Only the following returns what I expected:
planet('ar[boundary=administrative][admin_level=2][type!=multilinestring][name:en=Germany]').relations
I would have expected these filters to work one after the other, so that adding another one can only ever make the resulting feature set smaller.
I would expect the following to work:
Instead it complains:
QueryError: Expected only one feature, but found multiple.