My current relevent versions:
{:ecto, "3.13.0"},
{:ecto_sql, "\~> 3.10"},
{:postgrex, ">= 0.0.0"},
{:geo, "\~> 4.0.0"},
{:geo_postgis, "\~> 3.7.1"},
Already defined custom types:
Postgrex.Types.define(
MyApp.PostgresTypes,
[Geo.PostGIS.Extension] ++ Ecto.Adapters.Postgres.extensions(),
json: Jason)
Setup on the Repo Config:
# Configure your local dev database
config :my_app, MyApp.Repo,
username: "postgres",
password: "password",
hostname: "localhost",
database: "dev",
stacktrace: true,
show_sensitive_data_on_connection_error: true,
pool_size: 10,
adapter: Ecto.Adapters.Postgres,
types: MyApp.PostgresTypes
I keep getting this error:
GenServer {Postgrex.TypeManager, {Geo.PostGIS.Types, {~c"localhost", 5432, "dev"}}} terminating
** (UndefinedFunctionError) function Geo.PostGIS.Types.find/2 is undefined (module Geo.PostGIS.Types is not available)
Only workaround has been to use raw SQL.