C# Class Gbdx.ArcUtility

The arc utility.
Mostrar archivo Open project: DigitalGlobe/DGConnect-ESRI

Public Properties

Property Type Description
HitRegex System.Text.RegularExpressions.Regex

Public Methods

Method Description
AddXyEventLayer ( ITable table, string query, bool tweetShow = true ) : void

The add XY event layer.

CreateTableName ( string layerName ) : string

The create table name.

DeleteElementFromGraphicContainer ( IActiveView activeView, IElement target ) : void

Deletes the targeted Element from the maps graphics container.

DistanceTo ( IPoint point1, IPoint point2 ) : double

Returns the distance between the two points

GetLength ( IPolyline polyLine ) : double

Gets the length of a given Polyline. This function assumes that the Line is WGS84 Latitude, Longitude

GetMapCoordinatesFromScreenCoordinates ( IPoint screenPoint, IActiveView activeView ) : IPoint

Converts screen coordinates to esri point coordinates

ValidateRoundedWgs84Polygon ( IEnvelope env ) : bool

The validate rounded WGS 84 polygon.

ValidateWgs84Polygon ( IEnvelope env ) : bool

The validate WGS 84 polygon.

Private Methods

Method Description
GetHaverSineDistance ( ISegment seg ) : double

Returns the distance in kilometers of a segment

ToRadian ( double val ) : double

Convert to Radians.

Method Details

AddXyEventLayer() public static method

The add XY event layer.
public static AddXyEventLayer ( ITable table, string query, bool tweetShow = true ) : void
table ITable /// The table. ///
query string /// The query. ///
tweetShow bool /// The tweet show. ///
return void

CreateTableName() public static method

The create table name.
public static CreateTableName ( string layerName ) : string
layerName string /// The layer name. ///
return string

DeleteElementFromGraphicContainer() public static method

Deletes the targeted Element from the maps graphics container.
public static DeleteElementFromGraphicContainer ( IActiveView activeView, IElement target ) : void
activeView IActiveView /// active view of the map ///
target IElement /// element that is to be deleted. ///
return void

DistanceTo() public static method

Returns the distance between the two points
public static DistanceTo ( IPoint point1, IPoint point2 ) : double
point1 IPoint /// Point 1 ///
point2 IPoint /// Point 2 ///
return double

GetLength() public static method

Gets the length of a given Polyline. This function assumes that the Line is WGS84 Latitude, Longitude
public static GetLength ( IPolyline polyLine ) : double
polyLine IPolyline /// Input Polyline ///
return double

GetMapCoordinatesFromScreenCoordinates() public static method

Converts screen coordinates to esri point coordinates
public static GetMapCoordinatesFromScreenCoordinates ( IPoint screenPoint, IActiveView activeView ) : IPoint
screenPoint IPoint /// the point on the screen ///
activeView IActiveView /// esri active view ///
return IPoint

ValidateRoundedWgs84Polygon() public static method

The validate rounded WGS 84 polygon.
public static ValidateRoundedWgs84Polygon ( IEnvelope env ) : bool
env IEnvelope /// The env. ///
return bool

ValidateWgs84Polygon() public static method

The validate WGS 84 polygon.
public static ValidateWgs84Polygon ( IEnvelope env ) : bool
env IEnvelope /// The env. ///
return bool

Property Details

HitRegex public_oe static_oe property

The hit regex.
public static Regex,System.Text.RegularExpressions HitRegex
return System.Text.RegularExpressions.Regex