submarcos / django-vectortiles

Mapbox VectorTiles for django, with PostGIS or Python
https://django-vectortiles.readthedocs.io
MIT License
38 stars 11 forks source link

Exclude original geometry from MVT #15

Closed StefanBrand closed 3 years ago

StefanBrand commented 3 years ago

Currently, the original geometry is packaged into the vector tile, additionally to the MVT geometry. In order to make the size of tiles smaller, implement an option to exclude the original geometry from the MVT.

Example (tile index 13, 4457, 2833)

I took the query from Django and used it in pgadmin with pg_size_pretty(length(ST_ASMVT(...))). These are the sizes before and after I comment out the table."geometry"::bytea part:

Reduction of 46%

StefanBrand commented 3 years ago

Sorry, issue on my side, I passed my geometry field to vector_tile_fields. :grin: Sorry for the noise :innocent: