Class PMTilesDataStore

All Implemented Interfaces:
DataAccess<SimpleFeatureType,SimpleFeature>, DataStore

public class PMTilesDataStore extends VectorTilesDataStore
GeoTools DataStore implementation for reading PMTiles archives containing Mapbox Vector Tiles.

This datastore provides access to cloud-optimized PMTiles archives from various sources including local files, HTTP/HTTPS servers, and cloud storage (AWS S3, Azure Blob Storage, Google Cloud Storage). It uses the Tileverse Range Reader library for efficient byte-range access and the Tileverse PMTiles library for reading the PMTiles format.

Features:

  • Reads PMTiles v3 archives with embedded vector tiles
  • Supports multiple data sources via RangeReader
  • Automatic zoom level selection based on query resolution
  • Spatial filtering and bbox optimization
  • Coordinate reference system transformation
  • Thread-safe concurrent access
See Also:
  • Constructor Details

    • PMTilesDataStore

      public PMTilesDataStore(RangeReader rangeReader) throws IOException
      Creates a new PMTiles datastore from a RangeReader.

      The RangeReader provides the underlying byte-range access to the PMTiles archive, which can be from any supported source (local file, HTTP, cloud storage). The datastore takes ownership of the RangeReader and will close it when dispose() is called.

      Parameters:
      rangeReader - the RangeReader providing access to the PMTiles archive
      Throws:
      IOException - if the PMTiles archive cannot be read or is invalid
  • Method Details