Skip to content

FormatFailure

Defined in: packages/core/src/formats/errors.ts:74

The facts behind one failure; the message is built from these.

PropertyTypeDescriptionDefined 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?numbertoo-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
codeFormatFailureCode-packages/core/src/formats/errors.ts:75
crs?stringThe CRS the file declares (crs), e.g. “EPSG:3857”.packages/core/src/formats/errors.ts:113
decoded?numbertoo-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?stringThe underlying library message (read, decoder, chunk).packages/core/src/formats/errors.ts:117
encoding?stringThe geometry encoding a GeoParquet file uses (encoding), e.g. “point”.packages/core/src/formats/errors.ts:115
expected?stringnot-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?numberNumber of features, when that is what made it too large (too-large; wins over size).packages/core/src/formats/errors.ts:84
formatFailureFormat-packages/core/src/formats/errors.ts:76
gridSize?objectdimensions: the grid the document declares and the image’s own, each [nx, ny].packages/core/src/formats/errors.ts:105
gridSize.actualreadonly [number, number]-packages/core/src/formats/errors.ts:105
gridSize.declaredreadonly [number, number]-packages/core/src/formats/errors.ts:105
image?objectencoding 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?numberFile 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
urlstringThe file as the page requested it (base already applied).packages/core/src/formats/errors.ts:78