C# Class ESRIUK.DynamicLocators.BNGLocator.TranslateGridReference

Class from Productivity Suite that does BNG Transformation and Grid Lookup
ファイルを表示 Open project: EsriUK/dynamic-locator-sdk Class Usage Examples

Public Methods

Method Description
GetExtents ( string in_coord ) : Envelope

Gets the extents from the "in_ngr_coord" string.

GetGridReference ( IPoint location ) : string

Accecpts a point and converts it to a UK grid reference, this is not 100% accurate

TranslateGridReference ( ) : System

Private Methods

Method Description
ClassifyTwoLetters ( string letterRef ) : System.Point

Determine what Grid Ref letters match the coordinates

IsInteger ( string stringValue ) : bool

Check if a value is an Int

MakeRectangle ( double X, double Y, double width, double height ) : Envelope

Create an Envelope

ShiftCoordinate ( System.Point &point, string numbers ) : int

Shifts the coordinate.

loadArray ( ) : void

Method Details

GetExtents() public method

Gets the extents from the "in_ngr_coord" string.
public GetExtents ( string in_coord ) : Envelope
in_coord string The in_ngr_coord.
return Envelope

GetGridReference() public method

Accecpts a point and converts it to a UK grid reference, this is not 100% accurate
public GetGridReference ( IPoint location ) : string
location IPoint
return string

TranslateGridReference() public method

public TranslateGridReference ( ) : System
return System