Opened 13 years ago

Closed 5 years ago

#4019 closed enhancement (wontfix)

The TMS driver assumes that the scale doubles when level is incremented

Reported by: jcrepetto Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: WMS TMS
Cc: crschmidt, nowakpl

Description

The current implementation of the TMS minidriver assumes that the scale of a level is twice the scale of the previous level. Several tile servers do not obey this rule. For example, http://map.geo.admin.ch uses these scales :

level scale      pixel_size (m) Nb_of_tiles_(x) Nb_of_tiles_(y)
14    1/6500000  650                 3                2
15    1/5000000  500                 4                3
16    1/2500000  250                 8                6
17    1/1000000  100                19               13
18    1/500000    50                38               25
19    1/200000    20                94               63
20    1/100000    10               188              125  
21    1/50000      5               375              250
22    1/25000      2.5             750              500
23    1/20000      2               938              625
24    1/15000      1.5            1250              834   
25    1/10000      1              1875             1250  
26    1/5000       0.5            3750             2500

Not less than 10 XML configuration files are necessary (I attach them to this ticket). They can be used with gdal_translate, but unfortunately they are not suitable for use in desktop applications such as QGIS. The bottom left origin is the same for all the levels.

The format of the configuration file should be improved to be able to define only one XML configuration file for this kind of server.

Attachments (10)

frmt_wms_swissgeo_tms_level_14.xml (866 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 14
frmt_wms_swissgeo_tms_levels_15_16.xml (868 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for levels 15 and 15
frmt_wms_swissgeo_tms_level_17.xml (868 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 17
frmt_wms_swissgeo_tms_level_18.xml (868 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 18
frmt_wms_swissgeo_tms_level_19.xml (870 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 19
frmt_wms_swissgeo_tms_level_20.xml (870 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 20
frmt_wms_swissgeo_tms_levels_21_22.xml (872 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for levels 21 and 22
frmt_wms_swissgeo_tms_level_23.xml (872 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 23
frmt_wms_swissgeo_tms_level_24.xml (872 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for level 24
frmt_wms_swissgeo_tms_levels_25_26.xml (872 bytes ) - added by jcrepetto 13 years ago.
XML configuration file for levels 25 and 26

Download all attachments as: .zip

Change History (14)

by jcrepetto, 13 years ago

XML configuration file for level 14

by jcrepetto, 13 years ago

XML configuration file for levels 15 and 15

by jcrepetto, 13 years ago

XML configuration file for level 17

by jcrepetto, 13 years ago

XML configuration file for level 18

by jcrepetto, 13 years ago

XML configuration file for level 19

by jcrepetto, 13 years ago

XML configuration file for level 20

by jcrepetto, 13 years ago

XML configuration file for levels 21 and 22

by jcrepetto, 13 years ago

XML configuration file for level 23

by jcrepetto, 13 years ago

XML configuration file for level 24

by jcrepetto, 13 years ago

XML configuration file for levels 25 and 26

comment:1 by warmerdam, 13 years ago

Cc: crschmidt nowakpl added
Keywords: WMS TMS added

Add key players in this driver for comment.

comment:2 by warmerdam, 12 years ago

Milestone: 1.9.0

It does not appear this will be addressed for 1.9.0.

comment:3 by Jukka Rahkonen, 9 years ago

While key players are on hold I consider this is not a bug in TMS driver because it is defined to work with Google, Bing, OSGeo TMS etc. servers which all double the scale between levels.

However, ticket is not invalid because there are, as proved, tile services which are using different grids. WMTS standard also supports free selection of scales in grids.

comment:4 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.