ArcGIS.Extent (ArcGIS v1.0.2)

View Source

A struct representing a simple box-shaped extent with a norwest and southeast point.

Summary

Functions

Creates an %ArcGIS.Extent{} struct from an array as typically returned by ArcGIS.

Types

t()

@type t() :: %ArcGIS.Extent{
  northwest: Geometry.Point.t(),
  southeast: %Geometry.Point{coordinates: term(), srid: term()}
}

Functions

empty?(extent)

new(arg1)

@spec new([[number()]]) :: t()

Creates an %ArcGIS.Extent{} struct from an array as typically returned by ArcGIS.

It expects two elements in the an array, each containing two coordinates, such as [[north, west], [south, east]]. Otherwise, it will return an empty extent.