shapely needs a float there rather than a decimal
This commit is contained in:
parent
1ae1274c2c
commit
73876f1b75
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ class LineObstacle(SpaceGeometryMixin, models.Model):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def buffered_geometry(self):
|
def buffered_geometry(self):
|
||||||
return self.geometry.buffer(self.width / 2, join_style=JOIN_STYLE.mitre, cap_style=CAP_STYLE.flat)
|
return self.geometry.buffer(float(self.width / 2), join_style=JOIN_STYLE.mitre, cap_style=CAP_STYLE.flat)
|
||||||
|
|
||||||
def to_geojson(self, *args, **kwargs):
|
def to_geojson(self, *args, **kwargs):
|
||||||
result = super().to_geojson(*args, **kwargs)
|
result = super().to_geojson(*args, **kwargs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue