I'm working on a QGIS plugin. I'm trying to join a vector layer and a non-spatial table both in Oracle spatial.

I add the vector layer to the map, but I can not add the table without geometry so i can join the layers. I have to pull it out and add in CSV format then I add it as CSV file, do I?


I solved this by specifying None in the geometric column:

uri.setDataSource('', 'TABLE',None,'','TABLE_ID')

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.