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

Philippe Ghesquiere philippe.ghesquiere at airbus.com
Thu Mar 26 02:17:34 PDT 2026


Hi Johannes,

Your hint sounds like a good workaround.
I'll apply it if there is no direct parameter in mapcache.

Thanks
Philippe

On Thu, Mar 26, 2026 at 9:26 AM Johannes Paul <johannespaul92 at gmail.com>
wrote:

> 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
>>
>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20260326/79bb9319/attachment-0001.htm>


More information about the MapServer-users mailing list