Re: Parse polygon and save the coordinates

Hello everyone

I would like to parse a polygon which is saved in the database. Each of the vertices has a latitude and longitude and the polygon is closed.

My question is an extension to what has been done in the link below.


As told, I have seperated the latitude and longitude. Now I have a table containing latitude and longitude. I want to put the value of X and Y in it. But I am not able to do it.

Could you please help me out how to do in PHP? I am completely new to this language.