Classification Workflow with geopackage vectorlayer error
Issue #510
resolved
Classification Workflow fails to use a geopackage vector layer
Warning 1: VSIFSeekL(xxx, SEEK_END) may be really slow on GZip streams.
C:\Users\geo_beja\Repositories\QGIS_Plugins\enmap-box\enmapbox\externals\qps\externals\pyqtgraph\widgets\VerticalLabel.py:50: DeprecationWarning: an integer is required (got type Alignment). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
self.hint = p.drawText(rgn, align, self.text())
Traceback (most recent call last):
File "C:\Users\geo_beja\Repositories\QGIS_Plugins\enmap-box\enmapbox\coreapps\enmapboxapplications\classificationapp\core.py", line 160, in initClasses
saveLayerAsClassification(
File "C:\Users\geo_beja\Repositories\QGIS_Plugins\enmap-box\hubdsm\processing\savelayerasclassification.py", line 112, in saveLayerAsClassification
ogrLayer = OgrLayer.open(qgsMapLayer.source())
File "C:\Users\geo_beja\Repositories\QGIS_Plugins\enmap-box\hubdsm\core\ogrlayer.py", line 29, in open
return OgrVector.open(filename=filename).layer(nameOrIndex=layerNameOrIndex)
File "C:\Users\geo_beja\Repositories\QGIS_Plugins\enmap-box\hubdsm\core\ogrvector.py", line 22, in open
ogrDataSource = gdal.OpenEx(filename, gdal.OF_VECTOR)
File "F:\miniconda3\envs\qgis_stable\lib\site-packages\osgeo\gdal.py", line 3312, in OpenEx
return _gdal.OpenEx(*args, **kwargs)
RuntimeError: `C:\Users\geo_beja\Repositories\QGIS_Plugins\enmap-box\enmapboxtestdata\vectordata.gpkg|layername=landcover_berlin_point' does not exist in the file system, and is not recognized as a supported dataset name.
Comments (6)
-
reporter -
Please share last line of the error message.
-
can’t reproduce this with the testdata
-
reporter Ehe error occurs when using a vector layer from a geopackage, e.g. this one (Testdata vectors in a shapefile):
https://bitbucket.org/hu-geomatics/enmap-box/downloads/vectordata.gpkg
-
I’m confused, you say “vectors in a shapefile”, but you provide a geopackage!?
-
- changed status to resolved
resolves
#510→ <<cset 50d828469079>>
- Log in to comment
Same happens even when using shapefile input