---
title: "MTRasterResampling | Mobile sdk | Mobile sdk ios | Ios"
description: "Resampling/interpolation method to use for overscaling."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTRasterResampling

```
public enum MTRasterResampling : String, Codable, Sendable
```

Resampling/interpolation method to use for overscaling.

-   `[linear](#/s:11MapTilerSDK18MTRasterResamplingO6linearyA2CmF)`
    
    (Bi)linear filtering for smooth but slightly blurry overscaling.
    
    #### Declaration
    
    Swift
    
    ```
    case linear
    ```
    
-   `[nearest](#/s:11MapTilerSDK18MTRasterResamplingO7nearestyA2CmF)`
    
    Nearest neighbor filtering for sharp but pixelated overscaling.
    
    #### Declaration
    
    Swift
    
    ```
    case nearest
    ```
