Class RasterImportRequest
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
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
ContentType
Optional MIME content type for the raster part. Defaults to application/octet-stream.
public string? ContentType { get; init; }
Property Value
Description
Optional description of the imported raster.
public string? Description { get; init; }
Property Value
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
LayerId
The target layer identifier to associate the imported raster with.
public required int LayerId { get; init; }
Property Value
Name
A human-readable name for the imported raster.
public required string Name { get; init; }
Property Value
ProjectionContent
Optional projection (.prj) sidecar content describing the coordinate reference system.
public string? ProjectionContent { get; init; }
Property Value
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
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; }