Skip to content

Latest commit

 

History

History
400 lines (212 loc) · 22.9 KB

loss-codes.md

File metadata and controls

400 lines (212 loc) · 22.9 KB

Data loss codes

RustGIS never drops or changes data silently. A notice says what happened, how much and where. This page lists every loss code. A coded notice links to the entry that explains what changed and what to do about it.

A code is never translated, renamed or reused, so a script can match on it. rustgis-cli run --strict stops at a code that no --allow accepts, Python raises it as rustgis.DataLossWarning, and the MCP server returns it under losses.

Not every loss has a code yet. Losses said without one are only notices, and don't stop a strict run.

Dropped

Dropped means data was left out and is not in the result.

dropped.legend { #dropped.legend }

A map service offered legend pictures that RustGIS does not show, so they were left out. These are pictures with addresses that fail RustGIS's checks, are in another format, or past the limit on legends per layer.

Where you see it: adding a map service layer (WMS or similar) that offers legends.

What to do: Use a service with short HTTP or HTTPS addresses for its legend pictures.

dropped.ring { #dropped.ring }

A polygon ring was left out. Rings that could not be read, or that have no area, are skipped, and a format with no holes keeps only the outer edge of each polygon.

Where you see it: reading GeoRSS, GML, DXF or MapInfo data, or feature service answers in PBF; exporting polygons to GPX, or exporting 3D models and web scenes.

What to do: Correct the unreadable polygon ring in the source, or write to a format that holds holes, such as GeoPackage.

dropped.extra-attributes { #dropped.extra-attributes }

A row had more attribute values than the layer has fields, and the extra values were not kept.

Where you see it: reading a CSV file with rows longer than its header; the Repair Geometry and Check Geometry tools.

What to do: Add fields for the extra attribute values or remove those values from the input.

dropped.time { #dropped.time }

A date-time was written to a date field, which keeps only the day, so the time of day was lost.

Where you see it: Calculate Field; editing or pasting table values into a date field; the Update tool.

What to do: Write to a date-time field to keep the time of day.

dropped.column { #dropped.column }

A column was left out because its type cannot be held, its name repeats an earlier column's, or only one geometry column is read.

Where you see it: reading FileGDB, GeoPackage, FlatGeobuf, GeoParquet or feature-service PBF data, or a SQL Server geodatabase table.

What to do: Keep the source file. Convert unsupported columns to supported types or use a reader that supports them. Give repeated columns distinct names. Export additional geometry columns as separate layers before importing them.

dropped.copyright { #dropped.copyright }

Copyright text could not be read or written in a raster's tag, or differs from the first input's and was not kept in the mosaic, or a credit was left out of a map's credit line.

Where you see it: reading a GeoTIFF or COG; exporting a raster or map as GeoTIFF or COG; Mosaic Rasters; exporting a map whose credits are longer than its credit line holds (500 characters).

What to do: Keep the source credits and include the required attribution when sharing the raster or map; shorten long layer credits (layer.credit) so the credit line holds them all.

dropped.value { #dropped.value }

A value could not be kept and was read or written as empty (null). Examples are spreadsheet error cells, text in a date or yes/no column, and a result that is not a number.

Where you see it: reading a spreadsheet, Parquet, PostGIS or table-based source; reading DTED or GRIB rasters; Calculate Field; opening a project or importing a layout file whose halos or legend level styles can't be read; opening a project whose geoprocessing environment or measured graticules hold a value that can't be used.

What to do: Correct the value in the source, or, on export, use a destination field that can hold it.

dropped.cells { #dropped.cells }

Cells of a raster inside the area asked for were left out, because they could not be laid out in one grid with the rest of the area. An area across the antimeridian on a grid that does not go round the globe is one example.

Where you see it: adding the rows of a box of a GRIB record (layer.addUrl with "bytes" and "bbox").

What to do: Where the notice says a box on each side reaches them, ask for one area on each side of the antimeridian; else read the whole raster.

dropped.calculation-result { #dropped.calculation-result }

A calculation gave no result for some rows, so the field was left empty there. The input may have no place that can be given in longitude and latitude, or the result may be too large to hold.

Where you see it: Calculate Field; Calculate Geometry Attributes; table statistics; Profile Along Selected Lines.

What to do: Check the rows the notice names (or its expression, for a calculated field).

dropped.zm { #dropped.zm }

Z (height) or M (measure) values were not kept. RustGIS keeps x and y only.

Where you see it: reading KML, CSV, WKT or DXF, or a table read through DuckDB or GDAL; exporting a layer whose Z or M values were dropped when it was read.

What to do: Keep the source file where heights or measures matter: RustGIS keeps x and y only.

dropped.unreadable-z { #dropped.unreadable-z }

A supplied height could not be read and was replaced with zero. This differs from a readable height dropped when keeping only XY coordinates.

Where you see it: reading DXF.

What to do: Correct the unreadable height in the source drawing, or remove it if zero is intended.

dropped.crs-name { #dropped.crs-name }

A coordinate system's name or definition could not be written with the data, so the file holds the coordinates without it.

Where you see it: exporting to a Shapefile (no .prj file) or to CSV; exporting layers on another body than the Earth; reading Zarr stores.

What to do: On reading, give the coordinate system in a form RustGIS reads ("crs" when adding the data, or Define Projection); on export, keep the source's coordinate system definition with it, or export in WGS 84, which every format can name.

dropped.epoch { #dropped.epoch }

The date the coordinates are valid at (the coordinate epoch) was not kept, so positions are read as if the coordinate system did not change over time.

Where you see it: adding a GeoParquet file that gives an epoch. Reading one for a catalog search or as embeddings is refused instead.

What to do: Keep the source file where the epoch matters, or convert the coordinates to a system that does not move with the ground before adding them.

dropped.feature { #dropped.feature }

Whole features, rows or items were left out because they could not be read or are not supported.

Where you see it: reading GeoRSS, OpenStreetMap, spreadsheet, GRIB or point-cloud (LAS and LAZ) files, scanning the images in a GeoTIFF read in place, and running the Geostatistical Wizard, IDW Interpolation, Ordinary Kriging or Kernel Density.

What to do: Correct those features in the source, or read the source in the way the notice suggests.

dropped.geometry { #dropped.geometry }

A feature's geometry could not be read or written. The feature was kept without its place, or the place was left out.

Where you see it: reading CSV with WKT, GPX, TopoJSON or MapInfo data; exporting layers with a place the target coordinate system cannot hold; exporting 3D models and web scenes, or running Repair Geometry, IDW Interpolation, Ordinary Kriging or Kernel Density.

What to do: Correct the geometry in the source; when the notice names a coordinate system, give the one its coordinates are in.

dropped.mask { #dropped.mask }

A layer's mask was cleared because the destination map has no compatible mask layer by that name.

Where you see it: Paste Layers and Add Layer File.

What to do: Copy or add the mask layer with the layer it masks.

dropped.transparency-mask { #dropped.transparency-mask }

A TIFF's internal transparency mask was left out, so masked pixels show their stored values.

Where you see it: reading tiles from a GeoTIFF in place.

What to do: Read the TIFF whole if it fits, or make a smaller copy that retains its transparency mask.

dropped.photo-position { #dropped.photo-position }

A picture's EXIF held a GPS position that was not used: the picture was read as a raster without coordinates.

Where you see it: adding a geotagged JPEG with "as": "scan", and opening a project that holds it.

What to do: To see where it was taken, add it without "as": "scan" and with no world file placing it, as a point in the photo layer; to place the picture itself, georeference it.

dropped.over-limit { #dropped.over-limit }

RustGIS included only part of the data because it is past a size limit.

Where you see it: reading point-cloud (LAS and LAZ), DXF, GML, KML or photo data, a raster with a very long list of class names, or sharing a web map, web layer viewer, web scene or locator; opening a project with more layouts than are held; opening a project or importing a layout file with more layout elements than are held; importing the maps of a project that holds more than are taken.

What to do: Use less data at once, such as by filtering or clipping the source first, or keep fewer fields (columns) in it.

dropped.glyph { #dropped.glyph }

Text characters were left out of a drawing because the fonts available to RustGIS do not have glyphs for them.

Where you see it: drawing maps, layouts and reports on screen or exporting them. A whole label may be left out, or a fallback shape may be used for a character marker.

What to do: Make a font that covers those characters available to RustGIS and draw or export again. For Japanese, Chinese or Korean, try Noto Sans CJK.

dropped.off-page { #dropped.off-page }

Part of a layout element lies past the page's edge, so the export cut it there, or the whole element is off the page and the export left it out.

Where you see it: exporting a layout to PNG, PDF or SVG (or a region of its page to PNG), a map series, or a report whose pages draw a layout, with a line or arrow, shape, picture, legend, north arrow, profile, table, chart or other element that runs past the page. A map frame is said only when more than half of it is off the page, as a frame may bleed past the edge on purpose. The ink of texts and scale bars that run off the page is said by their own notices; their background is said here. Placing, moving or resizing an element, or changing the page's size, says the same before any export, without a code.

What to do: Move or resize the element so it lies inside the page, or make the page larger.

dropped.curve { #dropped.curve }

A curves file held curves a raster layer's tone curve has no channel for, or more than one curve for the same channel, and those were not read: curves past the fourth in a file that lists them in order (often a CMYK or Lab file's), in a slot past blue in a version 1 file whose header is a bitmap of channels, or in a slot past blue of its Crv extension, when they change tones; and a curve its Crv extension replaces with another for the same channel. A curves file doesn't record its colour mode: curves listed in order are read as composite, red, green and blue, a bitmap header's go to the channels its bits name, and an extension's to the channels it names.

Where you see it: reading a Photoshop curves file (.acv) into a raster layer's tone curve (raster.curve). A curve past the fourth, or past blue, that leaves every tone as it is isn't a loss and isn't counted, nor is an extension's curve that repeats the one its channel already has.

What to do: Make the curve in RustGIS, or save it from an RGB image in the image editor, so the file holds the composite, red, green and blue curves.

dropped.shapefile-companion { #dropped.shapefile-companion }

A Shapefile had several spellings of a companion file and was read with just one of them.

What to do: Keep only the intended companion file beside the Shapefile before reading it again.

dropped.source-details { #dropped.source-details }

Unsupported details of a saved data source were left out when this session replaced its configuration.

What to do: Review the saved data source and re-enter its details in a version of RustGIS that supports them.

dropped.reference { #dropped.reference }

Something that refers to an item that isn't there, such as a layout element or map series tied to a map frame its layout lacks, was left out.

Where you see it: opening a project or importing a layout file.

What to do: Correct the file so it holds the item referred to, or add what was left out again.

dropped.preset-setting { #dropped.preset-setting }

A relief preset held settings this version doesn't apply from a preset (a newer RustGIS saved them, or a key a preset doesn't take): the light was applied without them, the preset itself keeping them, or the preset was removed with them.

Where you see it: applying a Shaded Relief preset (raster.reliefPreset), or removing one (raster.saveReliefPreset "remove").

What to do: Apply the preset in the RustGIS that saved it, or set those settings on the layer by hand where this version has them.

Changed

Changed means data is still there but was altered, such as cut short or rounded.

dropped.chart-shape { #dropped.chart-shape }

A layout chart did not draw some of its values in full: a treemap draws no box for a value of zero or below, a box drawn under a point across not to its share, a line of its key wider than the chart cut short with an ellipsis, and nothing but its placeholder when its title or its key leaves its boxes no room.

Where you see it: adding or changing a layout chart drawn as a treemap, and exporting a layout or a report that shows one. The notice says how many bars got no box, how many boxes are drawn under a point across, how many lines of its key are cut short, or that its title or its key leaves its boxes no room. A box too small for its text isn't a loss: the key under the boxes names it.

What to do: Give the chart a larger box, a shorter title, shorter names or fewer bars (a lower "bars" count, with an Other bar). A chart of a bar per feature can leave its values of zero and below out with a definition query; a grouped chart can't, as the query changes each group's sum.

changed.repaired { #changed.repaired }

A value a file held that RustGIS can't use, such as a size out of range, a repeated id or a reference to something that isn't there, was changed or cleared.

Where you see it: opening a project or importing a layout file whose elements, page, grid labels or map frames needed a repair.

What to do: Check what the notice names, and correct it in the file or set it again.

changed.csv-guard { #changed.csv-guard }

CSV text was prefixed with an apostrophe to protect against spreadsheet formula execution.

Where you see it: exporting CSV or WKT CSV. The CSV contains the prefix; RustGIS removes a recognized formula guard when reading the text back.

What to do: Keep the protective prefix when opening CSV in a spreadsheet; use GeoPackage when exact text must be stored without a prefix.

changed.truncated { #changed.truncated }

A number lost its fractional part because the field holds whole numbers.

Where you see it: Calculate Field; editing table values; the Update tool.

What to do: Use a decimal field to keep the fractional part.

changed.field-name { #changed.field-name }

A field name was changed to fit the format it was written to, or prefixed with an apostrophe for CSV spreadsheet protection.

Where you see it: exporting to Shapefile, GeoPackage, CSV or WKT CSV.

What to do: Use field names the format holds: at most 10 bytes and unique ignoring case for a Shapefile, unique ignoring case for a GeoPackage. For CSV, use names that do not need spreadsheet protection.

changed.cut { #changed.cut }

Text, or a list a file gave, was cut short to fit a format or a limit.

Where you see it: exporting to Shapefile (254 bytes per value); labels and annotations; reading raster band or class names; Paste Layers and Add Layer File; opening a project or importing a layout file with texts or lists in a layout past their limits.

What to do: Shorten the text, name or list in the source; on export, to what the format holds (254 bytes for a Shapefile; nothing past a NUL character), or write to a format without the limit, such as GeoPackage.

changed.body { #changed.body }

Longitude and latitude on a body other than the Earth were written as Earth coordinates, because the format cannot say which body they are on.

Where you see it: exporting layers in a planetary coordinate system.

What to do: Export in the layer's own coordinate system, which keeps its body.

changed.encoding { #changed.encoding }

Text could not be represented in its source or destination encoding, so replacement characters or equivalent ASCII text were used.

Where you see it: reading a Shapefile or dBASE file, a DXF drawing, or feature service answers in PBF; exporting copyright text in a GeoTIFF or COG.

What to do: For a Shapefile or dBASE table, set the encoding Add Data parameter or provide a matching .cpg file. Save a DXF as UTF-8 or with its $DWGCODEPAGE, or use a service that sends UTF-8. TIFF copyright tags hold ASCII only. Keep the original credits with the exported file.

changed.rounded { #changed.rounded }

A number or time was rounded to what the format or the field holds.

Where you see it: exporting to Shapefile or GeoPackage; reading spreadsheets or File Geodatabases; Calculate Field and table statistics.

What to do: Keep the source file where finer values matter, or write to a format that holds them (times finer than the format keeps, numbers past a dBase field's precision, or whole numbers past 2^53 in a decimal field).

changed.position { #changed.position }

Positions were moved to fit the coordinate system they were written in, for example vertices beyond 85.05 degrees north or south in Web Mercator.

Where you see it: exporting in Web Mercator.

What to do: Export in a coordinate system that holds the positions, such as WGS 84.

changed.stale-sidecar { #changed.stale-sidecar }

A companion file was left behind and may no longer match the data written.

What to do: Remove the named companion file before using the data in another program.

Approximated

Approximated means data was kept as a close stand-in for the original.

approximated.datum { #approximated.datum }

A datum RustGIS does not shift was treated as WGS 84, so places may be a little off.

Where you see it: reading DTED rasters; exporting a layer that is not in WGS 84 to a format that holds only longitude and latitude.

What to do: On reading, give the coordinate system with a known transformation to WGS 84; on export, export in the layer's own coordinate system.

approximated.curve { #approximated.curve }

Curves, circles, rotated boxes or edges that follow the Earth's curve were read, drawn or written as straight segments.

Where you see it: reading GML or File Geodatabase data, or a GeoParquet file with curved edges; the Buffer tool; exporting circles and rotated boxes drawn in the session.

What to do: Keep the source file where exact curves matter: RustGIS draws curves as straight segments.

approximated.overview { #approximated.overview }

A raster's overview values were used instead of full-resolution samples.

Where you see it: reading spectral zones or surface elevations from a reduced raster, or spectral points from a held overview. Standalone in-place spectral point and zone reads use full-resolution values. Synchronous browser scripts and desktop script lines beyond the prepared prefix can still sample a held overview and report this loss.

What to do: Run Spectral Analysis directly in the app, through the Assistant or MCP, for full-resolution in-place points or zones. Load the whole raster before assigning surface elevations when full-resolution values matter.

approximated.resolution { #approximated.resolution }

A page was drawn at a lower resolution than asked, because a page holds at most 12,000 pixels a side and 60 million pixels in all (25 million in the browser).

Where you see it: exporting a layout (layout.export, Export Layout, Print) or viewing one for the Assistant, when its page at the dpi asked would pass those limits (an A2 page at 300 dpi in the browser). A PNG is drawn at the lower dpi; in a PDF or SVG, its pictures and the detail of its vectors are.

What to do: Export a smaller page to keep the resolution asked. When the notice gives 36 dpi or more, you can also ask for that dpi; a lower request is raised to 36 dpi, so the notice comes back.

approximated.style { #approximated.style }

A web style draws part of a layer's symbology differently from the map, such as line widths by a field that grow by area on the map and in a straight line in the style.

Where you see it: sharing a layer's MapLibre style (share.webStyle, a web layer) whose line widths by a field grow By area: the style's line-width grows in a straight line between the two values.

What to do: Set the layer's symbology to what the style can draw (for widths by a field, Scaling In a straight line, and no Width expression over them), then share or export the style again.

Assumed

Assumed means RustGIS had to guess something the data did not say, so the result may be wrong if the guess is.

assumed.null-marker { #assumed.null-marker }

A value written as the text <Null>, which some programs write for a missing value, was read as empty (null).

Where you see it: reading a Shapefile, GeoPackage, GeoJSON, CSV or Parquet file, or point-cloud data.

What to do: Write the value another way if the text Null is meant as text, not as an empty value.

assumed.crs { #assumed.crs }

The file does not say which coordinate system its coordinates are in, or says one RustGIS cannot use, so RustGIS read them as longitude and latitude (WGS 84).

Where you see it: XY Table To Point; reading a Shapefile with an unusable .prj file, GeoPackage, GeoParquet, PostGIS or SQL Server data, Zarr stores and point-cloud files.

What to do: Give the coordinate system the coordinates are in ("crs" when adding the data, or Define Projection).

assumed.encoding { #assumed.encoding }

The file does not name its text encoding, or names one RustGIS does not read, so RustGIS assumed one (UTF-8, or Latin-1 for a DXF).

Where you see it: reading a Shapefile or dBASE file without a usable .cpg file, or a DXF drawing without a known code page.

What to do: For a Shapefile or dBASE table, set the encoding Add Data parameter or provide a matching .cpg file. Save a DXF as UTF-8.