dojox/geo/openlayers/GreatCircle (version 1.10)

See the dojox/geo/openlayers/GreatCircle reference documentation for more information.

Property Summary

Method Summary

  • toGeometryFeature(p1,p2,increment) Create a geodetic line as an array of dojox.geo.openlayers.GeometryFeature.
  • toLineString(p1,p2,increment) Create a geodetic line as an array of OpenLayers.Geometry.LineString.
  • toPointArray(p1,p2,increment) Create a geodetic line as an array of OpenLayers.Point.

Properties

DEG2RAD
RAD2DEG
TOLERANCE

Methods

toGeometryFeature(p1,p2,increment)

Create a geodetic line as an array of dojox.geo.openlayers.GeometryFeature.

Create a geodetic line as a dojox.geo.openlayers.GeometryFeature between the point p1 ant the point p2. Result is a polyline approximation for which a new point is calculated every increment degrees.

Parameter Type Description
p1 Point

The first point of the geodetic line. x and y fields are longitude and latitude in decimal degrees.

p2 Point

The second point of the geodetic line. x and y fields are longitude and latitude in decimal degrees.

increment Float

The value at which a new point is computed.

Returns:any | instance

The geodetic line as a GeometryFeature

toLineString(p1,p2,increment)

Create a geodetic line as an array of OpenLayers.Geometry.LineString.

Create a geodetic line as a OpenLayers.Geometry.LineString between the point p1 and the point p2. Result is a polyline approximation for which a new point is calculated every increment degrees.

Parameter Type Description
p1 Point

The first point of the geodetic line. x and y fields are longitude and latitude in decimal degrees.

p2 Point

The second point of the geodetic line. x and y fields are longitude and latitude in decimal degrees.

increment Float

The value at which a new point is computed.

Returns:instance
toPointArray(p1,p2,increment)

Create a geodetic line as an array of OpenLayers.Point.

Create a geodetic line as an array of OpenLayers.Point between the point p1 and the point p2. Result is a polyline approximation for which a new point is calculated every increment degrees.

Parameter Type Description
p1 Point

The first point of the geodetic line. x and y fields are longitude and latitude in decimal degrees.

p2 Point

The second point of the geodetic line. x and y fields are longitude and latitude in decimal degrees.

increment Float

The value at which a new point is computed.

Returns:Array
Error in the documentation? Can’t find what you are looking for? Let us know!