Wednesday, July 25, 2018

geodjango raster field display on leaflet

in the new django version support raster field and i follow this manual for geodjango raster field and this questions 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 models  from 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+unsubscribe@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.

No comments:

Post a Comment