grimzy / laravel-mysql-spatial

MySQL Spatial Data Extension integration with Laravel.
Other
796 stars 315 forks source link

[Question] How to extend the library to include ST_BUFFER(g, d) ? #74

Open Mina-R-Meshriky opened 5 years ago

Mina-R-Meshriky commented 5 years ago

ST_BUFFER(g, d) creates a polygon from a point and a radius. the problem is I want a way to make polygons from points. and I found that this can be acheived by st-buffer, but I can't find this function in the library

grimzy commented 5 years ago

Unfortunately, ST_BUFFER(g, d) is not currently implemented. I can probably add it later; sorry I'm a little busy these days.

You could add a scope in your Model. Similarly to how the Spatial Analysis Functions are implemented in SpatialTrait.

Also, PR would be great! 👍