Bug report #20391
Disappearing vector lines when zooming in
|Affected QGIS version:||3.4.1||Regression?:||No|
|Operating System:||Ubuntu 18.04, Windows 10||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||28211|
Vector lines/tracks loaded from a gpx file disappear when zooming in. This only affects some gpx files, while others seem to work fine.
I have tested this on both QGIS 2.18 and 3.4.1. The problem is easy to reproduce:
1. Create a new project, load the attached gpx file in QGIS and add the tracks layer to the project.
2. Zoom out to see the tracks, zoom in and they disappear. The cutoff seems to be around scale 1:18000.
I found earlier bug reports of disappearing vector geometries, but they were mostly related to shape files and corrupt spatial indexes. The proposed solution of deleting the spatial index file doesn't apply to gpx files.
#5 Updated by Mikael Vaaltola almost 3 years ago
Giovanni Manghi wrote:
It has also lines of length 0.
Clean it using Processing v.clean tool (option "rmline", Threshold 0) and you'll get a good copy.
Thank you, this worked perfectly. I too agree that some kind of warning would be nice, I had no idea what was causing the issue.