Tilecache API’s

You can also view the NeuroData Tile API’s which work similarly for ndstore.

getSimpleTile

GET (string: server_name)/ndtilecache/tilecache/(string: token_name)/(string: channel_name)/(string: slice_type)/(int: time)/(int: zvalue)/(int: ytile)_(int: xtile)_(int: resolution).png
Synopsis:

Get a 512x512 tile from the tilecache

Parameters:
  • server_name (string) – Server Name in NeuroData. In the general case this is ocp.me.
  • token_name (string) – Token Name in NeuroData.
  • channel_name (string) – Channel Name in NeuroData.
  • slice_type (string) – Type of Slice cutout. Can be xy/yz/xz
  • time (int) – Time value. Optional. Only possible in timeseries datasets.
  • zvalue (int) – Zslice value.
  • ytile (int) – Y-Tile value. Each tile is 512x512.
  • xtile (int) – X-Tile value. Each tile is 512x512.
  • resolution (int) – Resolution value.
Status Codes:

Example Request:

GET  /ndtilecache/tilecache/kasthuri11/image/xy/1/1_1_4.png HTTP/1.1
Host: openconnecto.me

Example Response:

HTTP/1.1 200 OK
Content-Type: application/png
../_images/simple_image_tile.png

getMcfcTile

GET (string: server_name)/ndtilecache/tilecache/mcfc/(string: token_name)/(string: channel_name):(string: color_name)/(string: slice_type)/(int: time)/(int: zvalue)/(int: ytile)_(int: xtile)_(int: resolution).png
Synopsis:

Get a 512x512 tile from the tilecache

Parameters:
  • server_name (string) – Server Name in NeuroData. In the general case this is ocp.me.
  • token_name (string) – Token Name in NeuroData.
  • channel_name (string) – Channel Name in NeuroData.
  • color_name (string) – Color Name. Can be ‘C/M/Y/R/G/B’. Optional If Missing will default to “CMYRGB”.
  • slice_type (string) – Type of Slice cutout. Can be xy/yz/xz
  • time (int) – Time value. Optional. Only possible in timeseries datasets.
  • zvalue (int) – Zslice value.
  • ytile (int) – Y-Tile value. Each tile is 512x512.
  • xtile (int) – X-Tile value. Each tile is 512x512.
  • resolution (int) – Resolution value.
Status Codes:

Example Request:

GET  /ndtilecache/tilecache/mcfc/Thy1eYFPBrain10/Grayscale/xy/500/0_0_3.png HTTP/1.1
Host: openconnecto.me

Example Response:

HTTP/1.1 200 OK
Content-Type: application/png
../_images/mcfc_image_tile.png

getVikingTile

GET (string: server_name)/ndtilecache/tilecache/viking/(string: token_name)/volume/(string: channel_name)/(int: resolution)/X(int: xtile)_Y(int: xtile)_Z(int: zvalue).png
Synopsis:

Get a 512x512 tile from the tilecache

Parameters:
  • server_name (string) – Server Name in NeuroData. In the general case this is openconnecto.me.
  • token_name (string) – Token Name in NeuroData.
  • channel_name (string) – Channel Name in NeuroData.
  • resolution (int) – Resolution value.
  • xtile (int) – X-Tile value. Each tile is 512x512.
  • ytile (int) – Y-Tile value. Each tile is 512x512.
  • zvalue (int) – Zslice value.
Status Codes:

Example Request:

GET  /ndtilecache/tilecache/viking/kasthuri11/volume/image/4/X1_Y1_Z10.png HTTP/1.1
Host: openconnecto.me

Example Response:

HTTP/1.1 200 OK
Content-Type: application/png
../_images/viking_image_tile.png