You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
Cell In[274], line 5
collection.write(feature)
File ~\AppData\Local\miniforge3\envs\pyforge\lib\site-packages\fiona\collection.py:367 in write
self.writerecords([record])
File ~\AppData\Local\miniforge3\envs\pyforge\lib\site-packages\fiona\collection.py:361 in writerecords
self.session.writerecs(records, self)
File fiona\ogrext.pyx:1291 in fiona.ogrext.WritingSession.writerecs
File fiona\ogrext.pyx:354 in fiona.ogrext.OGRFeatureBuilder.build
File fiona\_err.pyx:269 in fiona._err.exc_wrap_int
FionaCPLError: The wrapped function returned an error code, but no error message was set.
The driver can be modified to enable a geometry with GEOMETRY="AS_WKT" added to the fiona.open example above to allow it to work as expected. A better handling would not try to write the geometry for the features.
This demo is with Fiona 1.8.22 from conda-forge on Windows, but similar happens with Linux too.
The text was updated successfully, but these errors were encountered:
Not all OGR drivers write geometries, e.g. CSV. This can cause a supprise while writing:
raises
which originates from: https://github.com/Toblerity/Fiona/blob/1.8.22/fiona/ogrext.pyx#L351-L354
The driver can be modified to enable a geometry with
GEOMETRY="AS_WKT"
added to thefiona.open
example above to allow it to work as expected. A better handling would not try to write the geometry for the features.This demo is with Fiona 1.8.22 from conda-forge on Windows, but similar happens with Linux too.
The text was updated successfully, but these errors were encountered: