I have table with column name,Latitude and Longitude.I want to update this with polygon name and its centroid latitude longitude.I know there is a function in postgis st_centroid(geometry). But I want to enter x value and Y value in a separate column.How can I do this?
- You want to write x and y of the centroid into new columns/attributes?underdark– underdark2012-09-24 06:45:45 +00:00Commented Sep 24, 2012 at 6:45
- Yes, I have latitude and longitude columns.But St_centroid returns lat long value in a single columnSreesha– Sreesha2012-09-24 06:52:17 +00:00Commented Sep 24, 2012 at 6:52
Add a comment |