Geometry.Feature (Geometry v1.1.0)
View SourceA combination of a geometry
and properties
.
Summary
Types
@type t() :: %Geometry.Feature{geometry: Geometry.t() | nil, properties: map() | nil}
Functions
@spec new() :: t()
Creates a new empty Feature
.
Examples
iex> Feature.new()
%Feature{}
@spec new(geometry: Geometry.t(), properties: map()) :: t()
Creates a new Feature
.
Examples
iex> Feature.new(
...> geometry: Point.new(1, 2),
...> properties: %{facility: :hotel}
...> )
%Feature{
geometry: %Point{coordinates: [1, 2]},
properties: %{facility: :hotel}
}