Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbortSQL is not supported #520

Open
aaschwanden opened this issue Jun 8, 2021 · 0 comments
Open

AbortSQL is not supported #520

aaschwanden opened this issue Jun 8, 2021 · 0 comments

Comments

@aaschwanden
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant