0.3.2 • Published 10 years ago

tilelive-foxgis v0.3.2

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

tilelive-foxgis

A tilelive plugin to serve tiles with mongodb

Q: What the heck does that mean?

A: With this installed, you can use MongoDB to read/write map image tiles from/to other tilelive.js sources/sinks (mbtiles, Mapnik, TileJSON, S3, etc.)

Q: Come again?

A: You can use MongoDB to serve maps.

Q: What's the difference with mongotiles ?

A: Mongotiles uses GridFS to store tiles, we use mongodb documents instead. GridFS is meant to save big files. Since the size of a tile is less that 4MB, it could be more efficient to serve tiles with mongodb documents.

Q: How to install it?

A: Just install it using npm: npm install tilelive-foxgis --save

Q: And how to use it?

A: Tilelive-foxgis should work with other tilelive plugins. Suppose we want to import tiles from a mbtiles source. First install necessary packages:

npm install tilelive --save
npm install mbtiles --save

Then:

./node_modules/tilelive/bin/copy "mbtiles://./test/beijing.mbtiles" \
  "foxgis+mongodb://localhost/testdb?tileset_id=beijing&other_query=aa"

Note that tileset_id is necessary, don't forget it. Query string will be parsed and saved as tileset info.

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago