Table of Contents

Class RasterImportRequest

Namespace
Honua.Sdk.Admin.Models
Assembly
Honua.Sdk.Admin.dll

Request to import (upload) a raster file into PostGIS via the admin raster import endpoint (POST /api/v1/admin/import/raster). The raster bytes are sent as a multipart file part; optional world-file and projection sidecars are sent as additional file parts.

public sealed class RasterImportRequest
Inheritance
RasterImportRequest
Inherited Members

Remarks

This is the write/output half of the raster geoprocessing round-trip. The read half lives on the read-only IHonuaRasterDataClient (ImageServer-backed metadata, statistics, and windowed reads).

Properties

AcquisitionDate

Optional acquisition timestamp for the raster.

public DateTimeOffset? AcquisitionDate { get; init; }

Property Value

DateTimeOffset?

Content

The raster content stream (GeoTIFF / PNG / JPEG bytes). The caller retains ownership of the stream; the client reads but does not dispose it.

public required Stream Content { get; init; }

Property Value

Stream

ContentType

Optional MIME content type for the raster part. Defaults to application/octet-stream.

public string? ContentType { get; init; }

Property Value

string

Description

Optional description of the imported raster.

public string? Description { get; init; }

Property Value

string

FileName

The raster file name including extension (for example elevation.tif). The server detects the format from the extension (.tif, .tiff, .png, .jpg, .jpeg).

public required string FileName { get; init; }

Property Value

string

LayerId

The target layer identifier to associate the imported raster with.

public required int LayerId { get; init; }

Property Value

int

Name

A human-readable name for the imported raster.

public required string Name { get; init; }

Property Value

string

ProjectionContent

Optional projection (.prj) sidecar content describing the coordinate reference system.

public string? ProjectionContent { get; init; }

Property Value

string

Srid

Optional spatial reference (EPSG SRID). Required when the source raster lacks embedded georeferencing and no projection sidecar is supplied.

public int? Srid { get; init; }

Property Value

int?

TileZoomLevels

Optional tile pyramid zoom levels to generate (0-24). Defaults to the server's pyramid policy when omitted.

public IReadOnlyList<int>? TileZoomLevels { get; init; }

Property Value

IReadOnlyList<int>

WorldFileContent

Optional world-file sidecar content (for PNG/JPEG sources that carry georeferencing in a .pgw/.jgw/.wld sidecar rather than embedded in the raster).

public string? WorldFileContent { get; init; }

Property Value

string