Skip to content

Commit

Permalink
add coalesce
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Oct 30, 2024
1 parent 4bb7278 commit 1177b1e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ def geometry3D_convert(self, geometryattribute, coteattribute, obj_id):
"""
if coteattribute is None or coteattribute == "":
# situation3d_geometry=self.session_tww.scalar(ST_Force3D(row.lage, row.kote)),
geom = self.session_tww.scalar(ST_Force3D(coteattribute, "Nan"))
#geom = self.session_tww.scalar(ST_Force3D(coteattribute, "Nan"))
# (COALESCE (NULL,'NaN'))::numeric)
geom = self.session_tww.scalar(ST_Force3D(coteattribute, COALESCE (NULL,'NaN'))::numeric)))
logger.info(
f'No reach_point.cote (Haltungpunkt.Kote) provided for object {obj_id}- situation3d_geometry z-value set to "Nan" instead: {geom}.'
)
Expand Down

0 comments on commit 1177b1e

Please sign in to comment.