add Point model
This commit is contained in:
parent
84b826e261
commit
e8e4e9fd40
2 changed files with 42 additions and 0 deletions
|
@ -110,3 +110,15 @@ class LineObstacle(SpaceGeometryMixin, models.Model):
|
|||
# noinspection PyTypeChecker
|
||||
result['width'] = float(self.width)
|
||||
return result
|
||||
|
||||
|
||||
class Point(SpaceGeometryMixin, models.Model):
|
||||
"""
|
||||
An point in a space.
|
||||
"""
|
||||
geometry = GeometryField('point')
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Point')
|
||||
verbose_name_plural = _('Points')
|
||||
default_related_name = 'points'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue