Class PMTilesDataStore

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

@NullMarked 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(PMTilesDataStoreFactory factory, PMTilesReader pmtilesReader) throws IOException
      Creates a new PMTiles datastore from a PMTilesReader.

      The PMTilesReader provides access to the PMTiles archive and manages the underlying byte-range reader and caches. The datastore takes ownership of the reader and will close it when dispose() is called.

      Parameters:
      factory - the factory that created this datastore, used for accessing shared resources
      pmtilesReader - the PMTilesReader providing access to the PMTiles archive
      Throws:
      IOException - if the PMTiles archive cannot be read or is invalid
  • Method Details