Skip to content

vsgviewer render readymap.vsgt? #232

Open

Description

@albert8271

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!

Activity

  1. robertosfield commented on Jul 17, 2023

    @robertosfield
    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.

  2. robertosfield commented on Jul 17, 2023

    @robertosfield
    Collaborator

    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.

  3. albert8271 commented on Jul 17, 2023

    @albert8271
    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!

  4. albert8271 commented on Jul 19, 2023

    @albert8271
    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.

  5. robertosfield commented on Jul 19, 2023

    @robertosfield
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions