I'm pulling in data from ArcGIS using ArcGIS.PCL which provides the geometries as GeoJson. I'd like to convert this GeoJson to KML. Does anyone know of any .NET libraries that provides this functionality? I've had a good search but nothing has popped up on my radar.
I guess a couple of libraries may be required if there's no catch all for this problem. One that can convert GeoJson to WKT then another that can convert WKT to KML.
Best Answer
I couldn't find a library, but I coded up a solution that fit my requirements to handle polygons only. The code is provided below for anyone else who might find it useful.
ConvertGeoJsonToKml
generates complete KML andConvertGeoJsonToKmlGeometryOnly
generates a cut down KML output suitable for use in Google Fusion Tables.