How to fetch polygons from PostGIS into a PHP array?

المشرف العام

Administrator
طاقم الإدارة
Currently I fetch polygons from a database table using ST_AsText(). The results are in text format, like this:

POLYGON((84 104,212 48,321 122,243 179,275 238,131 240,84 104))I am not quite sure if ST_AsText() and string manipulation is the way to go for good performance. Is there another way to fetch the points?

How can I get all points of a polygon as an array in PHP?



أكثر...
 
أعلى