3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
184 stars 55 forks source link

Map Preset does nothing #444

Closed maidu-onu closed 1 year ago

maidu-onu commented 1 year ago

"Succesful query but no result!"

One by one queries work but using preset does nothing and is waste of time.

Gustry commented 1 year ago

I just tried just now, it works well. I tried with the "urban" map preset provided. Without any more detail on your queries, I won't be able to dig more...

and is waste of time.

Please be nice with opensource projects ... the plugin is provided for free, developed during free "wasted" time ...

Please reopen with a more detailed bug report.

You can find some logs in the QGIS log panel (the small comic strip bubble bottom right icon).

maidu-onu commented 1 year ago

Hey!

Sry for being frustrated, but Urban is only working preset. If I build query with multiple features/keys, it does not work. For example Highway - primary, Highway - secondary. "Succesful query. No result".

It only works one by one writing queries. Every time from scratch. Or saving 10 presets. The last one is the solution i guess.

Mait

On Mon, 30 Jan 2023 at 13:11, Étienne Trimaille @.***> wrote:

I just tried just now, it works well. I tried with the "urban" map preset provided. Without any more detail on your queries, I won't be able to dig more...

and is waste of time.

Please be nice with opensource projects ... the plugin is provided for free, developed during free "wasted" time ...

Please reopen with a more detailed bug report.

You can find some logs in the QGIS log panel (the small comic strip bubble bottom right icon).

— Reply to this email directly, view it on GitHub https://github.com/3liz/QuickOSM/issues/444#issuecomment-1408430192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMDT2JJHXR7IQ2WVSIPFQDDWU6OVDANCNFSM6AAAAAAUK76KGE . You are receiving this because you authored the thread.Message ID: @.***>

Gustry commented 1 year ago

For example Highway - primary, Highway - secondary. "Succesful query. No

In a single map preset, but with 2 or 1 query ? If single query, make sure you have used OR because a highway can't be primary AND secondary at the same time.

The result ""Succesful query but no result!"" can be displayed for each query inside a single map preset. So one layer can indeed be empty, but the process is continuing with other queries.

Please share your query (in you QGIS profile, then QuickOSM/query_preset/NAME OF YOUR PRESET, the JSON file, you can copy/paste here).

i just tried your query with a single query "highway=primary OR highway=secondary" and also with two queries "highway=primary", "highway=secondary", it works as expected for me.

maidu-onu commented 1 year ago

Thanks!

It was the AND - OR thing why it did not work.

All the Best Mait Luidalepp

On Mon, 30 Jan 2023 at 13:39, Étienne Trimaille @.***> wrote:

For example Highway - primary, Highway - secondary. "Succesful query. No

In a single map preset, but with 2 or 1 query ? If single query, make sure you have used OR because a highway can't be primary AND secondary at the same time.

The result ""Succesful query but no result!"" can be displayed for each query inside a single map preset. So one layer can indeed be empty, but the process is continuing with other queries.

Please share your query (in you QGIS profile, then QuickOSM/query_preset/NAME OF YOUR PRESET, the JSON file, you can copy/paste here).

i just tried your query with a single query "highway=primary OR highway=secondary" and also with two queries "highway=primary", "highway=secondary", it works as expected for me.

— Reply to this email directly, view it on GitHub https://github.com/3liz/QuickOSM/issues/444#issuecomment-1408471168, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMDT2JPFQB4LANSDSOY427TWU6R63ANCNFSM6AAAAAAUK76KGE . You are receiving this because you authored the thread.Message ID: @.***>

Gustry commented 1 year ago

It's the same with any query language (SQL or QGIS expressions). If you query on the same "field" (key in OSM context), you must use some "or" statements.