Answer the question
In order to leave comments, you need to log in
How to cast json to geojson in mysql?
In geojson the polygon array looks like this
SET @g = 'POLYGON((0 0.10 0.10 10.0 10.0 0),(5 5.7 5.7 7.5 7, 5 5))';
Answer the question
In order to leave comments, you need to log in
Alas, as far as I know, the muscle can only store data in json, so you need to store it in it, and you need to get it for work and convert it to geojson in php. There is a good library for this:
https://github.com/bmcbride/PHP-Database-GeoJSON/b...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question