Modify

Opened 14 years ago

Closed 13 years ago

#5471 closed defect (fixed)

[Patch] Empty OSM files not announced

Reported by: jp42@… Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Was trying to clean up a few lone tags. Loading this link returns an empty osm document - tags have already been fixed by someone else.

http://tagwatch.stoecker.eu/osmxapi/*[bikeway=lane]

The node/way/relation panels are empty but they may not be on show to the user. The map just shows a strip of the whole world above about latitude 67 degrees. The rest of the map is missing/white. The user may think there is some data and it's not showing on the map. Especially as nodes show as yellow against a white background.

It would save time if JOSM announced the document is empty as soon as it is loaded. It will do this if you try and save an empty document.

It all gets more confusing when you find that tags listed here for Australia-Oceania contain tags in Europe - making any clean up much more difficult:

http://tagwatch.stoecker.eu/Australia-oceania/En/tags.html

see tag: bicycle=y The node is very hard to spot:

http://tagwatch.stoecker.eu/osmxapi/*[bicycle=y]

see tag: access=bicycle Shows nodes in Europe

http://tagwatch.stoecker.eu/osmxapi/*[access=bicycle]

In the majority of cases, ways/relations are highly localised (compared to the planet). Can JOSM zoom to the extent of the way(s)/relation(s)? That way you don't have to search on the map for them.

Attachments (2)

empty.osm (83 bytes ) - added by simon04 13 years ago.
test file
5471.patch (2.8 KB ) - added by simon04 13 years ago.

Download all attachments as: .zip

Change History (7)

by simon04, 13 years ago

Attachment: empty.osm added

test file

by simon04, 13 years ago

Attachment: 5471.patch added

comment:1 by simon04, 13 years ago

Summary: Empty OSM files not announced[Patch] Empty OSM files not announced

Could be fixed with the attached patch – I'm not very sure where to put include this information dialog.

comment:2 by bastiK, 13 years ago

Guess it is ok, but for stuff like this it would be great to have balloon notifications. I.e. tooltips that pop up on the map, but don't interrupt the work flow.

comment:3 by simon04, 13 years ago

Is it all right to commit this change now? When a balloon notification is implemented, this can be changed.

comment:4 by bastiK, 13 years ago

Sure, just avoid adding new bugs. (This patch looks pretty save...)

comment:5 by simon04, 13 years ago

Resolution: fixed
Status: newclosed

In [4393/josm]:

fix #5471 - information dialog when opening an empty osm file

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.