Beispiel #1
0
         public void CanReadShapeFromListOfDecimal()
         {
            var list = new List<decimal> { 5.7m, 9.2m };
            var shapeConvert = new ShapeConverter();
            string result;
            Assert.True(shapeConvert.TryConvert(list, out result));
            Assert.Equal("POINT (5.7 9.2)", result);

         }
Beispiel #2
0
		static SpatialField()
		{
			GeometryServiceProvider.Instance = new NtsGeometryServices();
			GeoContext = new NtsSpatialContext(true);
			ShapeConverter = new ShapeConverter();
		}