public void TestSTBdMPolyFromText() { using (var db = new PostGisTestDataConnection(TestDatabaseConnectionString)) { const string Wkt1 = "MULTILINESTRING ((0 0 -10, 1 0 -5, 1 1 -5, 0 1 -5, 0 0 10), (2 2 -3, 4 2 -1, 4 4 -1, 2 4 -1, 2 2 -3))"; var result = db.Select(() => GeometryInput.STBdMPolyFromText(Wkt1, 23030)) as NTSGS.MultiPolygon; // "SRID=23030;MULTIPOLYGON(((0 0 10,0 1 -5,1 1 -5,1 0 -5,0 0 -10)),((2 2 -3,2 4 -1,4 4 -1,4 2 -1,2 2 -3)))" Assert.IsNotNull(result); Assert.AreEqual(23030, result.SRID); Assert.AreEqual(2, result.Geometries.Length); Assert.IsNull(db.Select(() => GeometryInput.STBdMPolyFromText(null, 0))); } }