PilotGaea 2D O'view
    正在準備搜尋索引...

    類別 Sphere

    Class to create objects that can be used with ol.geom.Polygon.circular.

    For example to create a sphere whose radius is equal to the semi-major axis of the WGS84 ellipsoid:

    var wgs84Sphere= new ol.Sphere(6378137);
    

    Radius.

    索引

    方法

    • Returns the geodesic area for a list of coordinates.

      Reference Robert. G. Chamberlain and William H. Duquette, "Some Algorithms for Polygons on a Sphere", JPL Publication 07-03, Jet Propulsion Laboratory, Pasadena, CA, June 2007

      參數

      • coordinates: Coordinate[]

        List of coordinates of a linear ring. If the ring is oriented clockwise, the area will be positive, otherwise it will be negative.

      回傳 number

      Area.

    • Returns the distance from c1 to c2 using the haversine formula.

      參數

      回傳 number

      Haversine distance.

    構造函數

    • 參數

      • radius: number

        Radius.

      回傳 Sphere

      Class to create objects that can be used with ol.geom.Polygon.circular.

      For example to create a sphere whose radius is equal to the semi-major axis of the WGS84 ellipsoid:

      var wgs84Sphere= new ol.Sphere(6378137);