[MapProxy] ArcGIS Cache Path

Keith Moss Keith.Moss at landgate.wa.gov.au
Thu Jan 31 22:09:48 PST 2013


Thanks Oliver, that put me on the right track.

For any other poor souls that might have to use an ArcGIS cache in the future the trick is to set the minx,miny (the first coordinate pair) of your grid BBOX to the X,Y of the TileOrigin in your service (even if it's a completley nonsense number for the projection you're using!).

The max,maxy of your grid's BBOX should then be the acutal max,maxy of the service, but I found reprojection issues between 4328 and 900913, so I had to bump maxx up to be slightly beyond the actual maxx of the cache.

If you're using a web mercator projection you may wish to manipulate the stretch_factor on the grid as well to force MapProxy to pick the higher res version of tiles so you don't end up with messily resampled tiles.

For reference, here's my YAML file.

base:
    - base-config/base-mapproxy.yaml
layers:
    - { name: _alllayers, title: 'Landgate Basemap', sources: [_alllayers] }
caches:
    _alllayers: { sources: ['lgbasemap'], grids: [GDA94], disable_storage: true }
sources:
  lgbasemap:
    type: tile
    url: http://yourdmain/%(arcgiscache_path)s.png
    grid: GDA94
grids:
    GDA94:
      srs: EPSG:4283
      bbox: [-400,400,130,-10.412358685041511] # Bumped 129.01852623375902 to 130 to avoid reprojection issues at the boundaries
      bbox_srs: EPSG:4326
      res: [0.044020028607860168, 0.021997281808087885, 0.010998639714313441, 0.0054993198571567205, 0.0027496599285783603, 0.0013748287745586772, 0.00068741438727933861, 0.00034370600390916639, 0.00017185181222408028, 8.592471638153722e-005, 4.2961168460265693e-005, 2.1479394499629933e-005, 1.0738507519312051e-005, 5.3680640291531107e-006, 2.6840320145765553e-006]
      origin: nw
      stretch_factor: 1.3

Cheers,

Keith

__________________________________
Keith Moss
Satellite Remote Sensing Services
Operations
Landgate
65 Brockway Road, FLOREAT WA 6014
PO Box 741 Wembley WA 6913
Ph. (08) 9387 0332 | Fx. (08) 9383 7142
keith.moss at landgate.wa.gov.au
http://www.landgate.wa.gov.au/

________________________________________
From: Oliver Tonnhofer [olt at omniscale.de]
Sent: Friday, 1 February 2013 3:07 AM
To: Keith Moss
Cc: mapproxy at lists.osgeo.org
Subject: Re: [MapProxy] ArcGIS Cache Path

Hi Keith,

On 31.01.2013, at 03:53, Keith Moss wrote:
> Has anyone had any luck with using the ArcGIS Cache tile source option?
>
> I've got an ArcGIS Server 10.0 cache that I'm trying to load into MapProxy but the tile path being calculated doesn't seem quite right.
>
> I'm suspecting there's an issue with my yaml config. Possibly in relation to the tile origin being -400, 400?

You need to get the grid configuration right. I don't know how to read ArcGIS XML docs but I guess you have to adapt the bbox for the origin offset. I also think that ArcGIS uses origin:nw, but I might be wrong.

Regards,
Oliver

--
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://github.com/olt | @oltonn
This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate’s liability is limited to re-supplying affected attachments.


More information about the MapProxy mailing list