Free Support Forum - aspose.com

Working with tiles larger than 256 pixels

Is there a setting in the API that allows for tiles that are larger than 256 pixels? If I use a url that is 256 pixels, then everything works. If I use a tile that is 512 or 1024, then there it feels like only a portion of the title is present in the outputted png.

        using (XyzTiles layer = Drivers.XyzTiles.OpenLayer(new XyzConnection(url)))
        {
            WebTile tile = layer.GetTile(14, long2tilex(-87.6298, 14), lat2tiley(41.8781, 14));

            using (var map = new Map(1024, 1024))
            {
                RasterLayer raster = tile.AsRaster();
                Console.WriteLine(raster.Width);
                Console.WriteLine(raster.Height);

                map.Add(new RasterMapLayer(raster));
                map.Render(mapPath, Renderers.Png);
            }
        }

Hi, @bpm-1

Thank you for your interest in the Aspose.GIS product.

Unfortunately, by the moment Aspose.GIS has no option to work with tiles larger than 256 pixels. I have created a ticket GISNET- 593 and update you here as soon as additional information is available.

Please feel free to contact us if you have any other issues or product questions.