ocgis icon indicating copy to clipboard operation
ocgis copied to clipboard

AbortSQL is not supported

Open aaschwanden opened this issue 3 years ago • 0 comments

After upgrading to GDAL 3.3, I'm suddenly getting the error below. I'm not quite sure what it means but I'm guessing something has changed in GDAL 3.3 that leads to an incompatibility with OCGIS?

ERROR 6: AbortSQL is not supported for this driver. Traceback (most recent call last): File "/Users/andy/base/gris-analysis/basins/extract_glacier.py", line 191, in <module> extract(int(ugid), metadata=metadata, epsg=epsg) File "/Users/andy/base/gris-analysis/basins/extract_glacier.py", line 96, in extract extract_glacier_by_ugid(gl_name, ugid, uri, shape_file, variable, metadata, epsg=epsg) File "/Users/andy/base/gris-analysis/basins/extract_glacier.py", line 79, in extract_glacier_by_ugid ret = ops.execute() File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/ops/core.py", line 313, in execute return interp.execute() File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/ops/interpreter.py", line 134, in execute ret = conv.write() File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/conv/base.py", line 170, in write for i, coll in enumerate(self): File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/conv/base.py", line 119, in __iter__ for coll in self.colls: File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/ops/engine.py", line 59, in __iter__ for coll in self._iter_collections_(): File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/ops/engine.py", line 125, in _iter_collections_ for coll in self._process_subsettables_(rds): File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/ops/engine.py", line 278, in _process_subsettables_ for coll in self._process_geometries_(itr, field, alias): File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/ops/engine.py", line 300, in _process_geometries_ for subset_field in itr: File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/spatial/geom_cabinet.py", line 385, in __iter__ for row in self.sc.iter_geoms( File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/spatial/geom_cabinet.py", line 151, in iter_geoms features = self._get_features_object_( File "/Users/andy/Library/Python/3.8/lib/python/site-packages/ocgis-2.1.1-py3.8.egg/ocgis/spatial/geom_cabinet.py", line 297, in _get_features_object_ features = ds.ExecuteSQL(sql) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/osgeo/ogr.py", line 819, in ExecuteSQL return _ogr.DataSource_ExecuteSQL(self, *args, **kwargs) RuntimeError: AbortSQL is not supported for this driver.

aaschwanden avatar Jun 08 '21 19:06 aaschwanden