Table of Contents

Class MapViewport

Namespace
EncDotNet.S100.Maps
Assembly
EncDotNet.S100.Core.dll

A geographic viewport: a centre point, a scale, and a rotation. No pixel size.

public sealed record MapViewport : IEquatable<MapViewport>
Inheritance
MapViewport
Implements
Inherited Members

Constructors

MapViewport(double, double, double, double)

A geographic viewport: a centre point, a scale, and a rotation. No pixel size.

public MapViewport(double CenterLongitude, double CenterLatitude, double ScaleDenominator, double RotationDegrees = 0)

Parameters

CenterLongitude double

Centre longitude (decimal degrees, WGS-84).

CenterLatitude double

Centre latitude (decimal degrees, WGS-84).

ScaleDenominator double

Map scale denominator (e.g. 50000 for 1:50000). Must be positive.

RotationDegrees double

Clockwise rotation in degrees; 0 is north-up.

Properties

CenterLatitude

Centre latitude (decimal degrees, WGS-84).

public double CenterLatitude { get; init; }

Property Value

double

CenterLongitude

Centre longitude (decimal degrees, WGS-84).

public double CenterLongitude { get; init; }

Property Value

double

RotationDegrees

Clockwise rotation in degrees; 0 is north-up.

public double RotationDegrees { get; init; }

Property Value

double

ScaleDenominator

Map scale denominator (e.g. 50000 for 1:50000). Must be positive.

public double ScaleDenominator { get; init; }

Property Value

double