A simple demonstration of spatial indexes used with WKT&#x2F;WKB or various shape and geometry column types in GIS databases would be helpful in understanding how an index is used in a typical spatial query (e.g. distance, contains&#x2F;bounds, or intersects).<p>There are also video and image (e.g. histogram) indexes in postgres as well, but they&#x27;re much more rare.