Georeferencing API
    Preparing search index...

    Function warp

    • Synchronously backward-map output pixel centres through the fit and resample the source. Use the worker engine for interactive applications.

      Parameters

      • input: Pixels

        Orientation-normalized RGBA; may be a reduced-resolution preview.

      • metadata: ImageMetadata

        Original canonical dimensions, used to scale coordinates into the decoded buffer.

      • fit: Fit

        Same fit used for preview and final export.

      • workingCrs: string

        Coordinate system in which the fit operates.

      • grid: Omit<Raster, "data">

        Validated output from outputGrid; this function allocates width × height × 4 bytes.

      • method: Resampler

        Interpolation kernel.

      • definitions: Definitions = {}

        Host projection definitions.

      • Optionalprogress: (v: number) => void

        Synchronous progress fractions, reported every 32 rows and at completion.

      Returns Raster

      Newly allocated raster; the input is not mutated.