JOJ-56: Spatial extents now don't wrap around the dateline. Improved error messages.