Releases: felt/geo_postgis
v3.7.0
New features
- Do not raise on unsuccessful cast, with thanks to new contributor @marmor157 (#156)
- Added support for
st_make_envelope
, with thanks to @mjquinlan2000 (#195)
Updates
- ex_doc updated to v0.32.1
Full Changelog: v3.6.0...v3.7.0
v3.6.0
v3.5.0
New features
- Added ST_MakePoint function (thanks to new contributor @Slavenin!)
- Added ST_IsValid and ST_MakeValid (thanks to new contributor @AntoineAugusti!)
- Added
Geo.PostGIS.Geometry.t()
for Dialyzer (thanks to new contributor @RudolfMan!)
Bug fix
- Corrected ST_Crosses fragment (thanks to new contributor @varjas!)
Compatibility fix
- Update geometry.ex to force recompilation on upgrade—this should make it unnecessary to do the
mix deps.clean
described in the upgrade notes to v3.4.4. In my testing, when moving from v3.4.3 to this release, that step was unnecessary; however, beware that it may still be needed when moving from a branch where you're using v3.5.0 to one using v3.4.3 or earlier.
v3.4.4
As of v3.4.4, geo_postgis
is being maintained by the Felt team. As a company building a geospatial product on Elixir, with a track record of supporting open source software, we're excited for the future of the project.
Elixir 1.15 compatibility
This release fixes a major compatibility issue with Elixir v1.15. When compiling a project that depends on geo_postgis
prior to this release, you may have seen errors like this:
== Compilation error in file lib/my_app/my_module.ex ==
** (ArgumentError) unknown type Geo.PostGIS.Geometry for field :bounding_box
(ecto 3.10.3) lib/ecto/schema.ex:2318: Ecto.Schema.check_field_type!/4
(ecto 3.10.3) lib/ecto/schema.ex:1931: Ecto.Schema.__field__/4
lib/my_app/my_module.ex:23: (module)
...or:
** (UndefinedFunctionError) function Geo.PostGIS.Geometry.type/0 is undefined (module Geo.PostGIS.Geometry is not available)
Geo.PostGIS.Geometry.type()
As new contributor @aeruder pointed out, this was due to a change in how Elixir 1.15 prunes code more precisely when compiling dependencies, resulting in the Geo.PostGIS.Geometry
module being compiled out if Ecto didn't happen to get compiled before it. This release fixes the issue, but you'll still need to recompile both geo_postgis
and ecto
to get things working again.
Upgrade notes
If you're using Elixir 1.15, after installing v3.4.4, you'll need to run:
mix deps.clean geo_postgis ecto && mix deps.get
(Alternatively, a full clean build of your project will also do the job.)
Doing so will ensure geo_postgis
compiles with the Ecto dependency and fixes the compilation errors noted above.
Note that you'll also need to run the above one-liner if you need to switch back to a previous version of geo_postgis
(e.g., when moving between branches). However, if you can stick with the new version going forward, you'll only have to run it once.
Fixed
- Elixir 1.15 compatibility (see notes above)
- Called out the optional Ecto dependency in
mix.exs
- Updated docs links to point to the project's new home in the Felt GitHub organization
- Dependency updates for
ecto_sql
,postgrex
, andex_doc
- Bumped the minimum Elixir version to v1.11, matching
postgrex
v0.16.0+
v3.4.3
v3.4.1
What's Changed
- Support ST_BuildArea by @wesleimp in #115
- Adapt readme (Ecto naming change) by @thbar in #122
- Clarify compatibility issue with string arguments by @marcandre in #114
- Upgrade to GitHub-native Dependabot by @dependabot-preview in #112
- Bump geo from 3.4.0 to 3.4.2 by @dependabot-preview in #109
- Bump ecto_sql from 3.6.0 to 3.6.2 by @dependabot-preview in #113
New Contributors
- @thbar made their first contribution in #122
- @marcandre made their first contribution in #114
Full Changelog: v3.4.0...v3.4.1