I'm working on a workflow that uses the PythonCaller to extract coordinates from a source file of my choice and puts them in a results attribute. My plan is to replace the existing geometry with the one extracted using the GeometryReplacer with the OGC WKT encoding.
As an example:
This format needs to go into the GeometryReplacer
LINESTRING(161274.467 453784.372,161277.253 453785.924,161279.958 453787.131,161280.921 453787.508)
What i got is something like this, but it could be longer or shorter but always has a x and y coordinate but rounding after the comma could be different:
161274.467 453784.372 161277.253 453785.924 161279.958 453787.131 161280.921 453787.508
How can you replace every second space with a comma without making it too static?This example contains four coordinates but it could have 8, 100 or more. After this stap i use LINESTRING(@Value(result)) to add the linestring text.