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

vsgviewer render readymap.vsgt? #232

Open
albert8271 opened this issue Jul 17, 2023 · 5 comments
Open

vsgviewer render readymap.vsgt? #232

albert8271 opened this issue Jul 17, 2023 · 5 comments

Comments

@albert8271
Copy link

execute the commnad:
"vsgviewer readymap.vsgt "
I get the error
image
but execute the command
"vsgviewer openstreetmap.vsgt"
I get the right outcome. the differenrce is the format , jpeg or png.
alse, I can access the imageLaser in chrome, the internet access is right.

Thank you!

@robertosfield
Copy link
Collaborator

I just tried:

vsgviewer models/readymap.vsgt

On my Kubuntu 22.04 system and everything works fine, this is latest VSG, vsgXchange and vsgExamples.

Which version of the VSG, vsgXchange, libcurl, OS and compiler tools are you using?

The file extension shouldn't affect the libcurl operation - vsgXchange simply opens a connection with libcurl and downloads the data and then locally reads it as a png/jpg etc. The report of "Unsupported protocol" looks like an issue with opening the connection to the server for some reason.

@robertosfield
Copy link
Collaborator

robertosfield commented Jul 17, 2023

From libcurl docs: https://curl.se/libcurl/c/libcurl-errors.html

CURLE_UNSUPPORTED_PROTOCOL (1)

The URL you passed to libcurl used a protocol that this libcurl does not support. The support might be a compile-time option that you did not use, it can be a misspelled protocol string or just a protocol libcurl has no code for. 

http should be supported so perhaps your libcurl has been built with limitations or there is firewall that's causing problems with that service. Try investigating with invoking the curl command line on the http address being reported as a problem and see if it gives you any more information.

I think mostly likely it's a local issue rather than a specific problem with vsgXchange so I'd recommend investigating it at your end as there isn't anything more I can do as it's all working at my end so I have no clues to what might specifically wrong on your system.

@albert8271
Copy link
Author

my os is win10, the vsg ,vsgXchange i s latest. the compile is vs2019.
the libcurl is 7.57 。I will try another version libcurl.

Thanky you!

@albert8271
Copy link
Author

I have test another libcurl ,the outcome is same, but i do some test, maybe I found the problem.
I do some test with the libcurl.
image
the return show the page not exist in http, just exist in https.
image
I get the right jpeg

alse, i can get the data in https
image.

but when I use vsgviewer, curl just supprt http,no support https.
in http, "vsgviewer openstreetmap.vsgt" run right.
in http, "vsgviewer readymap.vsgt" run error, Unsupported protocol.

I change the http to https in the openstreetmap.vsgt and readymap.vsgt.
all run error, Unsupported protocol.

@robertosfield
Copy link
Collaborator

robertosfield commented Jul 19, 2023

The issue with https on some versions of libcurl under Windows is a known problem, it's not VSG related, but just how some libcurl binaries have been built. There is some code in vsgXchange to work around some of the https related issues that libcurl has thrown up, but it looks like you are still seeing problems so perhaps you'll need to do more with your version of libcurl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants