geometry storage into aggregate is not "standard". The string stores 4 dimension for each edge and ends with the first one (to close the line). We faced it and then created a function on PostgreSQL to generate proper geometries. So this post might help you if you store your datas into PostgreSQL :