TopographySurface

This class represents a topographic surface as a collection of nested TopographyMap objects. The resolution is expected to decrease as one moves from the most inner map (index 0) to the most outer one, providing a Level of Detail (LoD).

Constructor

class TopographySurface(*maps, offset=None)

The maps arguments must be TopographyMap objects. The first map provided is the innermost. Additionally, a global offset can be specified for all elevation values.

Attributes

TopographySurface.maps: Tuple[TopographyMap]

The sequence of TopographyMap objects describing this surface.

TopographySurface.offset: float

Global offset applied to all elevation values.

Methods

TopographySurface.__call__(x, y, grid=None)

Returns the elevation values at coordinates \((x, y)\), including the surface global offset. The x and y arguments can be float or numpy.ndarray with consistent sizes. If grid is set to True, elevation values are computed over a grid that corresponds to the outer product of x and y, similar to the TopographyMap.__call__() method.