Class VectorTilesFeatureSource

Object
ContentFeatureSource
VectorTilesFeatureSource
All Implemented Interfaces:
FeatureSource<SimpleFeatureType,SimpleFeature>, SimpleFeatureSource

public class VectorTilesFeatureSource extends ContentFeatureSource
Feature source for a single vector layer in a tiled vector dataset.

This class provides GeoTools feature access to a single vector layer from a tile archive. It handles the complexity of:

  • Converting between GeoTools queries and tile-based queries
  • Automatic zoom level selection based on query resolution hints
  • Spatial filtering and bounding box optimization
  • Coordinate reference system transformation
  • Feature attribute filtering and property selection
  • Pagination (offset/limit support)

Query Optimization:

  • Zoom Level Selection: Automatically selects the best zoom level based on Hints.GEOMETRY_DISTANCE, Hints.GEOMETRY_SIMPLIFICATION, or Hints.GEOMETRY_GENERALIZATION hints
  • Spatial Filtering: Extracts bounding boxes from query filters to minimize tile reads
  • CRS Transformation: Efficiently transforms geometries using affine transformations where possible
  • Pre-filtering: Applies filters at the vector tile level before converting to GeoTools features

Supported Operations:

Feature Type Schema: The schema is automatically derived from the vector layer metadata (TileJSON), with field types mapped from TileJSON types (String, Number, Boolean) to Java types.

See Also: