Move doc from wiki to repo, closes #85

This commit is contained in:
Paul Ramsey
2015-07-01 07:01:50 -07:00
parent ac8203eec4
commit 509944ea6d
16 changed files with 427 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
Return pixel resolution of tiles at a given zoom level
#### Using the function
Take a common tile with zoom, z=2,
![2/3/2](https://viz2.cartodb.com/tiles/quantile_breaks/2/3/2.png)
To determine the resolution of these pixels,
```sql
SELECT CDB_XYZ_Resolution(2)
--- Returns a float, 39135.7587890625
```
#### Arguements
CDB_XYZ_Resolution(z)
* **z** integer