for the wmts service problem I've "bypassed" usign geoserver in WMS CASCADE SERVICE. (<i>but I prefer the client communicate direct to mapproxy, it's scalable</i>)<br><div><div>Therefore the client connect to Geoserver - GeoWebCache WMTS service, which do the WMS request to mapproxy and final mapproxy to mapnik...</div>
<div>The problem I found is using the client ArcGisViewer for Flex 3.0</div><div>I've got no error for the Geoserver 2.1.4's wmts, only with MapProxy 1.4's wmts</div></div><div>And the error was in the prev email. (An Assert error on grid)</div>
<div><br></div><div>Note: I'm usign mapproxy with iis - ISAPI-WSGI interface.<br><div><br></div><div>HERE's the mapproxy yaml config file:</div><div>thanks for the disponibility..</div><div><br><div><b>services:</b></div>
<div><b> demo:</b></div><div><b> kml:</b></div><div><b> tms:</b></div><div><b> # needs no arguments</b></div><div><b> wmts:</b></div><div><b> wms:</b></div><div><b> srs: ['EPSG:4326']</b></div><div><b><br>
</b></div><div><b> image_formats: ['image/jpeg', 'image/png']</b></div><div><b> #image_formats: ['image/png']</b></div><div><b> md:</b></div><div><b> # metadata used in capabilities documents</b></div>
<div><b> title: MapProxy WMS Proxy</b></div><div><b> abstract: This is the fantastic MapProxy.</b></div><div><b> online_resource: <a href="http://mapproxy.org/">http://mapproxy.org/</a></b></div><div><b> contact:</b></div>
<div><b> person: Your Name Here</b></div><div><b> position: Technical Director</b></div><div><b> organization: </b></div><div><b> address: Fakestreet 123</b></div><div><b> city: Somewhere</b></div>
<div><b> postcode: 12345</b></div><div><b> country: Germany</b></div><div><b> phone: +49(0)000-000000-0</b></div><div><b> fax: +49(0)000-000000-0</b></div><div><b> email: <a href="mailto:info@omniscale.de">info@omniscale.de</a></b></div>
<div><b> access_constraints:</b></div><div><b> This service is intended for private and evaluation use only.</b></div><div><b> The data is licensed as Creative Commons Attribution-Share Alike 2.0</b></div>
<div><b> (<a href="http://creativecommons.org/licenses/by-sa/2.0/">http://creativecommons.org/licenses/by-sa/2.0/</a>)</b></div><div><b> fees: 'None'</b></div><div><b><br></b></div><div><b>layers:</b></div>
<div><b> - name: mapnik_layers</b></div><div><b> title: mapnik_layers</b></div><div><b> sources: [mapnik_cache] </b></div><div><b> </b></div><div><b> - name: mapnik_satellite</b></div><div><b> title: mapnik_satellite</b></div>
<div><b> sources: [mapnik_cache_sat]</b></div><div><b><br></b></div><div><b>caches:</b></div><div><b> mapnik_cache:</b></div><div><b> grids: [global_mercator_osm]</b></div><div><b> sources: [mapnik_sources]</b></div>
<div><b> meta_buffer: 20</b></div><div><b> meta_size: [4, 4]</b></div><div><b> format: image/png</b></div><div><b> request_format: image/png, image/jpg</b></div><div><b> link_single_color_images: true</b></div>
<div><b><br></b></div><div><b> mapnik_cache_sat:</b></div><div><b> grids: [global_mercator_osm]</b></div><div><b> sources: [mapnik_raster]</b></div><div><b> meta_buffer: 20</b></div><div><b> meta_size: [4, 4]</b></div>
<div><b> format: image/png</b></div><div><b> request_format: image/png, image/jpg</b></div><div><b> link_single_color_images: true</b></div><div><b><br></b></div><div><b>sources:</b></div><div><b> mapnik_sources:</b></div>
<div><b> type: mapnik</b></div><div><b> use_mapnik2: true</b></div><div><b> mapfile: C:\mapnik-2.0.1rc0\osm.xml</b></div><div><b> </b></div><div><b> mapnik_raster:</b></div><div><b> type: mapnik</b></div><div>
<b> use_mapnik2: true</b></div><div><b> mapfile: C:\mapnik-2.0.1rc0\raster_mapnik2.xml</b></div><div><b><br></b></div><div><b>grids:</b></div><div><b> global_mercator_osm:</b></div><div><b> #origin: nw</b></div>
<div><b> #base: GLOBAL_MERCATOR</b></div><div><b> srs: 'EPSG:4326'</b></div><div><b> num_levels: 22</b></div><div><b> </b></div><div><b><br></b></div><div><b> global_geodetic_sqrt2:</b></div><div><b> base: GLOBAL_GEODETIC</b></div>
<div><b> res_factor: 'sqrt2'</b></div><div><br></div><div><b>globals:</b></div><div><b> </b></div><div><b><br></b></div><div><b> # # cache options</b></div><div><b> cache:</b></div><div><b> # where to store the cached images</b></div>
<div><b> base_dir: 'C:/mapproxy_venv/cache_data'</b></div><div><b> # where to store lockfiles</b></div><div><b> lock_dir: 'C:/mapproxy_venv/cache_data/locks'</b></div><div><b> # parallel thread</b></div>
<div><b> concurrent_tile_creators: 2</b></div><div><b> </b></div><div><b><br></b></div><div><b> # image/transformation options</b></div><div><b> image:</b></div><div><b> </b><b> resampling_method: bicubic</b></div>
<div><b> </b></div><div><br></div><br><div class="gmail_quote">2012/10/1 Oliver Tonnhofer <span dir="ltr"><<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 28.09.2012, at 18:37, Raffaello Bertini wrote:<br>
<br>
> I've got an error with mapproxy 1.4 when a clients request a wmts map.<br>
> here the error:<br>
><br>
> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\<br>
> wmts.py", line 193, in __iter__<br>
> origin = self.grid.origin_tile(level, 'ul')<br>
> File "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\grid.py"<br>
> , line 443, in origin_tile<br>
> assert self.supports_access_with_origin(origin), 'TODO error exception'<br>
> AssertionError: TODO error exception<br>
<br>
</div>Not all grids are valid for WMTS.<br>
<div class="im"><br>
<br>
> the grid config:<br>
> grids:<br>
> global_mercator_osm:<br>
> origin: nw<br>
> #base: GLOBAL_MERCATOR<br>
> srs: 'EPSG:4326'<br>
> num_levels: 22<br>
><br>
> Can Someone help me to resolve this problem?<br>
> thanks.<br>
<br>
</div>Please provide your full configuration and an example request.<br>
<br>
Regards,<br>
Oliver<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="http://omniscale.de" target="_blank">http://omniscale.de</a><br>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://github.com/olt" target="_blank">https://github.com/olt</a> | @oltonn<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>