# Convert KML to WKT

**URL:** https://discourse.nodered.org/t/convert-kml-to-wkt/85831
**Category:** General
**Created:** [23 February 2024 19:49 UTC](https://discourse.nodered.org/t/convert-kml-to-wkt/85831 "2024-02-23T19:49:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pat1](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pat1](https://discourse.nodered.org/u/pat1)
#### Post date: [23 February 2024 19:49 UTC](https://discourse.nodered.org/t/convert-kml-to-wkt/85831/1 "2024-02-23T19:49:16Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [23 February 2024 20:43 UTC](https://discourse.nodered.org/t/convert-kml-to-wkt/85831/2 "2024-02-23T20:43:43Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 May 2024 20:44 UTC](https://discourse.nodered.org/t/convert-kml-to-wkt/85831/3 "2024-05-23T20:44:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
