tiler-arcgis-bundle

0.3.2 • Public • Published

tiler-arcgis-bundle

Circle CI

A nodejs map tile reader for compact tile storage format used by ESRI ArcGIS

Introduction

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.

See Also

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

Install

npm install tiler-arcgis-bundle

Usage

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 128
var tiler = new Tiler('/home/foo/bundle_tiles/', { packSize: 128 });
//tile's x,y,z
tiler.getTile(3408, 2417, 2, function(error, tile) {
    if (error) {
        throw error;
    }
    console.log(tile.lastModified);
    fs.writeFileSync('foo.png', tile.data);
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i tiler-arcgis-bundle

      Weekly Downloads

      2

      Version

      0.3.2

      License

      MIT

      Unpacked Size

      10.3 kB

      Total Files

      7

      Last publish

      Collaborators

      • fuzhenn