Modify

Opened 16 years ago

Closed 15 years ago

#2344 closed defect (fixed)

zooom to layer fails if only single waypoint in GPX layer

Reported by: anonymous Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

If I have GPX layer with waypoints in them, I got "Markers from xyz.gpx" layer when l,oading it. If I select that layer and press "2" (zoom to layer), the view is zoomed to show all the markers. But if the layer contain only single marker, the zoom is changed to entire world in that case (which can be quite confusing) instead of some rather small area around that single node.

Example of GPX with single marker that causes this:

<?xml version='1.0' encoding='UTF-8'?>
<gpx version='1.1' creator='GPSMID' xmlns='http://www.topografix.com/GPX/1/1'>
<wpt lat='50.085922' lon='14.435241' >
<name>some text</name>
</wpt>
</gpx>

Attachments (1)

GpxLayer.diff (912 bytes ) - added by Iowahc 16 years ago.
The Patch for GPXLayer

Download all attachments as: .zip

Change History (4)

by Iowahc, 16 years ago

Attachment: GpxLayer.diff added

The Patch for GPXLayer

comment:1 by Iowahc, 16 years ago

Resolution: fixed
Status: newclosed

Fixed it, by creating two waypoints in upper upper and lower left of the given point. Centering it in a box.

comment:2 by anonymous, 15 years ago

Resolution: fixed
Status: closedreopened

Seems not to work in revision 1627 from SVN.

When I use the waypoint file below, load it, select it in Layers list and then press "2", map zooms out to entire world.

<?xml version='1.0' encoding='UTF-8'?>
<gpx version='1.1' creator='GPSMID' xmlns='http://www.topografix.com/GPX/1/1'>
<wpt lat='50.10123' lon='14.475168'>
<name>Waypoint 1</name>
<time>2009-05-26T05:09:28Z</time>
</wpt>
</gpx>

comment:3 by stoecker, 15 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r1662.

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.