PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
Get a raster pixel as a polygon.
The pixel shape is a 4 vertices (5 to be closed) single ring polygon bearing the raster's rotation and using projection coordinates
raster | : the raster to get pixel from |
x | : the column number |
y | : the row number |
Definition at line 610 of file rt_geometry.c.
References lwpoly_construct(), ptarray_construct(), ptarray_set_point4d(), rt_raster_get_srid(), rt_raster_get_x_offset(), rt_raster_get_x_scale(), rt_raster_get_x_skew(), rt_raster_get_y_offset(), rt_raster_get_y_scale(), rt_raster_get_y_skew(), rtalloc(), POINT4D::x, and POINT4D::y.
Referenced by RASTER_getPixelPolygons(), RASTER_nearestValue(), and test_raster_pixel_as_polygon().