Skip to content

Instantly share code, notes, and snippets.

@tinesubic
tinesubic / How to use
Last active August 16, 2016 11:42
Mocha Unit Tests for qminer JS wrapper
HOW TO - Running Mocha with Chai, unit test files and examples
Install Node:
- "sudo apt-get install npm" to install npm package manager
- "sudo apt-get install uuid-dev" to install dependencies for building node/qminer
- clone "link to be added" Node repository from GitHub
- cd to root directory and run commands "./configure", "make", "make install"
- cd to /test/addons/la
- install node-gyp with "sudo npm install -g node-gyp"
- build qminer with command "node-gyp configure build"
- follow instructions below to install test framework
@tmcw
tmcw / xyz_vs_tms.md
Last active March 3, 2025 22:38
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.