This might be a simple problem, but how does one load a simple two-column CSV with no associated geometric data?
I have given a couple of go's via QgsVectorlayer
[delimited text, spatialite] types - but none seem to work.
for example:
theMinistryOf = ':\...\sillyWalks.csv'
uri = QgsDataSourceURI()
uri.setDatabase(theMinistryOf)
uri.setDataSource('','','')
notQuiteSillyEnough = QgsVectorLayer(uri.uri(), 'skip_step_slide', 'spatialite')
or:
uri = theMinistryOf+'?delimiter=%s' % (",")
sillyWalks = QgsVectorLayer(uri, 'sillyWalks', "delimitedtext")
QgsMapLayerRegistry.instance().addMapLayer(sillyWalks)
This need is easily fulfilled manually by selecting the load vector layer, but programmatically?
Can a CSV data table be loaded via PyQGIS without geometry?