Table of Contents

Class LandLevel

Namespace
EncDotNet.S100.Renderers.Skia.Scene
Assembly
EncDotNet.S100.Renderers.Skia.dll

One level of detail of the bundled land basemap (issue #731): the land simplified to Tolerance and cut into a GridSize×GridSize grid of LandTiles, so a renderer draws only the tiles in view. Tiles are decoded on first use.

public sealed class LandLevel
Inheritance
LandLevel
Inherited Members

Properties

GridSize

The number of tiles along each side of the world square.

public int GridSize { get; }

Property Value

int

TileSize

The side of one tile, in EPSG:3857 metres.

public double TileSize { get; }

Property Value

double

Tolerance

The simplification tolerance in EPSG:3857 metres: no point of the level's coastline is further than this from the source coastline. 0 for the full-resolution level.

public double Tolerance { get; }

Property Value

double

Methods

GetTiles(double, double, double, double)

The tiles that hold land and intersect the given EPSG:3857 rectangle. Only the single world (±Circumference/2) is covered; a caller that draws adjacent world copies offsets its query rectangle per copy.

public IReadOnlyList<LandTile> GetTiles(double minX, double minY, double maxX, double maxY)

Parameters

minX double
minY double
maxX double
maxY double

Returns

IReadOnlyList<LandTile>