GeoMeasure (GeoMeasure v1.8.0)
View SourceCalculates properties of Geo structs.
Summary
Functions
Calculates the area of a Geo struct.
Calculates the bounding box of a Geo struct.
Calculates the centroid of a Geo struct.
Calculates the distance between two coordinate pairs or points.
Calculates the extent coordinates of a Geo struct.
Calculates the area of the footprint of a 3D Geo struct.
Calculates the length of a 3D linear Geo struct.
Calculates the perimeter of a 3D polygonal Geo struct.
Calculates the length of a linear Geo struct.
Calculates the perimeter of a polygonal Geo struct.
Types
@type geo_line() :: Geo.LineString.t() | Geo.LineStringM.t() | Geo.LineStringZ.t() | Geo.LineStringZM.t()
@type geo_point() :: Geo.Point.t() | Geo.PointM.t() | Geo.PointZ.t() | Geo.PointZM.t()
@type geo_polygon() :: Geo.Polygon.t() | Geo.PolygonZ.t()
Functions
@spec area(geo_polygon()) :: float()
Calculates the area of a Geo struct.
@spec bbox(Geo.geometry()) :: Geo.Point.t() | Geo.PointZ.t() | Geo.Polygon.t()
Calculates the bounding box of a Geo struct.
@spec centroid(Geo.geometry()) :: Geo.Point.t() | Geo.PointZ.t()
Calculates the centroid of a Geo struct.
@spec distance({number(), number()}, {number(), number()}) :: float()
@spec distance(geo_point(), geo_point()) :: float()
Calculates the distance between two coordinate pairs or points.
Calculates the extent coordinates of a Geo struct.
@spec footprint_area(Geo.PolygonZ.t()) :: float()
Calculates the area of the footprint of a 3D Geo struct.
@spec footprint_length(Geo.LineStringZ.t() | Geo.LineStringZM.t()) :: float()
Calculates the length of a 3D linear Geo struct.
@spec footprint_perimeter(Geo.PolygonZ.t()) :: float()
Calculates the perimeter of a 3D polygonal Geo struct.
Calculates the length of a linear Geo struct.
@spec perimeter(geo_polygon()) :: float()
Calculates the perimeter of a polygonal Geo struct.