Geometry.PointZM (Geometry v1.1.0)

View Source

A point struct, representing a 3D point with a measurement.

Summary

Functions

Creates an empty PointZM.

Creates a PointZM from the given coordinate.

Creates a PointZM from the given x, y, z, and m.

Types

t()

@type t() :: %Geometry.PointZM{
  coordinates: Geometry.coordinates() | [],
  srid: Geometry.srid()
}

Functions

new()

@spec new() :: t()

Creates an empty PointZM.

Examples

iex> PointZM.new()
%PointZM{coordinates: []}

new(coordinate, srid \\ 0)

@spec new(Geometry.coordinates(), Geometry.srid()) :: t()

Creates a PointZM from the given coordinate.

Examples

iex> PointZM.new([1.5, -2.1, 3, 4])
%PointZM{coordinates: [1.5, -2.1, 3, 4]}

new(x, y, z, m, srid \\ 0)

@spec new(number(), number(), number(), number(), Geometry.srid()) :: t()

Creates a PointZM from the given x, y, z, and m.

Examples

iex> PointZM.new(-1.1, 2.2, 3, 4)
%PointZM{coordinates: [-1.1, 2.2, 3, 4], srid: 0}