Ticket #1752 (closed enhancement: fixed)
[raster] ST_Neighborhood
| Reported by: | dustymugs | Owned by: | dustymugs |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.1.0 |
| Component: | raster | Version: | trunk |
| Keywords: | history | Cc: |
Description
Along with ST_NearestValue(), a related function is to get the all pixels within N pixel distance from a specific pixel (excluding the specific pixel). The function returns a set of records (x, y, pixel value) that can used for additional processing...
ST_Neighborhood( rast raster, band integer, ix integer, iy integer, distance integer, exclude_nodata_value boolean DEFAULT TRUE, OUT x integer, OUT y integer, OUT val double precision ) -> SETOF record
distance: value greater than zero denoting the size of the neighborhood around the specified pixel. So a value of 4 would be all pixels within the box made by 4 pixels to the left of, 4 pixels to the right of, 4 pixels above and 4 pixels below the specific pixel
ST_Neighborhood( rast raster, ix integer, iy integer, distance integer, exclude_nodata_value boolean DEFAULT TRUE, OUT x integer, OUT y integer, OUT val double precision ) -> SETOF record
ST_Neighborhood( rast raster, band integer, pt geometry, distance integer, exclude_nodata_value boolean DEFAULT TRUE, OUT x integer, OUT y integer, OUT val double precision ) -> SETOF record
ST_Neighborhood( rast raster, pt geometry, distance integer, exclude_nodata_value boolean DEFAULT TRUE, OUT x integer, OUT y integer, OUT val double precision ) -> SETOF record
Change History
Note: See
TracTickets for help on using
tickets.
