Obtain double precision values from inconsitent strings for using ST_GeomFromText (PostGIS)
问题 I have a PostgreSQL table with a column containing strings in the following format: '3.985 58.934, 4.56 61.2323, 5.4 63.234355, 3.25982 59.309' '3.985 58.934, 4.56 61.2323, 5.4 63.234355, 3.25982 59.309, 4.5632 58.32423' 'and so on...' As you can see the column contains coordinates in different lengths as strings in one line. I would like to use the PostGIS function: ST_GeomFromText('LINESTRING(3.985 58.934, 4.56 61.2323, 5.4 63.234355, 3.25982 59.309)', 4326) The following questions now