<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Does MapCache have to be built from source? Also, does it have to be it's own server? It's not clear to me how it connects with MapServer. Is it the case that MapServer renders tiles as necessary based on requests and then MapCache serves those files if
requested again?<br>
<br>
As mentioned, MapServer is currently storing tiles in a directory mapped to S3 which is specified by IMAGEPATH. These tiles are not pre-seeded, so I can't specify a particular raster or vector file to serve from S3. I don't think I understand how caching
is supposed to work with S3 in the way we're doing it. Can you simply specify a folder in S3 where cached data lives and have MapServer render anything that doesn't exist yet?</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Rob</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Scott via MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Sent:</b> Wednesday, March 5, 2025 11:50 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [MapServer-users] Can MapServer cache directly to AWS S3?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">External: Beware of links/attachments.<br>
<br>
<br>
<br>
You can store any raster/vector file format supported by GDAL on S3 and<br>
use it via MapServer. Note the /vsis3 virtual connection:<br>
<br>
Raster:<br>
DATA "/vsis3/myS3Bucket/raster.tif"<br>
<br>
Vector:<br>
CONNECTION "/vsis3/myS3Bucket/vector.fgb"<br>
<br>
MapServer is definitely a WMS server. Any OGC compliant WMS url can be<br>
parsed and processed. Using MapCache along MapServer is highly desirable<br>
as all subsequent WMS requests are cached. Further, you can seed any<br>
cache directly with MapCache.<br>
<br>
Scott<br>
<br>
<br>
On 3/5/25 07:57, Rob Dennett via MapServer-users wrote:<br>
> Is it possible to cache tiles to and serve them from S3 buckets? We<br>
> currently mount S3 folders in EC2 instances one of which is the<br>
> directory we specify in MAP/IMAGEPATH, but it requires us to use s3fs-<br>
> fuse and that means we have to use EC2 as opposed to Fargate, which we<br>
> would prefer. Can MapServer act as a client to S3?<br>
><br>
> I have been looking at MapCache, and as far as I can tell, it's a<br>
> separate server that works alongside a WMS server, although I am not<br>
> sure that MapServer counts as a WMS server. We use it to serve geoJSON,<br>
> UTF grid, etc. Is it what we want to use for this?<br>
><br>
> Thanks,<br>
> Rob<br>
><br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> MapServer-users@lists.osgeo.org<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
_______________________________________________<br>
MapServer-users mailing list<br>
MapServer-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>
</span></font></div>
</body>
</html>