AshGeo.GeoWkb (AshGeo v0.1.3)

Geometry type which accepts and decodes WKB input

Accepts all options of AshGeo.Geometry, and may be narrowed with use in the same way.

Options

  • :storage_type (atom/0) - Column type in the database

    Examples

      use AshGeo.Geometry, storage_type: :"geometry(Point,26918)"
  • :geo_types - Allowed Geo types

    Examples

    use AshGeo.Geometry, geo_types: :point
    use AshGeo.Geometry, geo_types: [:point, :point_z, :point_zm]
    use AshGeo.Geometry, geo_types: [:point, Geo.PointZ, :point_zm]

    See also

Summary

Functions

Link to this function

cast_input(value, constraints)

(since 0.1.0)

Try decoding with Geo.WKB.