Skip to contents

A whole-world extent is a legitimate answer for an ASSET (a global raster of a wraparound range really does run -180..180) and a useless one for a CAMERA: it says "look at everything", which shows the user nothing. Callers use this to reject such a box and fall back to a data-derived extent, the same way they already treat a missing one.

Usage

bbox_spans_globe(bb, max_span = 350)

Arguments

bb

numeric c(xmin, ymin, xmax, ymax), or NULL

max_span

widest longitude span still considered informative, degrees

Value

TRUE when bb is absent, non-finite, or spans >= max_span