NetTopologySuite: calculate length/area of geography

Viewed 130

I've been using DbGeography in C# to calculate length and area of WKT geometries (geographies), like this:

var polygon = DbGeography.FromText(wkt, 4326);
var area = polygon.Area;
var line = DbGeography.FromText(wkt2, 4326);
var length = line.Lenght;

How can I achieve this using NetTopologySuite? My WKTs represent lat/longs in degrees. Are there any existing implementations?

0 Answers
Related