Esempio n. 1
0
        public void TestSTMPointFromText()
        {
            using (var db = new PostGisTestDataConnection(TestDatabaseConnectionString))
            {
                const string wkt1 = "MULTIPOINT ((1 2), (3 4))";

                var g1 = db.Select(() => GeometryInput.STMPointFromText(wkt1, SRID3857));

                Assert.AreEqual(wkt1, g1.AsText());
                Assert.AreEqual(SRID3857, g1.SRID);

                Assert.IsNull(db.Select(() => GeometryInput.STMPointFromText("POINT(1 2)")));
                Assert.IsNull(db.Select(() => GeometryInput.STMPointFromText(null)));
            }
        }