See https://postgis.net/docs/manual-dev/topoelementarray.html