add Point model

This commit is contained in:
Laura Klünder 2017-05-10 15:30:54 +02:00
parent 84b826e261
commit e8e4e9fd40
2 changed files with 42 additions and 0 deletions

View file

@ -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'