2015-06-19 15:46:03 +00:00
|
|
|
from ..models import models
|
|
|
|
|
|
|
|
|
|
|
|
class RasterModel(models.Model):
|
2015-06-23 19:39:18 +00:00
|
|
|
rast = models.RasterField('A Verbose Raster Name', null=True, srid=4326, spatial_index=True, blank=True)
|
2016-04-21 16:03:14 +00:00
|
|
|
rastprojected = models.RasterField('A Projected Raster Table', srid=3086, null=True)
|
|
|
|
geom = models.PointField(null=True)
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
required_db_features = ['supports_raster']
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return str(self.id)
|
|
|
|
|
|
|
|
|
|
|
|
class RasterRelatedModel(models.Model):
|
|
|
|
rastermodel = models.ForeignKey(RasterModel, models.CASCADE)
|
2015-06-19 15:46:03 +00:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
required_db_features = ['supports_raster']
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return str(self.id)
|