A helper class providing static geometric functions such as Move, Scale, Simplify and Project.

Namespace:  ESRI.ArcGISExplorer.Geometry

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public static class GeometryOperations
Visual Basic (Declaration)
Public NotInheritable Class GeometryOperations

Remarks

The functions in this class leave the input geometry unchanged; the return value of the function is a new geometry based on the input and the function.

Examples

The code below shows how you can project a Point to a different CoordinateSystem, using the static Project method on the GeometryOperations class. The initial Point is specified using a geographical coordinate system, with coordinates in latitude and longitude. A new Point is then created by projecting the original Point to a projected coordinate system.
CopyC#
// Create a Point at Greenwich, UK. By default new Geometries have the WGS 1984 geographical coordinate system.
ESRI.ArcGISExplorer.Geometry.Point geographicalGreenwich = new ESRI.ArcGISExplorer.Geometry.Point(0, 51.4791);

// Create the destination coordinate system, British National Grid, and project the point to this system.
CoordinateSystem projected = CoordinateSystem.ProjectedCoordinateSystems.NationalGrids.Europe.BritishNationalGrid;
ESRI.ArcGISExplorer.Geometry.Point projectedGreenwich = GeometryOperations.Project(geographicalGreenwich as Geometry, projected)
    as ESRI.ArcGISExplorer.Geometry.Point;
CopyVB.NET
' Create a Point at Greenwich, UK. By default new Geometries have the WGS 1984 geographical coordinate system.
Dim geographicalGreenwich As ESRI.ArcGISExplorer.Geometry.Point = New ESRI.ArcGISExplorer.Geometry.Point(0, 51.4791)

' Create the destination coordinate system, British National Grid, and project the point to this system.
Dim projected As CoordinateSystem = CoordinateSystem.ProjectedCoordinateSystems.NationalGrids.Europe.BritishNationalGrid
Dim projectedGreenwich As ESRI.ArcGISExplorer.Geometry.Point = GeometryOperations.Project(geographicalGreenwich, projected)

Inheritance Hierarchy

System..::.Object

  ESRI.ArcGISExplorer.Geometry..::.GeometryOperations

See Also