title: How to create Polygon from Geo points in google bigquery
body: <p>I have a table in bigquery which contain 11 geo points with their ids. I want to create a polygon from these points. I am using below query to create a polygon. but getting error <code>ST_MakePolygon failed: Invalid polygon loop: Edge 2 has duplicate vertex with edge 7</code>, what is the correct way to create a polygon?</p>
  <p><strong>Query:</strong></p>
  <p><code>Select ST_MAKEPOLYGON(ST_MAKELINE(ARRAY_AGG(ST_GEOGFROMTEXT(wkt_geom)))) as polygons from bd.wari_lockdown_area</code></p>
  <p><strong>Table bd.wari_lockdown_area:</strong></p>
  <p><a href="https://i.stack.imgur.com/E3BXO.png" rel="nofollow noreferrer">wari_lockdown_area</a></p>