Postgres earth ERROR: value for domain earth violates check constraint "on_surface"

Postgres earth ERROR: value for domain earth violates check constraint "on_surface"

创建索引 PostgreSQL earth 时出错

CREATE INDEX "branch_location" ON "systems_branch" USING gist (ll_to_earth("latitude", "longitude"))

我在控制台中收到此错误消息

ERROR:  value for domain earth violates check constraint "on_surface"
CONTEXT:  SQL function "ll_to_earth" statement 1

纬度和经度不能在所有行中为空