Hi, reading the documentation, I've found that `rast__intersects=geom` is translated to `ST_Intersects(ST_Polygon(rast), geom)`)[1], but in PostGIS documentation I've found that it's possible to mix rasters and geometries [2].
`ST_Intersects(raster, geom)` can be quite faster than `ST_Intersects(ST_Polygon(raster), geom)`. Before submitting a patch, I'd like to be sure that I'm not missing something. Thanks, Emanuele [1]: https://docs.djangoproject.com/en/1.11/ref/contrib/gis/geoquerysets/#lookups-with-rasters [2]: https://postgis.net/docs/RT_ST_Intersects.html -- 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 [email protected]. To post to this group, send email to [email protected]. 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/20170406125858.GA18336%40oliva. For more options, visit https://groups.google.com/d/optout.

