laravel-eloquent-spatial icon indicating copy to clipboard operation
laravel-eloquent-spatial copied to clipboard

Fix SRID not being optional for expression in GeometryCast

Open nickknissen opened this issue 7 months ago • 2 comments

The current implementation of GeometryCast requires SRID to pressent in the expression.

The ST_GeomFromText specifications allows SRID not to be specified

I have adjusted GeometryCast to use the same regex and return 0 when SRID is not defined.

nickknissen avatar Jul 02 '24 13:07 nickknissen