[MapProxy] WMTS-Source: could not retrieve tile

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[MapProxy] WMTS-Source: could not retrieve tile

sulu
Hi!

This is my first post and i am a newbie in mapproxy.

So.
My goal ist o create a local tile cache in our native srs (31254) from an external WMTS (http://maps.wien.gv.at/basemap) which is only provided in 3857.
As a first step i just want to see the external WMTS in my MapProxy-Demo.

But this fails.
In mapproxy.log i find:
...
WARNING - mapproxy.source.tile - could not retrieve tile: No response from URL "http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/7/45/67.png": timed out
...

The URL ist perfectly fine.
wget "http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/7/45/67.png" -o 67.png
delivers a nice little PNG-image.
This at least suggests the configuration not being to much off the mark.

Now comes the strange part.
I cannot find any network-requests for http://maps.wien.gv.at/basemap... using a packet analyzer (wireshark)
How is this possible? Or better. Does mapproxy not query the internet but rather some local storage resp. cache?



Relevant snippets from my mapproxy.yaml:
.
  - name: basemap_layer
    title: Basemap
    sources: [basemap_cache]
.
  basemap_cache:
    format: image/png
    request_format: image/png
    grids: [webmercator]
    sources: [basemap_wmts]
.
  basemap_wmts:
    type: tile
    url: <a href="http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/%(z)s/%(y)s/%(x)s.png">http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/%(z)s/%(y)s/%(x)s.png
    transparent: false
    grid: webmercator
    coverage:
      bbox: [977650, 5838030, 1913530, 6281290]
      srs: 'EPSG:3857'





Mag Andreas Siegel
Abteilung Geoinformation
 
Landesamt für Vermessung und Geoinformation
Johannitergasse 6, A-6800 Feldkirch
T: +43(0) 5522 / 75482 - 60227
F: +43(0) 5522 / 75482 - 6
E: [hidden email]
I: http://www.vorarlberg.at/lva
 
Rechtsverbindlichen Schriftverkehr
(zB Anträge, Rechtsmittel) richten Sie an:
F: +43(0)5522/75482-6
E: [hidden email]


_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] WMTS-Source: could not retrieve tile

Oliver Tonnhofer-3
Hi,

it's sounds like the request is blocked by a firewall. Do you need to use an HTTP proxy?
See: http://mapproxy.org/docs/nightly/configuration_examples.html#access-sources-through-http-proxy


Regards,
Oliver

--
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com


> On 21.04.2016, at 11:11, Siegel Andreas <[hidden email]> wrote:
>
> Hi!
>
> This is my first post and i am a newbie in mapproxy.
>
> So.
> My goal ist o create a local tile cache in our native srs (31254) from an external WMTS (http://maps.wien.gv.at/basemap) which is only provided in 3857.
> As a first step i just want to see the external WMTS in my MapProxy-Demo.
>
> But this fails.
> In mapproxy.log i find:
> ...
> WARNING - mapproxy.source.tile - could not retrieve tile: No response from URL "http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/7/45/67.png": timed out
> ...
>
> The URL ist perfectly fine.
> wget "http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/7/45/67.png" -o 67.png
> delivers a nice little PNG-image.
> This at least suggests the configuration not being to much off the mark.
>
> Now comes the strange part.
> I cannot find any network-requests for http://maps.wien.gv.at/basemap... using a packet analyzer (wireshark)
> How is this possible? Or better. Does mapproxy not query the internet but rather some local storage resp. cache?
>
>
>
> Relevant snippets from my mapproxy.yaml:
> .
>  - name: basemap_layer
>    title: Basemap
>    sources: [basemap_cache]
> .
>  basemap_cache:
>    format: image/png
>    request_format: image/png
>    grids: [webmercator]
>    sources: [basemap_wmts]
> .
>  basemap_wmts:
>    type: tile
>    url: <a href="http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/%(z)s/%(y)s/%(x)s.png">http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/%(z)s/%(y)s/%(x)s.png
>    transparent: false
>    grid: webmercator
>    coverage:
>      bbox: [977650, 5838030, 1913530, 6281290]
>      srs: 'EPSG:3857'
>
>
>
>
>
> Mag Andreas Siegel
> Abteilung Geoinformation
>  
> Landesamt für Vermessung und Geoinformation
> Johannitergasse 6, A-6800 Feldkirch
> T: +43(0) 5522 / 75482 - 60227
> F: +43(0) 5522 / 75482 - 6
> E: [hidden email]
> I: http://www.vorarlberg.at/lva
>  
> Rechtsverbindlichen Schriftverkehr
> (zB Anträge, Rechtsmittel) richten Sie an:
> F: +43(0)5522/75482-6
> E: [hidden email]
>
>
> _______________________________________________
> MapProxy mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapproxy

_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] WMTS-Source: could not retrieve tile

