Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#15228 closed enhancement (fixed)

Support missing Overpass Turbo extended shortcuts

Reported by: GerdP Owned by: team
Priority: normal Milestone: 17.09
Component: Core Version:
Keywords: template_report overpass api turbo Cc:

Description

What steps will reproduce the problem?

  1. Press Crtl+Shift+Down for download dialog
  2. Click tab "Download from Overpass API"
  3. Click button "Query Wizzard"
  4. Enter type:way and highway="driveway" and newer:3days global
  5. Click button "Build query and execute"

What is the expected result?

Either some data or a "nothing downloaded" message

What happens instead?

Popup with error message
The OSM server 'overpass-api.de' reported a bad request.
line 3: static error: The attribute "than" must contain a timestamp exactly in the form yyyy-mm-ddThh:mm:ssZ.

Please provide any additional information below. Attach a screenshot if possible.

When I use the same text in the wizzard at http://overpass-turbo.eu/
I get the expected result. Maybe the generated clause (newer:"{{date:3days}}")
needs special treatment on Windows systems?

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-09-02 14:47:18 +0200 (Sat, 02 Sep 2017)
Build-Date:2017-09-02 20:53:16
Revision:12712
Relative:URL: ^/trunk

Identification: JOSM/1.5 (12712 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 1703 (15063)
Memory Usage: 1747 MB / 5461 MB (1202 MB allocated, but free)
Java version: 1.8.0_121-b13, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080

Plugins:
+ OpeningHoursEditor (33185)
+ apache-commons (33517)
+ buildings_tools (33004)
+ ejml (32680)
+ geotools (33380)
+ jts (32699)
+ o5m (33566)
+ opendata (33553)
+ pbf (33568)
+ poly (33570)
+ reverter (33572)
+ utilsplugin2 (33579)

Last errors/warnings:
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- W: java.io.IOException: Attribution is not loaded yet
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<line 3: static error: The attribute "than" must contain a timestamp exactly in the form yyyy-mm-ddThh:mm:ssZ.>, Error Body=<<?xml version="1.0" encoding="UTF-8"?>
- E: Bad Request - <html>The OSM server 'overpass-api.de' reported a bad request.<br><br>Error message(untranslated): line 3: static error: The attribute "than" must contain a timestamp exactly in the form yyyy-mm-ddThh:mm:ssZ. </html>
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<line 4: parse error: Unknown type ")">, Error Body=<<?xml version="1.0" encoding="UTF-8"?>
- E: Bad Request - <html>The OSM server 'overpass-api.de' reported a bad request.<br><br>Error message(untranslated): line 4: parse error: Unknown type ")" </html>
- W: Deleted or moved objects - <html>There are 111 objects in your local dataset which might be deleted on the server.<br>If you later try to delete or update them the server is likely to report a conflict.<br>Click <strong>Check on the server</strong> to check the state of these objects on the server.<br>Click <strong>Ignore</strong> to ignore.</html>
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<line 3: static error: The attribute "than" must contain a timestamp exactly in the form yyyy-mm-ddThh:mm:ssZ.>, Error Body=<<?xml version="1.0" encoding="UTF-8"?>
- E: Bad Request - <html>The OSM server 'overpass-api.de' reported a bad request.<br><br>Error message(untranslated): line 3: static error: The attribute "than" must contain a timestamp exactly in the form yyyy-mm-ddThh:mm:ssZ. </html>

Attachments (0)

Change History (3)

comment:1 by Don-vip, 7 years ago

Keywords: overpass api turbo added
Milestone: 17.09
Summary: Download from Overpass API doesn't work with newer:Support missing Overpass Turbo extended shortcuts
Type: defectenhancement

We don't support yet all the overpass turbo extended shortcuts: https://wiki.openstreetmap.org/wiki/Overpass_turbo/Extended_Overpass_Turbo_Queries

comment:2 by Don-vip, 7 years ago

Resolution: fixed
Status: newclosed

In 12714/josm:

fix #15228 - Support missing Overpass Turbo extended shortcuts: {{center}}, {{date:string}}, {{geocodeId:name}}, {{geocodeBbox:name}}, {{geocodeCoords:name}}

comment:3 by GerdP, 7 years ago

That was fast! I've only tested two samples and both work fine now:
type:way and highway=driveway and newer:3days global
type:way and highway=driveway and newer:7days in USA

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.