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
+22
View File
@@ -0,0 +1,22 @@
Determine the spatial extent of a tile based on the tile's XYZ coordinate.
#### Using the function
Take a common tile with coordinates x=3, y=2, z=2,
![2/3/2](https://viz2.cartodb.com/tiles/quantile_breaks/2/3/2.png)
To determine its extent you would run,
```sql
SELECT CDB_XYZ_Extent(3,2,2)
--- Returns a WKB polygon in Webmercator (SRID 3857)
```
#### Arguements
CDB_XYZ_Extent(x,y,z)
* **x** integer
* **y** integer
* **z** integer