PolygonDistanceTo Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Returns the shortest distance from the given location to the edge of this Polygon,
in the specified units. If the given location is inside this Polygon, the distance
returned will be zero. This is calculated using the
great circle distance.
Namespace:
Telogis.GeoBase.Geometry
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public double DistanceTo(
LatLon loc,
DistanceUnit units
)
Public Function DistanceTo (
loc As LatLon,
units As DistanceUnit
) As Double
Parameters
- loc
- Type: Telogis.GeoBaseLatLon
The location whose distance from the polygon you want to know. - units
- Type: Telogis.GeoBaseDistanceUnit
The result will be measured in these units
Return Value
Type:
DoubleShortest distance from
loc to the edge of this Polygon in
units units,
or zero if
loc is inside the Polygon.
See Also