PostGIS intersects lookup with raster and geometry

25 views
Skip to first unread message

Emanuele Di Giacomo

unread,
Apr 6, 2017, 11:11:17 AM4/6/17
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages