[MapProxy] Grid Assert Error for WMTS.

Raffaello Bertini raffaellobertini at gmail.com
Mon Oct 1 10:26:52 PDT 2012


for the wmts service problem I've "bypassed" usign geoserver in WMS CASCADE
SERVICE. (*but I prefer the client communicate direct to mapproxy, it's
scalable*)
Therefore the client connect to Geoserver - GeoWebCache WMTS service, which
do the WMS request to mapproxy and final mapproxy to mapnik...
The problem I found is using the client ArcGisViewer for Flex 3.0
I've got no error for the Geoserver 2.1.4's wmts, only with MapProxy 1.4's
wmts
And the error was in the prev email. (An Assert error on grid)

Note: I'm usign mapproxy with iis - ISAPI-WSGI interface.

HERE's the mapproxy yaml config file:
thanks for the disponibility..

*services:*
*  demo:*
*  kml:*
*  tms:*
*    # needs no arguments*
*  wmts:*
*  wms:*
*    srs: ['EPSG:4326']*
*
*
*    image_formats: ['image/jpeg', 'image/png']*
*    #image_formats: ['image/png']*
*    md:*
*      # metadata used in capabilities documents*
*      title: MapProxy WMS Proxy*
*      abstract: This is the fantastic MapProxy.*
*      online_resource: http://mapproxy.org/*
*      contact:*
*        person: Your Name Here*
*        position: Technical Director*
*        organization: *
*        address: Fakestreet 123*
*        city: Somewhere*
*        postcode: 12345*
*        country: Germany*
*        phone: +49(0)000-000000-0*
*        fax: +49(0)000-000000-0*
*        email: info at omniscale.de*
*      access_constraints:*
*        This service is intended for private and evaluation use only.*
*        The data is licensed as Creative Commons Attribution-Share Alike
2.0*
*        (http://creativecommons.org/licenses/by-sa/2.0/)*
*      fees: 'None'*
*
*
*layers:*
*  - name: mapnik_layers*
*    title: mapnik_layers*
*    sources: [mapnik_cache] *
*  *
*  - name: mapnik_satellite*
*    title: mapnik_satellite*
*    sources: [mapnik_cache_sat]*
*
*
*caches:*
*  mapnik_cache:*
*    grids: [global_mercator_osm]*
*    sources: [mapnik_sources]*
*    meta_buffer: 20*
*    meta_size: [4, 4]*
*    format: image/png*
*    request_format: image/png, image/jpg*
*    link_single_color_images: true*
*
*
*  mapnik_cache_sat:*
*    grids: [global_mercator_osm]*
*    sources: [mapnik_raster]*
*    meta_buffer: 20*
*    meta_size: [4, 4]*
*    format: image/png*
*    request_format: image/png, image/jpg*
*    link_single_color_images: true*
*
*
*sources:*
*  mapnik_sources:*
*    type: mapnik*
*    use_mapnik2: true*
*    mapfile: C:\mapnik-2.0.1rc0\osm.xml*
*  *
*  mapnik_raster:*
*    type: mapnik*
*    use_mapnik2: true*
*    mapfile: C:\mapnik-2.0.1rc0\raster_mapnik2.xml*
*
*
*grids:*
*  global_mercator_osm:*
*    #origin: nw*
*    #base: GLOBAL_MERCATOR*
*    srs: 'EPSG:4326'*
*    num_levels: 22*
*    *
*
*
*  global_geodetic_sqrt2:*
*    base: GLOBAL_GEODETIC*
*    res_factor: 'sqrt2'*

*globals:*
* *
*
*
*  # # cache options*
*  cache:*
*    # where to store the cached images*
*    base_dir: 'C:/mapproxy_venv/cache_data'*
*    # where to store lockfiles*
*    lock_dir: 'C:/mapproxy_venv/cache_data/locks'*
*    # parallel thread*
*    concurrent_tile_creators: 2*
* *
*
*
*  # image/transformation options*
*  image:*
* **      resampling_method: bicubic*
* *


2012/10/1 Oliver Tonnhofer <olt at omniscale.de>

>
> On 28.09.2012, at 18:37, Raffaello Bertini wrote:
>
> > I've got an error with mapproxy 1.4 when a clients request a wmts map.
> > here the error:
> >
> >   File
> "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
> > wmts.py", line 193, in __iter__
> >     origin = self.grid.origin_tile(level, 'ul')
> >   File
> "C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\grid.py"
> > , line 443, in origin_tile
> >     assert self.supports_access_with_origin(origin), 'TODO error
> exception'
> > AssertionError: TODO error exception
>
> Not all grids are valid for WMTS.
>
>
> > the grid config:
> > grids:
> >   global_mercator_osm:
> >     origin: nw
> >     #base: GLOBAL_MERCATOR
> >     srs: 'EPSG:4326'
> >     num_levels: 22
> >
> > Can Someone help me to resolve this problem?
> > thanks.
>
> Please provide your full configuration and an example request.
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
> http://mapproxy.org | https://github.com/olt    | @oltonn
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20121001/039d683d/attachment-0001.html>


More information about the MapProxy mailing list