https://github.com/bytefish/kmltogeojson
A small library to convert from KML to GeoJSON.
https://github.com/bytefish/kmltogeojson
Last synced: 11 months ago
JSON representation
A small library to convert from KML to GeoJSON.
- Host: GitHub
- URL: https://github.com/bytefish/kmltogeojson
- Owner: bytefish
- License: mit
- Created: 2020-10-10T12:12:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-15T09:42:54.000Z (about 1 year ago)
- Last Synced: 2025-06-19T01:07:13.645Z (12 months ago)
- Language: C#
- Size: 321 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KmlToGeoJson #
KmlToGeoJson is a small library to convert from KML to GeoJSON.
## Installing ##
To install KmlToGeoJson, run the following command in the Package Manager Console:
```
PM> Install-Package KmlToGeoJson
```
## Example Usage ##
```csharp
namespace KmlToGeoJson.Test
{
public class GeoJsonConverterTests
{
[Test]
public void Test_ConvertFromKmlToGeoJSON()
{
var xml = File.ReadAllText("style.kml");
var json = KmlToGeoJsonConverter.FromKml(xml);
// Now you can work with the GeoJSON data ...
}
}
}
```
## License ##
KmlToGeoJson is licensed under the MIT License. See [LICENSE](LICENSE) for details.