PostGIS
Description
Returns the centroid (point geometry) of the area represented by a pixel.
Enhanced: 3.2.0 Faster now implemented in C.
Availability: 2.1.0
Examples
SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = 1;
st_astext
--------------
POINT(1.5 2)
See Also
ST_DumpAsPolygons, ST_PixelAsPolygon, ST_PixelAsPolygons, ST_PixelAsPoint, ST_PixelAsPoints, ST_PixelAsCentroids
ST_PixelAsPoints |
ST_PixelAsCentroids |