Skip to content

Commit

Permalink
Fixed bug causing Z and M point components to be truncated to int
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorkegeek committed Aug 13, 2019
1 parent d1245c1 commit 4418c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgis/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def __init__(self, x, y=None, z=None, m=None, srid=None):
m = extra[0]
self.x = float(x)
self.y = float(y)
self.z = int(z) if z is not None else None
self.m = int(m) if m is not None else None
self.z = float(z) if z is not None else None
self.m = float(m) if m is not None else None
if srid is not None:
self.srid = srid

Expand Down

0 comments on commit 4418c37

Please sign in to comment.