Skip to content

Invalid query for downloading town points #539

Open

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

Activity

  1. added
    bug
    on Jun 5, 2025
  2. pcardinal commented on Dec 10, 2025

    @pcardinal

    With the same environment, I don't have the problem.

    With the following request (bbox including your area)

    [out:xml] [timeout:25];
    (
        node["place"="town"]( 51.10824,5.98288,51.30883,6.19121);
        way["place"="town"]( 51.10824,5.98288,51.30883,6.19121);
        relation["place"="town"]( 51.10824,5.98288,51.30883,6.19121);
    );
    //(._;>;);
    out body;
    
    
    

    I have only one point (red)

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions