Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load GPX file automatically after creating it QGIS 3.4.7 QGIS 3.6.2 #29819

Closed
qgib opened this issue May 6, 2019 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Regression Something which used to work, but doesn't anymore Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented May 6, 2019

Author Name: KL Higgins (KL Higgins)
Original Redmine Issue: 22005
Affected QGIS version: 3.6.2
Redmine category:vectors


When I use "save features as..." to create a new gpx file (either from a completely new scratch layer or a shapefile or another gpx file), I get the following error message when QGIS attempts to load file:
QGIS 3.4.7 (long-term release): "Download with "Protocol" source type failed, do you want to try "File" source type?" (choosing "Yes" leads to a non-ending circle, choosing "No" leads to "is not a valid or recognized data source"
QGIS 3.6.2 (lateast release): "is not a valid or recognized data source"

When I choose "Add vector layer..." from the menu and select the file, the file loads normally without any issues. Also, if I uncheck "add saved file to map" during save, there are no error messages (and it does not load either as expected). I tested the workflow on QGIS 2.18 and there are no errors with the same workflow.

(I tried to search to see if this was an existing issue but I could not figure out the search filters, I look forward to the upgrade to github--my apologies in advance if this has already been flagged)

@qgib
Copy link
Contributor Author

qgib commented May 7, 2019

Author Name: Randal Hale (@rjhale1971)


Actually I just came up to report the same thing. The error has been around for a bit and I finally had time today to report it - and thanks for doing this part.

The GPX file is created correctly - it only errors when attempting to load after it is exportd using the "Save Vector Layer as...." dialog box.

When saving a shapefile to a file named test.gpx

The log messages are as follows:
2019-05-07T13:10:19 CRITICAL Invalid Data Source : /media/projects/tsf/payne/test.gpx|layername=test is not a valid or recognized data source.
2019-05-07T13:10:19 SUCCESS Layer Exported : Successfully saved vector layer to /media/projects/tsf/payne/test.gpx

Under the OGR Messages:
2019-05-07T13:10:19 WARNING Cannot find layer test.()

@qgib
Copy link
Contributor Author

qgib commented May 9, 2019

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 3.4.7 to 3.6.2
  • priority_id was changed from Normal to High
  • category_id was changed from Geometry to Vectors

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Vectors Related to general vector layer handling (not specific data formats) Regression Something which used to work, but doesn't anymore labels May 25, 2019
rouault added a commit to rouault/QGIS that referenced this issue May 27, 2019
rouault added a commit to rouault/QGIS that referenced this issue May 28, 2019
nyalldawson pushed a commit that referenced this issue May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Regression Something which used to work, but doesn't anymore Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant