EctoPgGeom (ecto_pg_geom v0.1.2)

A collection of modules allowing Postgres Geometry types to be used in Ecto, via the Postgrex library.

Link to this section Summary

Functions

A macro that generates an Ecto fragment which compares the equality of two geometries. Required for testing equality of geometric types such as points and polygons which do not have a functional = operator.

Link to this section Functions

Link to this macro

geometric_equality(p1, p2)

(macro)

A macro that generates an Ecto fragment which compares the equality of two geometries. Required for testing equality of geometric types such as points and polygons which do not have a functional = operator.

To use import EctoPgGeom, only: [geometric_equality: 2] and then you may use in e.g. Ecto query where clauses: geometric_equality(t.point, point)