mapbench
Contents

Documentation → Reference

Formats, limits and quotas

All the limits in one place. These are the values set on this deployment. They're configured per installation, so a staging server may show different values from production.

mapbench is in beta. These limits are set to keep a shared server responsive and aren't meant as long-term values. If one of them gets in your way, please tell us.

Accepted file formats

FormatExtensionNotes
GeoJSON.geojson, .jsonThe simplest format to start with. Assumed to be WGS84 unless the file says otherwise.
GeoPackage.gpkgCan contain several layers. Each layer becomes a separate dataset.
FlatGeobuf.fgbThe best choice for large files: compact and fast to read.
Shapefile.zipZip the .shp, .shx, .dbf and .prj together.
KML / KMZ.kml, .kmz
CSV.csvNeeds coordinate columns.
GML.gml
GPX.gpx
PMTiles.pmtilesAlready tiled, so it's stored as it is and can't be reprocessed.

The file extensions allowed on this deployment are: .csv, .fgb, .geojson, .gml, .gpkg, .gpx, .json, .kml, .kmz, .pmtiles, .zip. Files with any other extension are refused when you upload them, so you find out before tiling starts.

Raster data isn't supported. mapbench tiles vector features.

Upload sizes

LimitValueWhat happens
Largest file 1 GiB Larger files are refused. Try converting to FlatGeobuf or GeoPackage, which usually hold the same data in a fraction of the size of GeoJSON.
Direct-to-storage threshold 90 MiB Smaller files go through the app. Larger files upload from your browser directly to storage, in parts. This happens automatically.
Uncompressed archive contents 4 GiB A .zip or .kmz that declares a larger uncompressed size than this is refused before any of it is read.
Layers per import 50 A multi-layer file or a bulk service import with more layers than this is refused. Import the layers in batches.

Processing

LimitValueApplies to
Queued jobs per organisation 25 Everyone, both people and agents. New jobs are refused until earlier ones finish.
Jobs per hour, per credential 20 API keys and connected agents.

Plan quotas

Your organisation's plan can cap its total storage and the number of datasets, maps and seats it has. Storage counts every project in the organisation. A plan can also change the upload size and job limits above, which are the defaults. Managers can see the plan, current usage and these caps under Organization settings.

At a cap, you can't add more: uploads, imports and new datasets or maps are refused, and at the seat cap no one new can be invited. Everything you already have can still be viewed, shared and deleted, and deleting is how you get back under the cap.

SQL queries

LimitValue
Rows returned1000
Queries per minute, in the app60
Queries per minute, per API key or agent10
Time before a query times outabout 70 seconds

Queries also have a memory limit. A query that goes over the time or memory limit is stopped rather than queued, so narrow it with a WHERE clause or a bounding box. Because of the row limit, queries are for checking and aggregating data. To get a large result out, save it as a model.

API requests

LimitValue
Requests per minute, per API key120

If you go over it, you get a 429 response with a Retry-After header that says how long to wait. Wait that long before you retry.

What isn't limited

  • The number of SQL models or projects you keep.
  • How many share links you create, or how many people open them.
  • Map views and tile requests.

Known gaps in this beta

These are things mapbench doesn't do yet:

  • No scheduling. Nothing re-fetches, re-runs or refreshes automatically. You reprocess imports and re-run models yourself.
  • Models don't cascade. Refreshing an input doesn't re-run the models built on it. You need to re-run them yourself, in order.
  • No raster support, and no way to render a map as an image. The preview card on a share link is a generated graphic, not a screenshot.
  • No self-service sign-up. Accounts are by invitation, so request access.
  • No SLA, and no guarantee that data is kept. Keep your own copies of your source files. mapbench is for tiling, styling and publishing them, and shouldn't be the only place they're stored.
  • No expiry or rotation for share links in the web app. You can do both through the API. See Publish and share a map.

See also