curl --request GET \
--url https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"<string>"A raster's imagery as one tile: Web Mercator XYZ or the raster's own grid (GP21.c)
The imagery of spatial.raster.png (the same what: value / height a grey ramp between the WHOLE raster’s minimum and maximum, so every tile shares one ramp; hillshade with sun_azimuth_deg / sun_altitude_deg; slope; mask) as 256 by 256 pixel tiles cut from a copy of the raster prepared once and kept, each tile kept too. scheme = xyz (default, for globes): the Web Mercator tile (z, x, y), each pixel the sample nearest the pixel’s centre (its longitude and latitude through one prepared transform into the raster’s frame), transparent off the raster and on its holes; levels run to 24, so a fine raster stays sharp when zoomed. scheme = grid (for a plan in the raster’s own frame): level z takes every 2^z-th sample (level 0 is one pixel per sample), the tile (x, y) its column and row of 256-pixel tiles, edge tiles cut to the samples left; a raster that fits one tile at level 0 is byte for byte the spatial.raster.png imagery. y may carry .png. Headers: X-SS-Bounds (the raster’s extent, west,south,east,north degrees), X-SS-Grid-Top (the grid level at which the whole raster is one tile) and, for a grid tile, X-SS-Frame-Box (the tile’s extent in the raster’s frame, xmin,ymin,xmax,ymax at the samples’ edges). A tile off the level’s grid refuses TILE. Display only: deterministic bytes.
curl --request GET \
--url https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.raster.tile/{key}/{z}/{x}/{y}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"<string>"