Example #1
0
        public void ParseGeoJsonText4()
        {
            GeoPoint gp = new GeoPoint(-104, 39);

            string text = gp.ToGeoJson();

            Assert.IsNotNull(text);

            GeoPoint gp2 = new GeoPoint();

            gp2.FromGeoJson(text);

            Assert.IsNotNull(gp2);
            Assert.AreEqual(gp.X, gp2.X);
            Assert.AreEqual(gp.Y, gp2.Y);
        }