mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
3fcad46500
Compression middleware turned out to be hard to use for image cases - it simply looks at the content-encoding, and if not set, tries to compress if accepted by the client. Instead, now individual routes are configured with either that middleware, or for tiles, I decompress and optionally recompress if applicable. Now encoding is tracked separately from the tile content, making it cleaner too. Plus lots of tests for mbtiles & pmtiles. Fixes #577
162 lines
3.9 KiB
YAML
162 lines
3.9 KiB
YAML
listen_addresses: localhost:3111
|
|
postgres:
|
|
default_srid: 900913
|
|
disable_bounds: true
|
|
auto_publish: true
|
|
tables:
|
|
MixPoints:
|
|
schema: MixedCase
|
|
table: MixPoints
|
|
srid: 4326
|
|
geometry_column: Geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
Gid: int4
|
|
TABLE: text
|
|
points1:
|
|
schema: public
|
|
table: points1
|
|
srid: 4326
|
|
geometry_column: geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
gid: int4
|
|
points1_vw:
|
|
schema: public
|
|
table: points1_vw
|
|
srid: 4326
|
|
geometry_column: geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
gid: int4
|
|
points2:
|
|
schema: public
|
|
table: points2
|
|
srid: 4326
|
|
geometry_column: geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
gid: int4
|
|
points3857:
|
|
schema: public
|
|
table: points3857
|
|
srid: 3857
|
|
geometry_column: geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
gid: int4
|
|
points_empty_srid:
|
|
schema: public
|
|
table: points_empty_srid
|
|
srid: 900913
|
|
geometry_column: geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: GEOMETRY
|
|
properties:
|
|
gid: int4
|
|
table_source:
|
|
schema: public
|
|
table: table_source
|
|
srid: 4326
|
|
geometry_column: geom
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: GEOMETRY
|
|
properties:
|
|
gid: int4
|
|
table_source_multiple_geom:
|
|
schema: public
|
|
table: table_source_multiple_geom
|
|
srid: 4326
|
|
geometry_column: geom1
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
geom2: geometry
|
|
gid: int4
|
|
table_source_multiple_geom.1:
|
|
schema: public
|
|
table: table_source_multiple_geom
|
|
srid: 4326
|
|
geometry_column: geom2
|
|
extent: 4096
|
|
buffer: 64
|
|
clip_geom: true
|
|
geometry_type: POINT
|
|
properties:
|
|
geom1: geometry
|
|
gid: int4
|
|
functions:
|
|
function_Mixed_Name:
|
|
schema: MixedCase
|
|
function: function_Mixed_Name
|
|
function_null:
|
|
schema: public
|
|
function: function_null
|
|
function_null_row:
|
|
schema: public
|
|
function: function_null_row
|
|
function_null_row2:
|
|
schema: public
|
|
function: function_null_row2
|
|
function_zoom_xy:
|
|
schema: public
|
|
function: function_zoom_xy
|
|
function_zxy:
|
|
schema: public
|
|
function: function_zxy
|
|
function_zxy2:
|
|
schema: public
|
|
function: function_zxy2
|
|
function_zxy_query:
|
|
schema: public
|
|
function: function_zxy_query
|
|
function_zxy_query_jsonb:
|
|
schema: public
|
|
function: function_zxy_query_jsonb
|
|
function_zxy_query_test:
|
|
schema: public
|
|
function: function_zxy_query_test
|
|
function_zxy_row:
|
|
schema: public
|
|
function: function_zxy_row
|
|
function_zxy_row_key:
|
|
schema: public
|
|
function: function_zxy_row_key
|
|
pmtiles:
|
|
paths: tests/fixtures/files
|
|
sources:
|
|
png: tests/fixtures/files/png.pmtiles
|
|
stamen_toner__raster_CC-BY-ODbL_z3: tests/fixtures/files/stamen_toner__raster_CC-BY+ODbL_z3.pmtiles
|
|
webp: tests/fixtures/files/webp.pmtiles
|
|
mbtiles:
|
|
paths: tests/fixtures/files
|
|
sources:
|
|
geography-class-jpg: tests/fixtures/files/geography-class-jpg.mbtiles
|
|
geography-class-png: tests/fixtures/files/geography-class-png.mbtiles
|
|
geography-class-png-no-bounds: tests/fixtures/files/geography-class-png-no-bounds.mbtiles
|
|
json: tests/fixtures/files/json.mbtiles
|
|
uncompressed_mvt: tests/fixtures/files/uncompressed_mvt.mbtiles
|
|
webp.1: tests/fixtures/files/webp.mbtiles
|
|
world_cities: tests/fixtures/files/world_cities.mbtiles
|