MinPoint Property

Type

GeoCalcNet.CoordPoint

 

Access

Get/Set

 

Description

The MinPoint property provides access to the CoordPoint that gives the minimum coordinate values for this Envelope.  A given point can only be in the envelope if each of its coordinate values is greater than or equal to the coordinate values given by the MinPoint property.

 

Example

[VB]

Private Sub GeoCalcNET_Envelope_MinPoint(ByVal envelope As GeoCalcNET.Envelope, ByVal data As GeoCalcNET.DataSourceComponent)

Dim pt As GeoCalcNET.CoordPoint = envelope.MinPoint

Dim minPt As GeoCalcNET.ProjectedPoint = Data.GetProjectedPoint("BMG", "PROJECTED_POINT_METERS")

minPt.SetInUnits(1500, -375)

envelope.MinPoint = minPt

End Sub

 

[C#]

private void GeoCalcNET_Envelope_MinPoint(GeoCalcNET.Envelope env, GeoCalcNET.DataSourceComponent data)

{

GeoCalcNET.CoordPoint pt1 = env.MinPoint;

if(pt1.Class == GeoCalcNET.CoordPoint.ClassType.Geodetic)

{

GeoCalcNET.CoordPoint pt2 = data.GetGeodeticPoint("BMG", "GEODETIC_POINT_DEGREES");

pt2.SetInUnits(55.42, 3.46);

env.MinPoint = pt2;

}

}