Documentation du code de SPIP et de ses plugins

Nomenclatures officielles

Area
in package

Table of Contents

Methods

geometry()  : mixed
polygonArea()  : mixed
rad()  : mixed
ringArea()  : mixed
Calculate the approximate area of the polygon were it projected onto the earth. Note that this area will be positive if ring is oriented clockwise, otherwise it will be negative.

Methods

geometry()

public static geometry(mixed $geojson) : mixed
Parameters
$geojson : mixed

polygonArea()

public static polygonArea(mixed $coords) : mixed
Parameters
$coords : mixed

rad()

public static rad(mixed $coord) : mixed
Parameters
$coord : mixed

ringArea()

Calculate the approximate area of the polygon were it projected onto the earth. Note that this area will be positive if ring is oriented clockwise, otherwise it will be negative.

public static ringArea(mixed $coords) : mixed

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 http://trs-new.jpl.nasa.gov/dspace/handle/2014/40409

Returns: {float} The approximate signed geodesic area of the polygon in square meters.

Parameters
$coords : mixed

        
On this page

Search results