<div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">Seems the S3 stuff is pretty broken in MapProxy for this use case.</div><div dir="auto"><br></div><div dir="auto">I’ve made some updates which speed up the cache considerably (at the moment it’s a boot session per tile I think) and expose some extra settings (region name, max http pool connections) to make things easier.</div><div dir="auto"><br></div><div dir="auto">I’ll PR next week.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">James Sewell </div><br><div class="gmail_quote"><div>On Thu, 15 Feb 2018 at 8:22 pm, Oliver Tonnhofer <<a href="mailto:tonnhofer@omniscale.de">tonnhofer@omniscale.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
you can create a dummy tile source that references a local file (IIRC `url: file:///path/to/tile`).<br>
<br>
For IAM role, please check out the documentation of Boto3. Not sure if it supports what you want to do.<br>
<br>
<br>
Regards,<br>
Oliver<br>
<br>
--<br>
Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="https://omniscale.com" rel="noreferrer" target="_blank">https://omniscale.com</a><br>
OpenStreetMap WMS and tile services | <a href="https://maps.omniscale.com" rel="noreferrer" target="_blank">https://maps.omniscale.com</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
> On 8. Feb 2018, at 04:49, James Sewell <<a href="mailto:james.sewell@jirotech.com" target="_blank">james.sewell@jirotech.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I am using Mapproxy 1.12.0a with a fully seeded tile cache stored on Amazon S3. I'm running Mapproxy on EC2 instances which are using an IAM role.<br>
><br>
> I have a cache directive as follows:<br>
><br>
> caches:<br>
> wm_cache:<br>
> format: image/png<br>
> request_format: image/png<br>
> grids: [ "EPSG:3857" ]<br>
> sources: []<br>
> minimize_meta_requests: true<br>
> cache:<br>
> type: s3<br>
> directory: TileCache3857/Carto/<br>
> bucket_name: cache<br>
> directory_layout: arcgis<br>
><br>
><br>
> I have a few questions:<br>
><br>
> 1. How do I attach an on_error section (as seen in a source usually) to this? I don't have a source, but if someone zooms in too far I'd like to set the colour etc..<br>
><br>
> 2. How do I switch IAM role - I'm using cross-account S3 so I can't assign the correct role on instance start.<br>
><br>
> Thanks for the help,<br>
><br>
> James Sewell,<br>
> Chief Architect<br>
><br>
><br>
><br>
> Suite 112, Jones Bay Wharf, 26-32 Pirrama Road, Pyrmont NSW 2009<br>
> P (+61) 2 8099 9000 W <a href="http://www.jirotech.com" rel="noreferrer" target="_blank">www.jirotech.com</a> F (+61) 2 8099 9099<br>
><br>
> The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence._______________________________________________<br>
> MapProxy mailing list<br>
> <a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><span style="color:rgb(50,59,98);font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:bold">James Sewell,</span><br></div><div style="font-size:14px;color:rgb(184,39,106);font-stretch:normal;font-family:Arial,Helvetica,sans-serif"><span style="color:rgb(169,169,169)"><span style="font-stretch:normal;font-size:12px"><b>Chief Architect</b></span></span></div><div style="font-size:14px;color:rgb(184,39,106);font-stretch:normal;font-family:Arial,Helvetica,sans-serif"><span style="color:rgb(169,169,169)"><span style="font-stretch:normal;font-size:12px"><b><br></b></span></span></div><div style="font-size:14px;color:rgb(184,39,106);font-stretch:normal;font-family:Arial,Helvetica,sans-serif"><span style="color:rgb(169,169,169)"><span style="font-stretch:normal;font-size:12px"><b><img src="http://jirotech.com/jirotech.png"><br></b></span></span></div><div style="font-stretch:normal;font-family:Arial,Helvetica,sans-serif"><br></div><div style="font-size:14px;font-weight:bold;font-stretch:normal;font-family:Arial,Helvetica,sans-serif"><span style="color:rgb(153,153,153);font-size:12px;font-weight:normal">Suite 112, Jones Bay Wharf, 26-32 Pirrama Road, Pyrmont NSW 2009</span><br></div><div style="font-size:small;font-stretch:normal;margin:0px"><font color="#999999"><strong style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px">P </strong><font face="Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:20px"><a href="javascript:void(0);" value="+61280999000" style="color:rgb(17,85,204)" target="_blank">(+61) 2 8099 9000</a></span></font><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px"> </span><strong style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px"> </strong><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px"><span style="width:15px;display:inline-block"><strong>W</strong></span></span><font face="Arial, Helvetica, sans-serif"><span style="font-size:12px;line-height:20px"> </span></font><a href="http://www.jirotech.com/" style="color:rgb(17,85,204);font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px;margin:2px 0px" target="_blank">www.jirotech.com</a><font face="Arial, Helvetica, sans-serif"><span style="font-size:12px;line-height:20px"> </span></font><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px"><span style="width:15px;display:inline-block"><strong>F </strong></span></span><a href="javascript:void(0);" style="color:rgb(17,85,204)" target="_blank"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px"><span style="font-family:Arial,Verdana,sans-serif">(+61) </span></span><font face="Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:20px">2 8099 9099</span></font></a></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>
<hr style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.5455px;line-height:normal"><font size="1" color="Gray" face="Arial" style="line-height:normal">The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.</font>