Image.Image - Gigas002/GTiff2Tiles GitHub Wiki

Class for creating raster tiles.

Namespace

GTiff2Tiles.Core.Image

Properties

Type Name Description
System.Int32 RasterXSize Image's width
System.Int32 RasterYSize Image's height
System.IO.FileInfo InputFileInfo Input GeoTiff
System.Double MinX Upper left X coordinate
System.Double MinY Lower right Y coordinate
System.Double MaxX Lower right X coordinate
System.Double MaxY Upper left Y coordinate

Constructor

Description: Creates new object.

Syntax:

public Image(FileInfo inputFileInfo)

Parameters:

Type Name Description
System.IO.FileInfo inputFileInfo Input GeoTiff

Throws:

Methods

GenerateTilesByJoiningAsync

Description: Create tiles. Crops input tiff only for lowest zoom and then join the higher ones from it.

Syntax:

public async ValueTask GenerateTilesByJoiningAsync(DirectoryInfo outputDirectoryInfo, int minZ, int maxZ, bool tmsCompatible, IProgress<double> progress, int threadsCount)

Parameters:

Type Name Description
System.IO.DirectoryInfo outputDirectoryInfo Output directory
System.Int32 minZ Minimum cropped zoom
System.Int32 maxZ Maximum cropped zoom
System.Boolean tmsCompatible Do you want to create tms-compatible tiles?
System.IProgress<System.Double> progress Progress
System.Int32 threadsCount Threads count

Returns: System.Threading.Tasks.ValueTask.

Throws:

GenerateTilesByCroppingAsync

Description: Crops input tiff for each zoom.

Syntax:

public async ValueTask GenerateTilesByCroppingAsync(DirectoryInfo outputDirectoryInfo, int minZ, int maxZ, bool tmsCompatible, IProgress<double> progress, int threadsCount)

Parameters:

Type Name Description
System.IO.DirectoryInfo outputDirectoryInfo Output directory
System.Int32 minZ Minimum cropped zoom
System.Int32 maxZ Maximum cropped zoom
System.Boolean tmsCompatible Do you want to create tms-compatible tiles?
System.IProgress<System.Double> progress Progress
System.Int32 threadsCount Threads count

Returns: System.Threading.Tasks.ValueTask.

Throws:

⚠️ **GitHub.com Fallback** ⚠️