FormatFailure
Defined in: packages/core/src/formats/errors.ts:74
The facts behind one failure; the message is built from these.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
blocker? | "no-range" | "no-index" | "no-bbox" | "unsorted" | "no-size" | too-large: why the file can’t be read by view instead — no bbox column, unsorted row groups, no spatial index, a server without range requests, or one that hides the file’s size from the page. | packages/core/src/formats/errors.ts:111 |
cells? | number | too-large: a grid’s cells (nx * ny), when that is what made it too large (wins over size). | packages/core/src/formats/errors.ts:94 |
code | FormatFailureCode | - | packages/core/src/formats/errors.ts:75 |
crs? | string | The CRS the file declares (crs), e.g. “EPSG:3857”. | packages/core/src/formats/errors.ts:113 |
decoded? | number | too-large: the GeoParquet columns’ decoded bytes, the limits the file was measured against (so the notice can say which it is over), and whether size is the whole file rather than the columns a map reads. | packages/core/src/formats/errors.ts:90 |
detail? | string | The underlying library message (read, decoder, chunk). | packages/core/src/formats/errors.ts:117 |
encoding? | string | The geometry encoding a GeoParquet file uses (encoding), e.g. “point”. | packages/core/src/formats/errors.ts:115 |
expected? | string | not-format: what the bytes should have been, when the format alone doesn’t say (“PNG”, “GeoTIFF”, “JSON”). | packages/core/src/formats/errors.ts:96 |
features? | number | Number of features, when that is what made it too large (too-large; wins over size). | packages/core/src/formats/errors.ts:84 |
format | FailureFormat | - | packages/core/src/formats/errors.ts:76 |
gridSize? | object | dimensions: the grid the document declares and the image’s own, each [nx, ny]. | packages/core/src/formats/errors.ts:105 |
gridSize.actual | readonly [number, number] | - | packages/core/src/formats/errors.ts:105 |
gridSize.declared | readonly [number, number] | - | packages/core/src/formats/errors.ts:105 |
image? | object | encoding on a grid image: the image’s shape, when it isn’t one the reader decodes (8-bit, not interlaced, 1 to 4 channels) or has too few channels for the encoding. colorType is the PNG color type’s name (“palette”); channels the image’s, when the encoding needs more. | packages/core/src/formats/errors.ts:103 |
image.bitDepth? | number | - | packages/core/src/formats/errors.ts:103 |
image.channels? | number | - | packages/core/src/formats/errors.ts:103 |
image.colorType? | string | - | packages/core/src/formats/errors.ts:103 |
image.interlaced? | boolean | - | packages/core/src/formats/errors.ts:103 |
limits? | object | - | packages/core/src/formats/errors.ts:91 |
limits.bytes? | number | - | packages/core/src/formats/errors.ts:91 |
limits.cells? | number | - | packages/core/src/formats/errors.ts:91 |
limits.decoded? | number | - | packages/core/src/formats/errors.ts:91 |
limits.features? | number | - | packages/core/src/formats/errors.ts:91 |
size? | number | File size in bytes, when known (too-large). | packages/core/src/formats/errors.ts:82 |
sizeIsFile? | boolean | - | packages/core/src/formats/errors.ts:92 |
status? | number | - | packages/core/src/formats/errors.ts:79 |
statusText? | string | - | packages/core/src/formats/errors.ts:80 |
url | string | The file as the page requested it (base already applied). | packages/core/src/formats/errors.ts:78 |