Opened 15 years ago

Closed 15 years ago

#2870 closed enhancement (fixed)

GDAL_WMS generic TMS support

Reported by: soenke Owned by: nowakpl
Priority: normal Milestone: 1.7.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: GDAL WMS, GDAL_WMS, TMS, TileService
Cc: warmerdam

Description

To be able to read tiles from servers like http://tile.openstreetmap.org/0/0/0.png, I did some work on gdal-1.6.0/frmts/wms/ to support tile servers in a more generic way. The basic idea was to do some kind of variable substitution for the ServerUrl setting.

See the attached patch generictms.dpatch (unified diff format). Please don't laugh - I'm not a C programmer, so this is a conglomerate of trial'n'error, and cut'n'paste. QuadKey-style tile names aren't supported yet. But it should help to understand the idea behind it and at least it compiles, even when I still wasn't able to get the matching tiles for deeper zoom levels with gdal_translate.

Maybe you're interested to implement this some way.

Attachments (1)

generictms.diff (8.2 KB ) - added by soenke 15 years ago.
Patch against GDAL_WMS to support tile servers in a more generic way

Download all attachments as: .zip

Change History (3)

by soenke, 15 years ago

Attachment: generictms.diff added

Patch against GDAL_WMS to support tile servers in a more generic way

comment:1 by warmerdam, 15 years ago

Owner: changed from warmerdam to nowakpl

Adam, perhaps you could look at this?

comment:2 by Even Rouault, 15 years ago

Milestone: 1.7.0
Resolution: fixed
Status: newclosed

soenke, TMS support was added in r16585 (see #2878)

Note: See TracTickets for help on using tickets.