#19115 closed defect (fixed)
Wrong exclamation mark parsing in Overpass wizard
Reported by: | gaben | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 20.05 |
Component: | Core | Version: | latest |
Keywords: | overpass | Cc: |
Description (last modified by )
What steps will reproduce the problem?
- Make an Overpass query containing an exclamation mark (negation), eg.
oneway!=no
- Check the result
What is the expected result?
["oneway"!="no"]
What happens instead?
["oneway!"="no"]
Please provide any additional information below. Attach a screenshot if possible.
The https://overpass-turbo.eu/ website working fine.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-04-17 21:45:35 +0200 (Fri, 17 Apr 2020) Build-Date:2020-04-18 01:30:45 Revision:16330 Relative:URL: ^/trunk Identification: JOSM/1.5 (16330 hu) Windows 10 64-Bit OS Build number: Windows 10 Pro for Workstations 1909 (18363) Memory Usage: 560 MB / 1820 MB (267 MB allocated, but free) Java version: 1.8.0_251-b08, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1920x1200 Maximum Screen Size: 1920x1200 VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\31\583aa85f-404a7071, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=59949, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm-latest.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Attachments (0)
Change History (14)
comment:1 by , 4 years ago
Description: | modified (diff) |
---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
Ah, I see. Maybe it's worth highlighting the changed syntax for one or two releases to prevent further tickets.
For me, it was a 'feature' that I could copy-paste the same query from the overpass-turbo website to JOSM. I already miss it.
follow-up: 9 comment:4 by , 4 years ago
I see two types of users:
- people familiar with JOSM and JOSM search – they can use the same syntax for the new Overpass wizard
- people familiar with the Overpass syntax – they can input the Overpass QL directly
Copying from overpass-turbo – why don't you copy the entire query?
comment:5 by , 4 years ago
The sentence in the wizard with the link to the wiki schould be updated as it is no longer valid.
follow-up: 7 comment:6 by , 4 years ago
Agreed. I was considering to show the standard JOSM search dialog instead (plus a hint for the "… in Austria" syntax). Then the expected input syntax would be very clear.
comment:7 by , 4 years ago
Milestone: | → 20.04 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
follow-up: 10 comment:8 by , 4 years ago
So the wizard is no longer really related to overpass turbo, right?
comment:9 by , 4 years ago
Replying to simon04:
I see two types of users:
- people familiar with JOSM and JOSM search – they can use the same syntax for the new Overpass wizard
- people familiar with the Overpass syntax – they can input the Overpass QL directly
Copying from overpass-turbo – why don't you copy the entire query?
Yeah, I copy from the website, because it is saved there. I'm not always opening JOSM to check if a query returns the expected results. That's because I'm more into QA and don't know what people do differently, what to search for or what's missing.
Copying the entire query will be the solution because:
- the text field is so small in JOSM (6-7px), barely see anything*
- the new syntax missing !~ operator and can't do key regex
If you would ask me, I vote for the old syntax, strictly from user perspective.
*: JRE8 on W10, HiDPI environment, 125% scaling. It is declared as Java 'bug', but anything over Java 8 is unusable for me. They changed the scaling and everything became overly big, aside from that JOSM was much slower when I tried.
comment:10 by , 4 years ago
Replying to Klumbumbus:
So the wizard is no longer really related to overpass turbo, right?
Right. I'll clarify the strings and labels.
comment:11 by , 4 years ago
-
org/openstreetmap/josm/gui/download/OverpassDownloadSource.java
104 104 private static final String ACTION_IMG_SUBDIR = "dialogs"; 105 105 106 106 private static final StringProperty DOWNLOAD_QUERY = new StringProperty("download.overpass.query", 107 "/*\n" + tr("Place your Overpass query below or generate one using the Overpass Turbo Query Wizard") + "\n*/");107 "/*\n" + tr("Place your Overpass query below or generate one using the Overpass Query Wizard.") + "\n*/"); 108 108 109 109 private final JosmTextArea overpassQuery; 110 110 private final UserQueryList overpassQueryList; -
org/openstreetmap/josm/gui/download/OverpassQueryWizardDialog.java
41 41 */ 42 42 public OverpassQueryWizardDialog(OverpassWizardCallbacks callbacks) { 43 43 super(new SearchSetting(), OVERPASS_WIZARD_HISTORY.get(), new PanelOptions(false, true), callbacks.getParent(), 44 tr("Overpass TurboQuery Wizard"),44 tr("Overpass Query Wizard"), 45 45 tr("Build query"), tr("Build query and execute"), tr("Cancel")); 46 46 this.callbacks = callbacks; 47 47 setButtonIcons("dialogs/magic-wand", "download-overpass", "cancel");
In #18164, the Overpass wizard has been migrated to Java and now is based on the standard JOSM search. The syntax now is
-oneway=no
or-oneway?
.