Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends Geometry does't work with fromArray() #130

Closed
Mohammed-Alama opened this issue Nov 23, 2024 · 1 comment
Closed

Extends Geometry does't work with fromArray() #130

Mohammed-Alama opened this issue Nov 23, 2024 · 1 comment

Comments

@Mohammed-Alama
Copy link

I have been using #125 to extends Polygon class
and I have in issue with create polygons , the main reason to override this classes is to has different SRID other than 0
and when i tried to override fromArray() it's does not working

I think we need to have SRID configurable instead of using it as static value
and also determine how to prioritize it
@MatanYadaev please advice

CleanShot 2024-11-23 at 18 38 35

@MatanYadaev
Copy link
Owner

I believe this fix should help you. Let me know if it didn't. https://github.com/MatanYadaev/laravel-eloquent-spatial?tab=readme-ov-file#set-default-srid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants