[MapServer-users] How to avoid writing empty tiles with mapcache_seed

Johannes Paul johannespaul92 at gmail.com
Thu Mar 26 01:26:35 PDT 2026


Hi Philippe,
by using <detect_blank/> you can store a quadruplet of the rgba color in
the data blob instead of the compressed image data, it should then be easy
to get rid of these tiles in the SQLite if needed (DELETE FROM tiles WHERE
length(tile_data) = 4;).
https://mapserver.org/mapcache/caches.html#blank-tile-detection
Johannes

On Thu, 26 Mar 2026 at 08:49, Philippe Ghesquiere via MapServer-users <
mapserver-users at lists.osgeo.org> wrote:

>
> Hi all,
>
> While creating a GPKG cache with mapcache_seed, I would like to avoid
> writing empty tiles.
> I know that <symlink/> can save disk space. But I would like to get rid of
> these empty tiles.
> Is there any parameter to achieve it ?
>
> If there is no such parameter, do you have any idea for some post-process
> SQLITE command to remove these tiles ?
>
> Thanks for your help
> Philippe
> The information in this e-mail is confidential. The contents may not be
> disclosed or used by anyone other than the addressee. Access to this e-mail
> by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately
> and delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness
> of this e-mail as it has been sent over public networks. If you have any
> concerns over the content of this message or its Accuracy or Integrity,
> please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus
> scanning software but you should take whatever measures you deem to be
> appropriate to ensure that this message and any attachments are virus free.
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20260326/3809b1d6/attachment.htm>


More information about the MapServer-users mailing list