samples For Resolution
Compute the samplesPerSide count that yields approximately metersPerPixel resolution given the shape's current area. Useful when the caller wants the kernel grid to match the native resolution of an underlying DEM — for example 30.0 for NASADEM or 90.0 for SRTM3 — so the kernel doesn't oversample beyond what the source data actually provides. Result is clamped to >= 2 and computed against the longer axis of the area.
Throws
if metersPerPixel is non-positive