public void TestSTMinimumClearanceLine() { using (var db = new PostGisTestDataConnection(TestDatabaseConnectionString)) { var geometry1 = db.Select(() => GeometryInput.STGeomFromText("POLYGON ((0 0, 1 0, 1 1, 0.5 3.2e-4, 0 0))")); var lline1 = db.Select(() => MeasurementFunctions.STMinimumClearanceLine(geometry1).STAsEWKT()); Assert.AreEqual("LINESTRING(0.5 0.00032,0.5 0)", lline1); Assert.IsNull(db.Select(() => MeasurementFunctions.STMinimumClearanceLine(null))); } }