-
Notifications
You must be signed in to change notification settings - Fork 39
GeoJSON
Simon Bartlett edited this page Jan 26, 2013
·
1 revision
Geo can read and write GeoJSON. Objects that implement IGeoJsonObject can be read and written to GeoJSON.
There are two types specific to GeoJSON:
- Feature
- FeatureCollection
var reader = new GeoJsonReader();
IGeoJsonObject point = reader.Read("{ \"type\": \"Point\", \"coordinates\": [100.0, 0.0] }"); // reading a string
var writer = new GeoJsonWriter();
var pointJson = writer.Write(new Point(68.389, 73.89));