raster_centroid: Find center of a raster

View source: R/fun_spatial.R

raster_centroidR Documentation

Find center of a raster

Description

Calculates the middle point of a raster from its extent. Assumes the projection is British National Grid (EPSG 27700). Not to be called directly: used in the add_DTM() workflow to assign a grid reference to tiles.

Usage

raster_centroid(r)

Arguments

r

The raster object

Value

A sf point


ecoservR/ecoserv_tool documentation built on April 5, 2025, 1:49 a.m.