mirror of
https://github.com/HaitiData/haitidata.git
synced 2026-10-31 11:56:22 +00:00
13 lines
600 B
Python
13 lines
600 B
Python
from django.db import models
|
|
|
|
from geonode.base.models import Region
|
|
|
|
|
|
class RegionBBox(models.Model):
|
|
region = models.OneToOneField(Region, on_delete=models.CASCADE)
|
|
bbox_x0 = models.DecimalField(max_digits=19, decimal_places=10, blank=True, null=True)
|
|
bbox_x1 = models.DecimalField(max_digits=19, decimal_places=10, blank=True, null=True)
|
|
bbox_y0 = models.DecimalField(max_digits=19, decimal_places=10, blank=True, null=True)
|
|
bbox_y1 = models.DecimalField(max_digits=19, decimal_places=10, blank=True, null=True)
|
|
srid = models.CharField(max_length=255, default='EPSG:4326')
|