- fix factories
url_for
type (for starlette >=0.26)
- replace
VectorTilerFactory.tms_dependency
attribute byTilerFactory.supported_tms
. This attribute gets amorecantile.defaults.TileMatrixSets
store and will create the tms dependencies dynamically - replace
TMSFactory.tms_dependency
attribute byTMSFactory.supported_tms
. This attribute gets amorecantile.defaults.TileMatrixSets
store and will create the tms dependencies dynamically - add
default_tms
inVectorTilerFactory
to set the default TMS identifier supported by the tiler (e.gWebMercatorQuad
)
- update hatch config
- remove
.pbf
extension in tiles endpoints - add
orjson
as an optional dependency (for faster JSON encoding/decoding within the database communication) - enable
geom
query parameter to select thegeometry column
(defaults to the first one) - add FastAPI application
exception handler
in default app - add
CacheControlMiddleware
middleware - enable more options to be forwarded to the
asyncpg
pool creation - add
PG_SCHEMAS
andPG_TABLES
environment variable to specify Postgres schemas and tables - add
TIMVT_FUNCTIONS_DIRECTORY
environment variable to look for function SQL files - switch viewer to Maplibre
- add
Point
andLineString
feature support in viewer - Update dockerfiles to python3.10 and postgres14-postgis3.3
- update FastAPI requirement to >0.87
- remove endpoint Tags
- make orjson a default requirement
breaking changes
- renamed
app.state.function_catalog
toapp.state.timvt_function_catalog
- changed
timvt.layer.Table
format table_catalog
is now ofDict[str, Dict[str, Any]]
type (instead ofList[Dict[str, Any]]
)- renamed
timvt.db.table_index
totimvt.dbmodel.get_table_index
- default to only view tables within the
public
schema - renamed base exception class to
TiMVTError
- remove python 3.7 support
- update database settings input
- add
default_tms
in Layer definition to specify the Min/Max zoom TileMatrixSet - update
starlette-cramjam
requirement
breaking changes
- deprecating the use of
.pbf
in tile's path
- update
morecantile
requirement to>3.1,=<4.0
- switch to
pyproject.toml
and repo cleanup
- update viewer
- Refactor Function Registry to be hosted in the application state (`app.state.function_catalog) as the Table catalog.
- move
timvt.function.Registry
totimvt.layer.FunctionRegistry
- update settings management from starlette to pydantic and use
TIMVT_
prefix
- update FastAPI version requirement to allow
>=0.73
- Faster and cleaner SQL code
- Compare Tile and Table geometries in Table CRS (speedup)
- Allow non-epsg based TileMatrixSet
- update morecantile requirement to
>=3.0.2
- add
geometry_srid
in Table metadata - refactor
Function
layers.
breaking changes
- Function layer signature change
-- before
CREATE FUNCTION name(
-- bounding box
xmin float,
ymin float,
xmax float,
ymax float,
-- EPSG (SRID) of the bounding box coordinates
epsg integer,
-- additional parameters
value0 int,
value1 int
)
RETURNS bytea
-- now
CREATE FUNCTION name(
-- bounding box
xmin float,
ymin float,
xmax float,
ymax float,
-- EPSG (SRID) of the bounding box coordinates
epsg integer,
-- additional parameters
query_params json
)
RETURNS bytea
Initial release