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

Can't open GeoJSON vector via HTTP protocol on Windows and macOS #37107

Closed
thefallingduck opened this issue Jun 10, 2020 · 7 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers macOS Regression Something which used to work, but doesn't anymore stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@thefallingduck
Copy link

thefallingduck commented Jun 10, 2020

Describe the bug

Loading of GeoJSON bare vectors using protocol source does not work for QGIS 3.10 or later. Feature works in QGIS 3.8.

Data source: http://macrostrat.org/api/geologic_units/map?strat_name_id=380&format=geojson_bare

How to Reproduce

QGIS version 3.12.3-București QGIS code revision 8234261
Compiled against Qt 5.12.3 Running against Qt 5.12.3
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.7.2-CAPI-1.11.2 Running against GEOS 3.7.2-CAPI-1.11.2 b55d2125
Compiled against SQLite 3.28.0 Running against SQLite 3.28.0
PostgreSQL Client Version 11.3 SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.1
Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018
OS Version macOS Mojave (10.14)
Active python plugins DataPlotly; wow_gis; processing; db_manager; MetaSearch

**Works on **

QGIS version 3.8.0-Zanzibar QGIS code branch Release 3.8
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 2.4.1 Running against GDAL/OGR 2.4.1
Compiled against GEOS 3.7.1-CAPI-1.11.0 Running against GEOS 3.7.1-CAPI-1.11.1 27a5e771
PostgreSQL Client Version 9.6.10 SpatiaLite Version 4.4.0-RC1
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 5.2.0 Running against PROJ Rel. 5.2.0, September 15th, 2018
OS Version macOS 10.14    
@thefallingduck thefallingduck added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 10, 2020
@benhur07b
Copy link
Contributor

benhur07b commented Jun 10, 2020

Hi!

Tried it on my machine (Pop! OS 20.04, QGIS 3.12.3).

When I use Protocol with Type: HTTP/HTTPS/FTP to load the vector, QGIS prompts me with an Invalid Data Source dialog saying Download with "Protocol" source type has failed, do you want to try the "File" source type?. If I click Yes, the layer gets loaded after a bit of time.

Also, when I use Type: GeoJSON under Protocol (as below), the layer is loaded without any error. Loading it also takes a bit of time like above. You might want to try if this works for you.

Screenshot from 2020-06-11 04-51-00

I'm not sure if this could be an issue with GDAL/OGR, other libraries, or Mac-specific but here's what I'm running QGIS with, for reference.

QGIS version 3.12.3-București QGIS code revision 8234261
Compiled against Qt 5.12.8 Running against Qt 5.12.8
Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
Compiled against SQLite 3.31.1 Running against SQLite 3.31.1
PostgreSQL Client Version 12.2 (Ubuntu 12.2-4) SpatiaLite Version 4.3.0a
QWT Version 6.1.4 QScintilla2 Version 2.11.2
Compiled against PROJ 6.3.1 Running against PROJ Rel. 6.3.1, February 10th, 2020
OS Version Pop!_OS 20.04 LTS

@gioman gioman changed the title GeoJSON vector layer via protocol quit working in QGIS 3.10 Can't open GeoJSON vector via HTTP protocol Jun 11, 2020
@gioman
Copy link
Contributor

gioman commented Jun 11, 2020

@thefallingduck @benhur07b

I confirm it works on Linux (even if the message "Download with "Protocol" source type has failed, do you want to try the "File" source type?" is presented).

I confirm it does not work on Windows (will test macOS later).

I can't confirm it worked on 3.8, on Windows here it fails exactly as on 3.10/3.12.

@gioman gioman changed the title Can't open GeoJSON vector via HTTP protocol Can't open GeoJSON vector via HTTP protocol on Windows and macOS Jun 11, 2020
@thefallingduck
Copy link
Author

Tested with 3.14 on macOS and does not work.

@PeterPetrik PeterPetrik added the Regression Something which used to work, but doesn't anymore label Oct 1, 2020
@PeterPetrik
Copy link
Contributor

For MacOS nightly builds (=>QGIS 3.16) should be fixed by qgis/QGIS-Mac-Packager@d06bc3a

problem is that the packaged root certificates were taken from openssl installation. If (python/mozilla) certifi root certificates are used, the request is finished OK.

not sure if that is the same problem on Windows, but if yes, the certificates problem can be seen in OGR log messages view in QGIS.

@PeterPetrik PeterPetrik added Windows Related to Windows operating system macOS labels Oct 2, 2020
@gioman
Copy link
Contributor

gioman commented Jan 17, 2021

Works on Windows on 3.16, must be re-checked on macOS.

@gioman gioman added Feedback Waiting on the submitter for answers and removed Windows Related to Windows operating system labels Jan 17, 2021
@github-actions
Copy link

github-actions bot commented Feb 1, 2021

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 1, 2021
@github-actions
Copy link

github-actions bot commented Mar 2, 2021

While we hate to see this happen, this Issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as completed Mar 2, 2021
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! Feedback Waiting on the submitter for answers macOS Regression Something which used to work, but doesn't anymore stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

4 participants