sulu
Umpf! Embarassing!

That really was the issue.

But why could i not see the connection atempts in wireshark?

* adds this to the ever growing pile of homework *

Thanks
Andy


Mag Andreas Siegel
Abteilung Geoinformation
 
Landesamt für Vermessung und Geoinformation
Johannitergasse 6, A-6800 Feldkirch
T: +43(0) 5522 / 75482 - 60227
F: +43(0) 5522 / 75482 - 6
E: [hidden email]
I: http://www.vorarlberg.at/lva
 
Rechtsverbindlichen Schriftverkehr
(zB Anträge, Rechtsmittel) richten Sie an:
F: +43(0)5522/75482-6
E: [hidden email]

-----Ursprüngliche Nachricht-----
Von: Oliver Tonnhofer [mailto:[hidden email]]
Gesendet: Freitag, 22. April 2016 15:13
An: Siegel Andreas
Cc: [hidden email]
Betreff: Re: [MapProxy] WMTS-Source: could not retrieve tile

Hi,

it's sounds like the request is blocked by a firewall. Do you need to use an HTTP proxy?
See: http://mapproxy.org/docs/nightly/configuration_examples.html#access-sources-through-http-proxy


Regards,
Oliver

--
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com


> On 21.04.2016, at 11:11, Siegel Andreas <[hidden email]> wrote:
>
> Hi!
>
> This is my first post and i am a newbie in mapproxy.
>
> So.
> My goal ist o create a local tile cache in our native srs (31254) from an external WMTS (http://maps.wien.gv.at/basemap) which is only provided in 3857.
> As a first step i just want to see the external WMTS in my MapProxy-Demo.
>
> But this fails.
> In mapproxy.log i find:
> ...
> WARNING - mapproxy.source.tile - could not retrieve tile: No response from URL "http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/7/45/67.png": timed out
> ...
>
> The URL ist perfectly fine.
> wget "http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/7/45/67.png" -o 67.png
> delivers a nice little PNG-image.
> This at least suggests the configuration not being to much off the mark.
>
> Now comes the strange part.
> I cannot find any network-requests for http://maps.wien.gv.at/basemap... using a packet analyzer (wireshark)
> How is this possible? Or better. Does mapproxy not query the internet but rather some local storage resp. cache?
>
>
>
> Relevant snippets from my mapproxy.yaml:
> .
>  - name: basemap_layer
>    title: Basemap
>    sources: [basemap_cache]
> .
>  basemap_cache:
>    format: image/png
>    request_format: image/png
>    grids: [webmercator]
>    sources: [basemap_wmts]
> .
>  basemap_wmts:
>    type: tile
>    url: <a href="http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/%(z)s/%(y)s/%(x)s.png">http://maps.wien.gv.at/basemap/bmapgrau/normal/google3857/%(z)s/%(y)s/%(x)s.png
>    transparent: false
>    grid: webmercator
>    coverage:
>      bbox: [977650, 5838030, 1913530, 6281290]
>      srs: 'EPSG:3857'
>
>
>
>
>
> Mag Andreas Siegel
> Abteilung Geoinformation
>  
> Landesamt für Vermessung und Geoinformation
> Johannitergasse 6, A-6800 Feldkirch
> T: +43(0) 5522 / 75482 - 60227
> F: +43(0) 5522 / 75482 - 6
> E: [hidden email]
> I: http://www.vorarlberg.at/lva
>  
> Rechtsverbindlichen Schriftverkehr
> (zB Anträge, Rechtsmittel) richten Sie an:
> F: +43(0)5522/75482-6
> E: [hidden email]
>
>
> _______________________________________________
> MapProxy mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapproxy

_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy