Spatial4n - sibartlett/Geo GitHub Wiki

Geo can read and write Spatial4n/Spatial4j strings. Types that implement ISpatial4nShape can be read and written to Spatial4n/Spatial4j strings. Currently this includes all geometry types, even circles, and envelopes.

Spatial4n/Spatial4j strings are superset of Well-known text; supporting circles and rectangles (envelopes). However they are limited to only 2 dimensions.

Reading

var reader = new Spatial4nReader();
ISpatial4nShape circle = reader.Read("Circle (73.89 68.389 d=0.236)"); // reading a string

Writing

var writer = new Spatial4nWriter();
var pointString = writer.Write(new Circle(68.389, 73.89, 467000));