Exemplo n.º 1
0
        public void GeoTiffProviderConstructor_WhenInitialized_ShouldReturnFeatures()
        {
            var location        = $@"{AssemblyInfo.AssemblyDirectory}\Resources\example.tif";
            var geoTiffProvider = new GeoTiffProvider(location);
            var test            = geoTiffProvider.GetExtents().Left.ToString(CultureInfo.InvariantCulture);

            Console.WriteLine(test);
        }
Exemplo n.º 2
0
        public void GeoTiffProviderConstructor_WhenInitialized_ShouldReturnFeatures()
        {
            const string location        = @".\Resources\example.tif";
            var          geoTiffProvider = new GeoTiffProvider(location);
            var          test            = geoTiffProvider.GetExtents().Left.ToString();

            Console.WriteLine(test);
        }
Exemplo n.º 3
0
        public void GeoTiffProviderConstructor_WhenInitialized_ShouldReturnFeatures()
        {
            var location = Path.Combine(AssemblyInfo.AssemblyDirectory, "Resources", "example.tif");

            using var geoTiffProvider = new GeoTiffProvider(location);
            var test = geoTiffProvider.GetExtent()?.Left.ToString(CultureInfo.InvariantCulture);

            Console.WriteLine(test);
        }
Exemplo n.º 4
0
        public static Map CreateMap()
        {
            var map = new Map();
            var gif = new GeoTiffProvider(GetAppDir() + "\\Images\\example.tif", new List <Color> {
                Color.Red
            });

            map.Layers.Add(CreateGifLayer(gif));

            return(map);
        }