liuwenliang的个人博客分享 http://blog.sciencenet.cn/u/liuwenliang

博文

[转载]tiler-arcgis-bundle nodejs 读取arcgis切片

已有 1367 次阅读 2021-11-17 19:00 |个人分类:arcgis server|系统分类:科研笔记|文章来源:转载

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 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);});




https://blog.sciencenet.cn/blog-3409972-1312817.html

上一篇:[转载]ArcGIS 10.0紧凑型切片读写方法
下一篇:[转载]ArcGIS 切片缓存紧凑文件格式分析与使用
收藏 IP: 210.72.26.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-24 19:29

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部