I need to resample a binary image of linear features like roads, rivers to a coarser resolution, conceptually combining multiple pixels into a single one.
1 indicates presence of the linear feature, and
To this end, I was wondering if there is an existing function for resampling a raster such that if any one of the smaller pixel is a one, the output resampled cell is one (, and zero otherwise)? In other words, I want the resampled cell to be the maximum of its constituent cells.
In ArcToolbox, the resample tool only have: NEAREST, BILINEAR, CUBIC, and MAJORITY. None fits the above need.
Is there a way to do this in ArcGIS (or other environments like PostGIS)?