curl --request POST \
--url https://api.eddy.engineer/v1/spatial.raster.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"blob": "<string>",
"height_kind": {},
"name": "<string>",
"quantity": {},
"tiff_base64": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.raster.import"
payload = {
"blob": "<string>",
"height_kind": {},
"name": "<string>",
"quantity": {},
"tiff_base64": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
blob: '<string>',
height_kind: {},
name: '<string>',
quantity: {},
tiff_base64: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.raster.import', 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.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'blob' => '<string>',
'height_kind' => [
],
'name' => '<string>',
'quantity' => [
],
'tiff_base64' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.raster.import"
payload := strings.NewReader("{\n \"blob\": \"<string>\",\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"quantity\": {},\n \"tiff_base64\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/spatial.raster.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"blob\": \"<string>\",\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"quantity\": {},\n \"tiff_base64\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.raster.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"blob\": \"<string>\",\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"quantity\": {},\n \"tiff_base64\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"extent": [
123
],
"frame": {},
"height": 123,
"height_kind": {},
"id": "<string>",
"key": "<string>",
"name": "<string>",
"nodata": 123,
"origin": [
123
],
"samples": "<string>",
"source": {},
"stats": {},
"step": [
123
],
"width": 123
}GeoTIFF → elevation-grid document (SP2)
Reads a GeoTIFF through the engine’s own reader — classic TIFF and BigTIFF (SP2.b), little / big endian, strips or tiles, uncompressed / LZW / Deflate, the horizontal predictor on integers and the floating-point predictor on floats (SP2.b), 8 / 16 / 32-bit integers and 32 / 64-bit floats, one sample per pixel; georeferenced by ModelTiepoint + ModelPixelScale (or an axis-aligned ModelTransformation) with GeoKeys naming a WGS 84-class geographic CRS (4326, NAD83, ETRS89, GDA94 / GDA2020, NZGD2000, RGF93, JGD, SIRGAS, CGCS2000) or a projected CRS — the vendored EPSG table (WGS 84 / ETRS89 / NAD83 / GDA / ED50 UTM zones, MGA, Gauss-Krüger, British National Grid, NZTM2000, TM35FIN, Lambert-93, Web and World Mercator) or a user-defined Transverse Mercator / Mercator / Lambert conformal conic (2SP) definition from the method and parameter keys (SP2.b); the frame carries the datum, and a projected CRS on a non-WGS 84-class datum (OSGB36, ED50, DHDN) works within itself but refuses the ECEF hub typed (DATUM) — PixelIsArea or PixelIsPoint, GDAL’s nodata tag, and the vertical CRS key (5773 = EGM96 heights, 4979 / 5030 = ellipsoidal). When the file states no vertical CRS the caller must say what the heights are (height_kind), else RASTER_HEIGHT_KIND. EG13: state quantity () instead when the samples are not heights; the document is then a quantity raster (see POST /v1/spatial.raster.quantity), and a file that states a vertical CRS refuses RASTER_KIND. The samples go to a content-addressed blob (f32 LE, row-major from the north-west), the document is content-addressed and registered as a spatial_raster artifact; the answer carries the summary, the stats and what the reader found. Pass the bytes as tiff_base64 or an uploaded blob id. Everything the reader does not support is a typed refusal naming the tag (BigTIFF, other compressions, the floating-point predictor, rotated transforms, other CRSs).
curl --request POST \
--url https://api.eddy.engineer/v1/spatial.raster.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"blob": "<string>",
"height_kind": {},
"name": "<string>",
"quantity": {},
"tiff_base64": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.raster.import"
payload = {
"blob": "<string>",
"height_kind": {},
"name": "<string>",
"quantity": {},
"tiff_base64": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
blob: '<string>',
height_kind: {},
name: '<string>',
quantity: {},
tiff_base64: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.raster.import', 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.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'blob' => '<string>',
'height_kind' => [
],
'name' => '<string>',
'quantity' => [
],
'tiff_base64' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.raster.import"
payload := strings.NewReader("{\n \"blob\": \"<string>\",\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"quantity\": {},\n \"tiff_base64\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/spatial.raster.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"blob\": \"<string>\",\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"quantity\": {},\n \"tiff_base64\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.raster.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"blob\": \"<string>\",\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"quantity\": {},\n \"tiff_base64\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"extent": [
123
],
"frame": {},
"height": 123,
"height_kind": {},
"id": "<string>",
"key": "<string>",
"name": "<string>",
"nodata": 123,
"origin": [
123
],
"samples": "<string>",
"source": {},
"stats": {},
"step": [
123
],
"width": 123
}