GeoJSON.NET
GeoJSON.NET copied to clipboard
GeoJson.NET is a library to convert KML files into GeoJSON format for .NET
GeoJSON.NET
Convert KML to GeoJSON
GeoJson.NET is a library to convert KML files into GeoJSON format for .NET.
GeoJSON is a format for encoding a variety of geographic data structures. The GeoJSON format is based on JavaScript Object Notation (JSON). For more detail about the GeoJSON format please see the full specification.
This .NET project is based on the JavaScript project toGeoJSON.
API
GeoJsonConvert.Convert(xml)
Convert a KML document to GeoJSON. The first argument, xml
, must be an XmlDocument
document.
The output is a string of GeoJSON data.
GeoJsonConvert.Convert(kml)
Convert a KML document to GeoJSON. The first argument, kml
, must be a System.String representation of a KML document.
The output is a string of GeoJSON data.
KML
Supported:
- Polygon
- name & description
- ExtendedData
- SimpleData
In Progress:
- Point
- LineString
- MultiGeometry -> GeometryCollection
- Styles with hashing
- Tracks & MultiTracks with
gx:coords
, including altitude - TimeSpan
Not supported yet:
- Various silly Google extensions (will never be supported)
- NetworkLinks
- GroundOverlays
GeoJSON (and JSON) Resources
- The GeoJSON Format Specification
- toGeoJSON Online Converter
- GeoJSON Validator
- Another GeoJSON Validator
- GeoJSON Discussion List
- Bing Maps V7 GeoJSON Module
- JSON Editor Online
- James Newton-Kings' Json.NET Library
- JSON Schema for describing your JSON data format