~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to frmts/wms/minidriver_tms.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: minidriver_tms.cpp 18589 2010-01-19 18:54:53Z warmerdam $
 
2
 * $Id: minidriver_tms.cpp 22021 2011-03-23 21:51:19Z rouault $
3
3
 *
4
4
 * Project:  WMS Client Driver
5
5
 * Purpose:  Implementation of Dataset and RasterBand classes for WMS
94
94
    URLSearchAndReplace(url, "${x}", "%d", tiri.m_x);
95
95
    URLSearchAndReplace(url, "${y}", "%d", tms_y);
96
96
    URLSearchAndReplace(url, "${z}", "%d", tiri.m_level);
 
97
 
 
98
    /* Hack for some TMS like servers that require tile numbers split into 3 groups of */
 
99
    /* 3 digits, like http://tile8.geo.admin.ch/geoadmin/ch.swisstopo.pixelkarte-farbe */
 
100
    URLSearchAndReplace(url, "${xxx}", "%03d/%03d/%03d", tiri.m_x / 1000000, (tiri.m_x / 1000) % 1000, tiri.m_x % 1000);
 
101
    URLSearchAndReplace(url, "${yyy}", "%03d/%03d/%03d", tms_y / 1000000, (tms_y / 1000) % 1000, tms_y % 1000);
 
102
 
97
103
}