Skip to content

Invalid query for downloading town points #539

@jvdkwast

Description

@jvdkwast

What is the bug?

When using key=place and value=towns, a wrong query is generated, resulting in wrong points in the map canvas.

This is the generated query:

[out:xml] [timeout:25];
(
    node["place"="town"]( {{bbox}});
    way["place"="town"]( {{bbox}});
    relation["place"="town"]( {{bbox}});
);
//(._;>;);
out body;

Resulting in additional points that are not towns:

Image

Environment

  • QuickOSM version: 2.4.1
  • QGIS version: 3.42.3
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn identified bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions