Convert KML to WKT

I try to POST a json containing WKT geodata.
But the geodata is stored in a KML file.

How can I do this? Is there a node for the job?

You can search for existing nodes in the Flows section of the site.

If there isn't anything there, a quick Internet search found some node.js libraries to turn WKT to KML but nothing really the other way around. Most of the converters seem to be to/from GeoJSON so you might need to do a double conversion from KML to GeoJSON and then from that to WKT.

Many Node.js libraries will work with function nodes.

1 Like