Skip to content

Commit f55b727

Browse files
committed
Fixed models.SamplingFeatures shape() method to handle null FeatureGeometry.
1 parent 5be1e52 commit f55b727

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

odm2api/ODM2/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ def shape(self):
572572
:return geomshape:
573573
"""
574574
_FeatureGeometry = self.FeatureGeometry
575+
geomshape = None
575576
if _FeatureGeometry is not None:
576577
if is_hex(_FeatureGeometry.geom_wkb):
577578
# to parse wkb hex string directly

0 commit comments

Comments
 (0)