Feature request #9351

Load GPX: do not load empty layers

Added by Paolo Cavallini almost 11 years ago. Updated over 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:C++ plugins/GPS plugin
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:17953

Description

When loading a GPX, by default tracks, routes, and waypoints are loaded, even if empty. For the user it mey be difficult to understand that a layer is present, with 0 geometries.
I suggest to avoid loading empty layers. A warning should be given to the user (either a notification "Layer not loaded because empty" or a note on the dialog "Note: empty layers will not be loaded").
Seems easy to implement.

History

#1 Updated by Alexander Bruy over 10 years ago

Just to make clear, are you talking about GPS Tools plugin or about loading GPX files using OGR provider?

#2 Updated by Giovanni Manghi over 10 years ago

  • Status changed from Open to Feedback

#3 Updated by Paolo Cavallini over 10 years ago

  • Status changed from Feedback to Open

GPS Tools plugin

#4 Updated by Giovanni Manghi almost 8 years ago

  • Category changed from C++ Plugins to C++ plugins/GPS plugin

#5 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#6 Updated by Paolo Cavallini over 6 years ago

  • Description updated (diff)

Still true in QGIS 3

Also available in: Atom PDF