<div dir="ltr"><div><div><div><div>Oliver,<br><br></div>I really appreciate the explanation! Unfortunately enforcing an extension is not an option Maptiler offers at the time, and not much I can do besides reporting issue, since it's not open source.. <br></div>Do you think it is worth for me to try to overwrite the text/plain interpretation of files without suffix? Or is it not in Mapproxy code, but rather a language/system default?<br><br></div>Thank you very much again!<br></div>Anna<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 12, 2016 at 6:02 AM, Oliver Tonnhofer <span dir="ltr"><<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the configuration.<br>
<br>
Python tries to guess the content-type for file:// URLs. It returns image/jpeg for .jpg files, but text/plain for files without any file suffix.<br>
But MapProxy refuses to load non-image responses. You do not see anything in the demo because of your on_error configuration.<br>
<br>
<br>
Can you tell MapTiler to use .png or .jpeg as the extension? It doesn’t matter for MapProxy if a .png actually contains JPEG data.<br>
<span class="im HOEnZb"><br>
<br>
Regards,<br>
Oliver<br>
<br>
--<br>
Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="http://omniscale.com" rel="noreferrer" target="_blank">http://omniscale.com</a><br>
OpenStreetMap WMS and tile services | <a href="http://maps.omniscale.com" rel="noreferrer" target="_blank">http://maps.omniscale.com</a><br>
<br>
<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">> On 10.02.2016, at 22:10, Pestereva, Anna <<a href="mailto:apestereva@aerialservicesinc.com">apestereva@aerialservicesinc.com</a>> wrote:<br>
><br>
> Oliver,<br>
><br>
> thank you, your reply is encouraging, but it doesn't seem to work for me.. No tiles are returned when viewing in Demo app, and no cache is generated.<br>
><br>
> I checked the source-requests.log - and saw that the extensionless files were being requested from the supplied source, and they even got returned (there is size value) - but that still didn't result in visible layer.. Here is a snippet from source-requests.log:<br>
><br>
> [2016-02-10 14:45:13,039] GET file:///path/to/hybrid/13/<a href="tel:1989%2F5180%20-%202.2%200" value="+19895180220">1989/5180 - 2.2 0</a><br>
> [2016-02-10 14:45:13,080] GET file:///path/to/hybrid/13/1990/5180 - - 0<br>
> [2016-02-10 14:45:13,104] GET file:///path/to/hybrid/13/1989/5179 - 5.3 0<br>
> [2016-02-10 14:45:13,190] GET file:///path/to/hybrid/13/1990/5179 - - 0<br>
><br>
><br>
> When I substituted the source URL for a jpg tileset copy - whether also local, or hosted on another server - I was able to see the layer properly in the Demo app. So, I'm assuming the rest of the config is correct. Here is the snippet of my config:<br>
><br>
><br>
> layers:<br>
> - name: asi_hybrid_test<br>
> title: Test layer from extensionless hybrid source<br>
> sources: [hybrid_test_cache]<br>
><br>
> caches:<br>
> hybrid_test_cache:<br>
> grids: [webmercator]<br>
> sources: [hybrid_test_tms]<br>
><br>
> parts:<br>
> on_error: &onerror<br>
> other:<br>
> response: transparent<br>
> cache: false<br>
><br>
> sources:<br>
> hybrid_test_tms:<br>
> url: file:///path/to/hybrid/%(z)s/%(x)s/%(y)s<br>
> # url: <a href="http://maps.asi-gis.com/webmaps/tiles/gndvi3/%(z)s/%(x)s/%(y)s.jpg" rel="noreferrer" target="_blank">http://maps.asi-gis.com/webmaps/tiles/gndvi3/%(z)s/%(x)s/%(y)s.jpg</a><br>
> # url: file:///path/to/gndvi3/%(z)s/%(x)s/%(y)s.jpg<br>
> type: tile<br>
> coverage:<br>
> bbox: [-92.6, 42.9, -92.5, 43.0]<br>
> bbox_srs: 'EPSG:4326'<br>
> transparent: true<br>
> on_error: *onerror<br>
><br>
><br>
> My only next thought is - should I be configuring a custom grid?<br>
><br>
> Side question - do you happen to know how common is such use of tiles with no format? This is first time I run into it, and couldn't find support for this approach in the WMTS standard.<br>
><br>
> Would appreciate any suggestions. Thank you!<br>
><br>
><br>
> On Tue, Feb 9, 2016 at 8:38 AM, Oliver Tonnhofer <<a href="mailto:olt@omniscale.de">olt@omniscale.de</a>> wrote:<br>
> Hi,<br>
><br>
> that should work.<br>
><br>
> Can you provide a full example?<br>
><br>
><br>
> Regards,<br>
> Oliver<br>
><br>
> --<br>
> Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="http://omniscale.com" rel="noreferrer" target="_blank">http://omniscale.com</a><br>
> OpenStreetMap WMS and tile services | <a href="http://maps.omniscale.com" rel="noreferrer" target="_blank">http://maps.omniscale.com</a><br>
><br>
><br>
><br>
><br>
> > On 06.02.2016, at 00:41, Pestereva, Anna <<a href="mailto:apestereva@aerialservicesinc.com">apestereva@aerialservicesinc.com</a>> wrote:<br>
> ><br>
> > Hello all,<br>
> ><br>
> > has anyone had experience with using tiles without any extensions as a Mapproxy source?<br>
> ><br>
> > So far my tests were not successful, I tried configuring these URLs in my source with no luck:<br>
> > url: file:///path/to/my/tiles/%(z)s/%(x)s/%(y)s<br>
> > url: file:///path/to/my/tiles/%(z)s/%(x)s/%(y)s.<br>
> > There were no errors when trying to view my layer, but no imagery was served either, and no cache got generated.<br>
> ><br>
> > In our case, we need to use hybrid tile format (jpg+png) and Maptiler started producing hybrid tiles with no extensions as of version 0.6.3. Leaflet does show such tiles if configuring directly, like so<br>
> > L.tileLayer('{z}/{x}/{y}', options).addTo(map);<br>
> > However we are looking to use these tiles in Mapproxy.<br>
> ><br>
> > Thank you!<br>
> > --<br>
> > Anna Pestereva, GISP | Application Developer & Cartographer<br>
> > Aerial Services, Inc. (ASI)<br>
> > APestereva@AerialServicesInc.com | LinkedIn<br>
> > <a href="http://www.AerialServicesInc.com" rel="noreferrer" target="_blank">www.AerialServicesInc.com</a> | Photo{blog}metry<br>
> > _______________________________________________<br>
> > MapProxy mailing list<br>
> > <a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Anna Pestereva, GISP | Application Developer & Cartographer<br>
> Aerial Services, Inc. (ASI)<br>
> Office: <a href="tel:%28319%29%20277-0436" value="+13192770436">(319) 277-0436</a> | Direct: <a href="tel:%28319%29%20553-0261" value="+13195530261">(319) 553-0261</a> | Mobile: <a href="tel:%28319%29%20830-6340" value="+13198306340">(319) 830-6340</a> | Fax: <a href="tel:%28866%29%20800-4799" value="+18668004799">(866) 800-4799</a><br>
> 6315 Chancellor Drive | Cedar Falls, Iowa 50613<br>
> APestereva@AerialServicesInc.com | LinkedIn<br>
> <a href="http://www.AerialServicesInc.com" rel="noreferrer" target="_blank">www.AerialServicesInc.com</a> | Photo{blog}metry<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;color:rgb(0,40,168)">Anna Pestereva, GISP</span><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif"> | <i><span>Application Developer & Cartographer</span></i></span></b><span style="line-height:115%;font-size:12pt;font-family:Arial,sans-serif"><br>
</span><b><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Aerial Services, Inc.
(ASI) </span></b><span style="font-size:12pt;line-height:115%;font-family:Arial,sans-serif;color:gray"><br>
</span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Office:</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray"> <a value="+13192770436">(319) 277-0436</a> | </span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Direct:</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray"> <a value="+13195530261">(319) 553-0261</a> | </span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Mobile:</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray"> <a value="+13198306340">(319) 830-6340</a> | </span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">Fax:</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray"> <a value="+18668004799">(866) 800-4799</a></span><span style="line-height:115%;font-size:11pt;font-family:Arial,sans-serif"><br>
</span><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:gray">6315 Chancellor Drive
| Cedar Falls, Iowa 50613 </span><span style="line-height:115%;font-size:11pt;font-family:Arial,sans-serif"><br>
</span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="mailto:apestereva@AerialServicesInc.com" target="_blank"><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">APestereva@AerialServicesInc.com</span></a></span><span style="line-height:115%;font-size:10pt;font-family:Arial,sans-serif"> | </span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="http://www.linkedin.com/in/annapestereva" target="_blank"><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">LinkedIn</span></a></span><span style="line-height:115%;font-size:10pt;font-family:Arial,sans-serif"><br>
</span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="http://www.aerialservicesinc.com/" target="_blank"><b><span style="line-height:115%;font-family:Arial,sans-serif">www.AerialServicesInc.com</span></b></a></span><b><u><span style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;color:blue"> </span></u></b><span><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;color:gray">| </span></span><span style="font-size:11pt;line-height:115%;font-family:Calibri,sans-serif"><a href="http://aerialservicesinc.com/photoblogmetry/" target="_blank"><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif">Photo{blog}metry</span></a></span><span><u><a href="http://www.aerialservicesinc.com/" target="_blank"></a></u></span></div></div></div></div>
</div>