Skip to content

Unavailable layer on QGIS #15

@antoinepiedfert

Description

@antoinepiedfert

Hi @ablakey,

I've been trying to make your plugin work with my project. It looks like everything works fine until the QgsVectorLayer command is called in translator.py: layer = QgsVectorLayer(uri, topicName, 'rosvectorprovider'). The following lines:
if not layer.isValid():
print("Layer failed to load!")
I implemented immediately after said command does return an error.

To be more specific, all of my topics are detected and appear correctly in the available topics table from your plugin GUI. But whenever I select any of them and ask to create a layer, an empty layer is created with the expected name and source uri, but an error appears that says "Unavailable layer! Layer data source could not be found".

It seems like the problem comes from the provider. Have you encountered this issue before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions