You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a geography column (called location) and the built-in withDistance and whereDistance functions are casting the column to a geometry (via GeometryExpression:normalize()). Are geography columns not supported?
public function normalize(ConnectionInterface $connection): string
{
return $connection instanceof PostgresConnection
? $this->expression.'::geometry'
: $this->expression;
}
The text was updated successfully, but these errors were encountered:
AlexGodbehere
changed the title
withDistance casting to geometrywithDistance casting to geometry when underlying column is geography
May 26, 2024
I have a
geography
column (calledlocation
) and the built-inwithDistance
andwhereDistance
functions are casting the column to ageometry
(viaGeometryExpression:normalize()
). Aregeography
columns not supported?The text was updated successfully, but these errors were encountered: