Commit 55d9eadb authored by PIOLLE's avatar PIOLLE
Browse files

saving attributes of shapely type

parent d61d7c9c
......@@ -2171,6 +2171,8 @@ class Dataset(ABC):
return attrval.strftime(cls._get_time_format())
elif attrval is None:
return ''
elif isinstance(attrval, shapely.geometry.base.BaseGeometry):
return attrval.wkt
return attrval
def get_collection_id(self) -> str:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment