Opened 12 years ago
Last modified 12 years ago
#4248 new enhancement
ArcGIS Tiles support
Reported by: | aboudreault | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | 6.2 release |
Component: | MapCache | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | tbonfort |
Description (last modified by )
It would be useful if mapcache could serve tiles generated by arcgis. The files are stored on disk using this template:
L01/R0000001f/C00000032.jpg
The numbers are simply the z/y/x values in hexadecimal with zero padding. Level begins with L, y with R and x with C.
Thomas, Do you agree with me that we could simply add 3 disk template variables for this? ie. {arcgis_z}, {arcgis_y} and {arcgis_x} ?
Attachments (1)
Change History (8)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
please, give me an example of what you want to see in the XML configuration and I'll make a patch.
comment:4 by , 12 years ago
maybe something like:
<cache type="disk" layout="tilecache"> <!-- the default --> <base>/path/to/tmp</base> </cache> <cache type="disk" layout="template"> <template>/path/to/{tileset}/{grid}... </template> </cache> <cache type="disk" layout="arcgis"> <base>...</base> </cache>
?
comment:5 by , 12 years ago
I've attached a patch to support those kind of layout (and also the arcgis layout type). Thomas, let me know if the patch is ok to commit.
comment:6 by , 12 years ago
I've noticed a minor bad behavior when a cache was defined with layout="template" and was specifying the base AND template params. The attached mapcache_layout.2.patch fixed that.
comment:7 by , 12 years ago
committed in r13271. leaving the ticket open as this needs to be documented.
that would be the quick and dirty solution.
I'd prefer to refactor the disk cache slightly so mapcache_cache_disk takes an additional member function that implements _mapcache_cache_disk_tile_key for the different schemas.