Skip to content

Commit

Permalink
EMPTY geometries are already handled in geometry.wkt
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 31, 2023
1 parent 2f47523 commit 5afa1d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pygeoif/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,7 @@ def _wkt_coords(self) -> str:
@property
def _wkt_inset(self) -> str:
"""Return Z for 3 dimensional geometry or an empty string for 2 dimensions."""
if self.is_empty:
return f"{self._wkt_type} EMPTY"
if self.has_z:
return " Z "
return " "
return " Z " if self.has_z else " "

@property
def _wkt_type(self) -> str:
Expand Down

0 comments on commit 5afa1d5

Please sign in to comment.