Table of Contents

Class GeoRectExtensions

Namespace
Pinwheel.Vista.RealWorldData
Assembly
Pinwheel.Vista.RealWorldData.Runtime.dll

Adds subdivision, transform, validation, and coordinate-space conversion helpers for GeoRect.

public static class GeoRectExtensions
Inheritance
GeoRectExtensions
Inherited Members

Methods

CalculateSizeApproxInKMs(GeoRect, out double, out double)

Estimates the rectangle size in kilometers using a simple degrees-to-kilometers conversion.

ExpandMeters(GeoRect, double)

Expands the rectangle outward by the same distance on all four sides.

GetBottomLeft(GeoRect)

Returns the bottom-left quadrant of the rectangle.

GetBottomRight(GeoRect)

Returns the bottom-right quadrant of the rectangle.

GetTopLeft(GeoRect)

Returns the top-left quadrant of the rectangle.

GetTopRight(GeoRect)

Returns the top-right quadrant of the rectangle.

GpsToWebMercator(GeoRect, int)

Converts a GPS rectangle into Web Mercator pixel space.

MoveTowards(GeoRect, GeoRect, double, double)

Moves each side of one rectangle toward the matching side of another rectangle.

Offset(GeoRect, double, double)

Offsets the rectangle by the supplied horizontal and vertical distances.

Scale(GeoRect, double, double, double)

Scales the rectangle around a normalized pivot inside the rectangle.

ValidateGPS(GeoRect)

Wraps the rectangle bounds back into standard GPS longitude and latitude ranges.

Viewport100ToWebMercator(GeoRect, int)

Converts a viewport-100 rectangle back into Web Mercator pixel space.

WebMercatorToGps(GeoRect, int)

Converts a Web Mercator rectangle back into GPS coordinates.

WebMercatorToViewport100(GeoRect, int)

Converts a Web Mercator rectangle into the normalized viewport-100 space used by map-tile utilities.