Skip to content

Specification

Portolan Specification — Formats

This document defines the format-specific requirements. The format-agnostic requirements are in core.md.

STAC allows assets in any format, but Portolan requires that every collection and item is available in a cloud-optimized format, and adds requirements on specific ones: in general GeoParquet and PMTiles for vector, COG for raster, COPC for point clouds, and Parquet for non-spatial data. A mirror SHOULD also include the original data as an asset when it is directly downloadable (not just an API). Catalogs SHOULD reference alternate formats of data and metadata — for example an existing ISO 19115 file referenced as an asset with the metadata role — though new catalogs need not pre-produce them, since tooling should make translation easy.

The requirements in this document apply to the catalog's own cloud-native assets: copies that the publisher derives and publishes. They do not apply to source assets, which represent the upstream originals from which those copies were derived and may use a non-cloud-native format.

A validator MUST apply the format requirements in this document to the catalog's own cloud-native assets and MUST NOT fail an asset for its format because it carries the source role. The source role identifies provenance, not hosting. The Data Storage requirements in core.md apply according to who hosts the bytes, as specified there, regardless of the roles an asset carries.

Each data asset links to only one file. Its href MUST NOT contain * or [. It MAY include a query string. To link to many files, use partition:glob (see Partitioned Collections).

Vector

Vector has no single complete cloud-native format yet, so Portolan pairs two strong ones — GeoParquet and PMTiles — in a single STAC entity; the community is upgrading GeoParquet toward a more complete answer, and this pairing will likely relax once GeoParquet gains overviews and more browsers render it directly.

A collection can also publish an Apache Iceberg table over the same GeoParquet files, which gives an Iceberg engine a second way to read them. That convention is recorded in Iceberg. It is optional and adds no requirement to this document.

Parquet

Publishers MUST provide data as GeoParquet 1.1, GeoParquet 2.0, or Parquet with native GEOMETRY or GEOGRAPHY logical types. Publishers SHOULD use GeoParquet 2.0 when their tools can write it. It adds the geo metadata to the native types, and the geo metadata holds the CRS as PROJJSON. A file without a geo key SHOULD give the CRS of each geometry column as inline PROJJSON or a projjson:<key> reference in the native crs field. Readers can then resolve the CRS from the file alone. Publishers SHOULD follow the Best Practices for Distributing GeoParquet so readers can query the data without a server. Files SHOULD be compressed to stay small, with zstd RECOMMENDED.

Rows MUST follow a spatial order that places nearby features near each other in the file. A row group is a set of rows that Parquet stores together, and its footer statistics let a reader skip the group without reading its data. Spatial order keeps each row group's bounding box small, so a reader skips more row groups. The rule also applies to a file with one row group. It keeps files consistent across a catalog, and readers can prune correctly after a publisher splits the file into more row groups.

A draft spatial order method, outside the normative documents, describes how a validator can measure this order. Validators report its result as a warning until the method joins this document.

Files MUST provide per-row-group spatial statistics so readers can skip row groups from metadata alone — either:

  • a GeoParquet 1.1 bbox covering column with Parquet min/max statistics on its leaf fields (a bbox column without statistics does not qualify); or
  • for GeoParquet 2.x / Parquet GEOMETRY or GEOGRAPHY, native GeospatialStatistics per geometry column chunk.

For GeoParquet 2.x, a covering column remains RECOMMENDED even where native statistics exist, since it adds page-level min/max stats that enable finer-grained pruning. A file without a geo key cannot declare a covering column, so native statistics alone meet the preceding requirement.

Row groups MUST hold no more than 150,000 rows.

A vector collection SHOULD document its columns with the STAC table extension, carrying table:columns with names, types, and descriptions on the collection itself. An item that carries a GeoParquet data asset, as when partition files are modeled as items, SHOULD carry the same field in its properties. Those are the two places the extension scopes the field to, and the collection is the only one available to a partitioned collection, whose data sits behind partition:glob rather than in an asset. A collection whose data assets describe differing schemas MAY declare table:columns per asset instead.

Without it the attribute names and types live only in the Parquet footer, so a client has to read the file to learn what the collection holds. Names and types can be generated from the Parquet schema. The descriptions are written once and belong in both the metadata and the README schema table.

Every entry in table:columns SHOULD include a description. When the dataset is a mirror and no descriptions are available for the columns, this SHOULD be noted in the collection's README.md. Publishers SHOULD NOT include placeholder descriptions.

PMTiles

A PMTiles file SHOULD be provided as the visualization derivative, web-map-optimized and range-request friendly. It MUST be registered through a collection-level rel: "pmtiles" link per the web-map-links extension (v1.3.0): type application/vnd.pmtiles, a pmtiles:layers array of default-visible layers, with the extension's v1.3.0 schema declared in stac_extensions. The pmtiles:layers array MUST be non-empty; an empty list leaves a client with nothing to display. Because PMTiles exists for visualization and partial reads rather than download, it is expressed as a link by default; when a provider intends the PMTiles file as a genuine distribution format of the data, it MAY additionally be registered as a collection-level asset, and the link and the asset then coexist.

A PMTiles asset MUST meet both conditions:

  • The asset has the visual role.
  • The asset belongs to a collection that references the GeoParquet data used to create the PMTiles file.

Use an asset with the data role or partition:glob for the GeoParquet reference. PMTiles alone is not sufficient as a collection's primary data.

When PMTiles are provided, the collection MUST include at least one visualization style as a standalone STAC asset with the ["style"] role, registered per Visualization Styles. For PMTiles the style is a MapLibre GL style file (MapLibre GL style spec v8) in a styles/ subdirectory, with media type application/vnd.mapbox.style+json, a complete, self-contained JSON loadable directly by MapLibre GL JS. By convention such a file sets version 8, a human-readable name, sources.data.url as the relative path from styles/ to the PMTiles file (typically ../filename.pmtiles), and layers[].source to "data".

Partitioned Collections

Large files MAY be partitioned. Partitioning MUST follow the partition extension v1.0.0. Declare its schema in stac_extensions, and set partition:scheme, partition:keys, and partition:glob (see the extension for the definition of these fields).

For spatial schemes (kdtree, h3, s2, quadkey, or a5), each file's path MUST show the area it covers, so that readers can skip files without opening them.

Clients read a partitioned dataset by listing the files in its bucket, then matching them against the glob. Because clients can't list files from a relative path or an http:// or https:// URL, partition:glob MUST be an absolute URL with a scheme that supports listing. Publishers SHOULD use s3://, gs://, or az://, which DuckDB, GDAL, and fsspec all support. Publishers SHOULD also put the glob URL in the collection's description.

Clients assume an s3:// URL refers to Amazon S3. For other S3-compatible services, such as Cloudflare R2 or MinIO, publishers SHOULD add a storage:schemes entry from the STAC Storage Extension v2.0.0. Set type to custom-s3, platform to the service's endpoint URL, and bucket to the bucket named in the glob.

Every partition file MUST have the same Parquet schema, with the same columns, names, and types. Clients can then query the glob as one table.

Partition files MAY be items when each partition has a clear meaning to users, such as one file per country. For schemes whose partitions mean nothing to users (such as hilbert, s2, or h3), or for hundreds of partitions, publishers SHOULD NOT create items.

As a rough guide, consider partitioning files over ~2 GB, targeting 200 MB–1 GB per file — fewer, larger files outperform many small ones for DuckDB. This is not prescriptive; tune to your data and access patterns.

Raster

Raster data MUST be provided as Cloud Optimized GeoTIFF (COG) for efficient range-request access without full download. A COG here means a valid COG per the OGC Cloud Optimized GeoTIFF standard (OGC 21-026): an internally tiled GeoTIFF carrying georeferencing keys, with a header ordered so a reader can find the data it needs in an early range request. This is the baseline that rio cogeo validate and rasterio treat as a COG. (Formats such as GeoZarr are candidates for future support once default tooling can render and consume them.) How a raster collection is structured — one item per scene, with a single-COG collection handled as a single-file collection — is defined under Raster Collections.

Optimized GeoTIFF conformance

Beyond that baseline, a COG MUST conform to OGC 21-026's Optimized GeoTIFF requirements class (/req/optimized_geotiff), which adds three requirements:

  • Small tiles (/req/optimized_geotiff/small-sizes): square internal tiles, sized no larger than a common screen viewport. 512×512 is the usual choice.
  • Reduced-resolution subfiles number (/req/optimized_geotiff/number): internal overviews, each reducing resolution by a factor between 2 and 10, extending until the coarsest level spans one tile across or down.
  • GeoTIFF keys (/req/optimized_geotiff/geotiff): georeferencing on the full-resolution IFD.

The overview requirement is the one that bites in practice. A raster larger than a single internal tile needs internal overviews so a reader can display it zoomed out without fetching full-resolution pixels; one that already fits within a tile is exempt, since it is its own overview. Base COG validators, including rio cogeo validate, treat missing overviews as a warning rather than a failure. Portolan raises this to a requirement.

Raster statistics

COGs MUST include pixel statistics for rendering. For each band, the file MUST include an embedded minimum, maximum, mean, and standard deviation. Renderers use these values to scale any data type without reading pixels.

Publishers MUST embed these statistics in the COG file. Publishers MUST write the statistics at creation time, in the file's leading header block. Embedded statistics MUST describe the full-resolution pixels stored in each band.

The required statistics are:

Statistic Requirement
Minimum, maximum, mean, standard deviation MUST
Valid percent SHOULD (MUST when the band has a nodata value)
Approximate flag (STATISTICS_APPROXIMATE = YES) MUST when estimated

The exact on-disk encoding (the TIFF GDAL_METADATA tag and its XML layout, and GDAL_NODATA), the nodata conventions, and the rules for approximate statistics are specified in specs/incubating/geotiff-stats-headers.md. Compliance is defined by the tag contents, not by use of GDAL.

Classified rasters

In a classified raster, the pixels represent categories (e.g., land cover classes). A classified raster SHOULD describe these classes with classification:classes from the STAC classification extension. Determining whether a raster is classified depends on the producer's declaration; the presence of an embedded color table does not, on its own, make a raster classified, since continuous rasters like percent tree cover can also have a color table.

For single-band rasters, the list of classes MUST accompany the data asset. For multi-band rasters, it MUST accompany the band it describes, in the STAC 1.1 bands array of the data asset. In both cases, the list of classes is adjacent to the nodata value of the same object. A collection that models scenes as items SHOULD also put the list of classes in the same place on its item_assets definition, so that clients can render legends without needing to open the item itself. In addition to the value, name, and optional color_hint defined by the STAC classification extension, publishers MUST also include a human-readable title for every class.

The COG's embedded color table (i.e., the TIFF ColorMap tag) is authoritative for rendering because any TIFF reader can draw it without needing to read the STAC metadata. Class names are provided by the class list. When a classified band has a color table, the color_hint for each class SHOULD correspond to the red, green, and blue components of the color table entry for that class value. Software that reads the catalog SHOULD draw the band based on the color table when the two differ. Tools that generate the metadata MAY set a missing color_hint from the color table.

A class MUST be marked nodata: true if and only if its value equals the nodata value of the asset or band that has the list of classes. Clients SHOULD render that class as transparent and SHOULD exclude it from the legend. Continuous rasters, whose pixels are measurements such as elevation, SHOULD NOT include classification:classes. Styling for continuous and multiband rasters is still under discussion in specs/incubating/raster-styling.md.

Collection overviews

Collections of multiple rasters (i.e., two or more) that share the same bands and belong to the same time period, but together cover an area much larger than that of any individual item, SHOULD provide an overview COG. The overview COG is subject to all the COG requirements in this section and should be included as a collection-level asset with the visual and overview roles. This allows clients to show the whole mosaic without loading every item. Because the overview is mostly to help users understand what areas the collection covers, it can simply show the most recent or least cloudy items; complex pixel processing is not required.

The overview SHOULD be an 8-bit RGB image, with an optional alpha band. It SHOULD use a projection that suits web maps, such as Web Mercator (EPSG:3857). The overview needs sufficient resolution to show what area the items cover, but does not need to have the full resolution of the items themselves.

Collections with mosaics for several time periods SHOULD provide an overview for at least the most recent mosaic. They MAY provide an overview for each of the other periods. Each overview asset SHOULD have a datetime, or a start_datetime and end_datetime, so clients can match it to its items.

Item mirror

A raster collection that models scenes as items SHOULD also publish a stac-geoparquet item mirror at items.parquet in the collection root. One range request then returns the whole collection's item metadata, in place of one HTTP fetch per scene. Clients can search a large scene collection, or assemble it into a data cube, without a STAC API server.

An item mirror is a Parquet copy of a collection's items. This is distinct from Portolan's provenance meaning of mirror, where a mirror is a catalog republishing data it did not produce. See Source Provenance.

Always refer to this construct as an item mirror or STAC-GeoParquet mirror, never simply mirror.

No item-count threshold applies. Tooling generates the item mirror directly from the item JSON, and avoiding repeated JSON fetches provides a benefit even for small collections.

A published item mirror MUST be registered as a collection-level asset carrying media type application/vnd.apache.parquet and the role collection-mirror, per Referencing STAC Geoparquet Collections in STAC Collection JSON. That single registration is the whole requirement; no rel: "items" link is needed.

The item JSON remains the normative representation. An item mirror is a derived Parquet copy and MUST exactly reproduce the collection's items at publication time: one row per item, with every row containing that item's fields.

An item mirror that falls out of sync with its source items produces incorrect query results, and clients have no reliable way to detect the mismatch.

The GeoParquet requirements above apply to item mirrors exactly as they apply to vector datasets. Rows MUST be spatially ordered, the file MUST include per-row-group spatial statistics, and row groups MUST contain no more than 150,000 rows. Clients query an item mirror spatially just as they query any other GeoParquet dataset.

A collection containing only a single COG has no items and therefore publishes no item mirror. The catalog index, a STAC-GeoParquet file with a row for each catalog and collection of a catalog, is incubating. See specs/incubating/stac-geoparquet.md.

Zarr is a candidate raster format beside COG. The draft Zarr profile states its rules, and it is not yet part of the conformance surface.

Imagery

For satellite and aerial imagery, publishers SHOULD declare nodata, or include an alpha band, in each scene, so that clients don't draw empty pixels as black. Publishers SHOULD also use each scene's valid-data footprint as its item geometry.

Tabular (Non-Geospatial)

Portolan supports non-geospatial tabular data as companion data to a catalog's spatial layers — tables keyed by time, administrative code, or category rather than by location (e.g. census demographics by tract ID, permit records by parcel number, budget allocations by administrative unit, or time-series such as sensor readings). Tabular support is scoped to data that relates to the same geographic area as the catalog's spatial layers; Portolan is not a general-purpose data catalog.

A tabular collection MUST be distinguishable from a geospatial one so that validators and federation agents relax spatial requirements and route queries correctly. No explicit marker property is defined; a tabular collection is identified by its data, a Parquet asset with no geometry column. This MAY be revisited in a future version if implicit detection proves insufficient.

Data MUST be provided as a Parquet file (application/vnd.apache.parquet) exposed as a collection-level asset with role ["data"], following the single-file collection pattern — no item directory or item JSON. Where a source file is converted (e.g. a CSV), the original MAY be retained as an alternate asset under the primary-vs-alternate rule, with the Parquet as the primary.

A tabular collection MUST include extent.spatial.bbox, as required by STAC. Use the bounds of the geographic area the table is about. The bounding box does not describe a geometry footprint. Validators MUST treat the bounding box as informational.

Tabular data has no geometry. GeoParquet spatial metadata, visualization derivatives such as PMTiles, and geometry validation are not required.

For a table of European electricity prices, use the bounds of Europe. For a tabular collection in a country catalog, use that country's bounds.

Tabular collections SHOULD populate extent.temporal when the data has a time dimension, and SHOULD document their columns with the STAC table extension (table:columns with names, types, and descriptions). Because tabular data has no geometry to signal its meaning, the column schema is the primary semantic handle for consumers and agents.

When geometry and attributes live in separate files (e.g. census geometries joined to a demographics table), the metadata MUST document the join columns explicitly in the README and MUST include a working code example showing how to join them. Richer multi-file relationship modeling (via the table extension or Apache Ossie) is still being worked out.

All other Portolan core requirements apply unchanged: collection.json, README.md, AGENTS.md, providers, and via provenance links.

eurostat-electricity-prices/
├── collection.json
├── AGENTS.md
├── README.md
├── electricity-prices.parquet
└── electricity-prices.csv   (source, if converted)

Point Cloud

Point cloud support is not yet implemented; when complete, data MUST be provided as Cloud-Optimized Point Cloud (COPC). Full requirements will follow a reference implementation — see specs/incubating/point-cloud.md.