in the new django version support raster field and i follow this 
<https://docs.djangoproject.com/en/2.0/ref/contrib/gis/model-api/> manual 
for geodjango raster field and this questions 
<https://stackoverflow.com/questions/42285780/geodjango-tif-import-with-raster-needs-to-be-opened-in-write-mode-to-change-val>
 
for add raster i have build a simple demo.

here the code :

settings.py

postgis database backend

'django.contrib.gis.db.backends.postgis'

models.py

from django.db import modelsfrom django.contrib.gis.db import models
class Elevation(models.Model):
    name = models.CharField(max_length=100)
    rast = models.RasterField()

all works fine without error.

but i have one BIG question where i dont know how to complete it.

how to display this raster in some web map like leaflet ? any idea how 
?some tutorial to help me ?

thank you 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ecf8150-3dca-4fd8-bfc8-299862a0b89a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to