Skip to content

MapSmith 0.13.1

Latest

Choose a tag to compare

@mapsmith-ai mapsmith-ai released this 27 Nov 06:33
· 1 commit to main since this release

Records continue to declare spec_version 1.0.0-draft.10; no manifest key is
new or renamed in this release.

Fixed

  • A GeoParquet of 80 kB could take 2 GB to open. Reading a vector file
    costs memory by the row and by the decoded byte, and Parquet stores a
    repeated value once: five million identical points are 80 kB on disk, fifty
    million are 0.77 MB, and a million identical polygons of 100 vertices are
    180 kB. Every operation that takes a vector layer read such a file whole.
    The cost of a Parquet input is now estimated before it is opened — from the
    rows its footers count, the bytes every column decodes to, and the objects
    its values, lists and structs become — and the read is refused above
    MAPSMITH_MAX_INPUT_MEMORY (default 2 000 000 000 bytes, about two
    million points with a name and a number). The limit yields to 48
    bytes of memory for every byte the dataset occupies on disk, so an ordinary
    layer passes at any size: a million scattered points are 30 MB. The files
    above are refused in 0.03 s; counting adds about 0.2 s to opening a million
    ordinary points. A footer whose row counts disagree with the values its
    columns hold is refused outright. calculate_field and the DuckDB and
    Sedona joins, which open their input themselves and read their output back
    whole, ask first too. What changes for honest data: a layer that is both
    very compressible and several million rows costs as much to hold as a
    hostile file and is refused with it — a regular grid of five million points,
    where three million are admitted; the message names the setting an operator
    raises. Present in every release up to 0.13.0; found by our own review after
    it. SECURITY.md lists what this does not cover: what an operation writes
    (a join's fan-out, the sum of what merge_layers reads), a zipped dataset,
    run_sql, and the sizes a footer declares.