Skip to content

Tile

Tile Class

A slippy-map tile identified by zoom Z and column/row X/Y (Bing/web-mercator quadkey scheme). Owns a native handle — dispose when done.

public sealed class Tile : System.IDisposable

Inheritance System.Object → Tile

Implements System.IDisposable

Properties

Tile.X Property

Tile column.

public uint X { get; }

Property Value

System.UInt32

Tile.Y Property

Tile row.

public uint Y { get; }

Property Value

System.UInt32

Tile.Z Property

Zoom level.

public byte Z { get; }

Property Value

System.Byte

Methods

Tile.Bbox() Method

The tile's geographic bounds.

public Infrared.Sandbox.CsBindgen.BBox Bbox();

Returns

BBox
A BBox in lon/lat degrees.

Tile.Create(byte, uint, uint) Method

Create a tile from zoom z and tile coordinates x, y.

public static Infrared.Sandbox.CsBindgen.Tile Create(byte z, uint x, uint y);

Parameters

z System.Byte

Zoom level.

x System.UInt32

Tile column.

y System.UInt32

Tile row.

Returns

Tile
A new Tile.

Tile.Dispose() Method

Release the native tile handle.

public void Dispose();

Implements Dispose()

Tile.FromQuadkey(string) Method

Parse a tile from a quadkey string.

public static Infrared.Sandbox.CsBindgen.Tile FromQuadkey(string quadkey);

Parameters

quadkey System.String

A quadkey of digits 0-3, at most 30 long.

Returns

Tile
The parsed Tile.

Exceptions

SandboxException
If the quadkey is invalid.

Tile.Quadkey() Method

The tile's quadkey string.

public string Quadkey();

Returns

System.String
The quadkey.