|||
A nodejs map tile reader for compact tile storage format used by ESRI ArcGIS
ArcGIS Compact Tile is a tile format since ArcGIS version 10.1
It bundles exploded tile files into a .bundlx and a .bundle file and really reduces number of tile files.
This library is a reader for the bundles.
tiler-file: a nodejs map tile file reader coordinating by X,Y,Z
tiler-arcgis-file: a nodejs map tile reader for exploded tiles cache format by ESRI ArcGIS
npm install tiler-arcgis-bundle
var Tiler = require('tiler-arcgis-bundle');//root folder of the tiles, where the Conf.xml stands//128 is the packet size (row count and col count) of a tile bundle, default is 128var tiler = new Tiler('/home/foo/bundle_tiles/', { packSize: 128 });//tile's x,y,ztiler.getTile(3408, 2417, 2, function(error, tile) { if (error) { throw error; } console.log(tile.lastModified); fs.writeFileSync('foo.png', tile.data);});
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-24 19:29
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社