AshGeo.Geometry (AshGeo v0.1.0)
Base geometry type
To create a constrained geometry type, use AshGeo.Geometry accepts two
options that may be useful:
Options:
:storage_type(atom/0) - Column type in the databaseExamples
use AshGeo.Geometry, storage_type: :"geometry(Point,26918)":geo_types- AllowedGeotypesExamples
use AshGeo.Geometry, geo_types: :pointuse AshGeo.Geometry, geo_types: [:point, :point_z, :point_zm]use AshGeo.Geometry, geo_types: [Geo.point, Geo.PointZ, Geo.PointZM]See also
AshGeo.Common.geo_default_typesAshGeo.Common.geo_type_aliases
Constraints:
:geo_types- AllowedGeotypesExamples
use AshGeo.Geometry, geo_types: :pointuse AshGeo.Geometry, geo_types: [:point, :point_z, :point_zm]use AshGeo.Geometry, geo_types: [Geo.point, Geo.PointZ, Geo.PointZM]See also
AshGeo.Common.geo_default_typesAshGeo.Common.geo_type_aliases
defmodule App.GeometryPoint26918 do
use AshGeo.Geometry,
storage_type: :"geometry(Point,26918)",
geo_types: :point
end