curl --request POST \
--url https://api.eddy.engineer/v1/spatial.raster.bands \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"above": true,
"base": 123,
"below": true,
"breaks": [
123
],
"interval": 123,
"name": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.raster.bands"
payload = {
"key": "<string>",
"above": True,
"base": 123,
"below": True,
"breaks": [123],
"interval": 123,
"name": "<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({
key: '<string>',
above: true,
base: 123,
below: true,
breaks: [123],
interval: 123,
name: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.raster.bands', 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.bands",
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([
'key' => '<string>',
'above' => true,
'base' => 123,
'below' => true,
'breaks' => [
123
],
'interval' => 123,
'name' => '<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.bands"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"above\": true,\n \"base\": 123,\n \"below\": true,\n \"breaks\": [\n 123\n ],\n \"interval\": 123,\n \"name\": \"<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.bands")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"above\": true,\n \"base\": 123,\n \"below\": true,\n \"breaks\": [\n 123\n ],\n \"interval\": 123,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.raster.bands")
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 \"key\": \"<string>\",\n \"above\": true,\n \"base\": 123,\n \"below\": true,\n \"breaks\": [\n 123\n ],\n \"interval\": 123,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"bands": [
{
"area": 123,
"holes": 123,
"max": 123,
"min": 123,
"polygons": 123
}
],
"bbox": {},
"domain_area": 123,
"features": 123,
"frame": {},
"id": "<string>",
"key": "<string>",
"kind": "<string>",
"lines": 123,
"method": "<string>",
"name": "<string>",
"of": {},
"points": 123,
"polygons": 123,
"product": "<string>",
"raster": "<string>",
"source": {}
}Closed bands between breaks of any raster as a vector document (EG13)
The bands of a raster (terrain or a quantity) between breaks (strictly increasing, in the raster’s unit; or every interval from base): consecutive breaks bound a band [lower, upper), closed below and open above; below adds the open band under the first break and above the open band from the last break up (the zone at or above a limit: one break with above). Stored as a vector document in the raster’s frame: one MultiPolygon feature per band that has area, with min, max (null for an open end), area in the frame’s units squared and, for a quantity raster, kind and unit. A band’s boundary is its lower contour, its upper contour reversed and the stretches of the domain’s edge inside the band, chained by structure into rings with the band on their left, so every band is closed at the raster’s edge and around holes; shells run counter-clockwise, holes clockwise, each hole in the smallest shell that contains it. The bands of one call with below and above tile the domain: their areas sum to domain_area (the cells whose four corners are samples). The contour rule is POST /v1/spatial.raster.contours’s. Refusals: CONTOUR_LEVELS (one break with neither open end makes no band), CONTOUR_BUDGET.
curl --request POST \
--url https://api.eddy.engineer/v1/spatial.raster.bands \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"above": true,
"base": 123,
"below": true,
"breaks": [
123
],
"interval": 123,
"name": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.raster.bands"
payload = {
"key": "<string>",
"above": True,
"base": 123,
"below": True,
"breaks": [123],
"interval": 123,
"name": "<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({
key: '<string>',
above: true,
base: 123,
below: true,
breaks: [123],
interval: 123,
name: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.raster.bands', 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.bands",
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([
'key' => '<string>',
'above' => true,
'base' => 123,
'below' => true,
'breaks' => [
123
],
'interval' => 123,
'name' => '<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.bands"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"above\": true,\n \"base\": 123,\n \"below\": true,\n \"breaks\": [\n 123\n ],\n \"interval\": 123,\n \"name\": \"<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.bands")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"above\": true,\n \"base\": 123,\n \"below\": true,\n \"breaks\": [\n 123\n ],\n \"interval\": 123,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.raster.bands")
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 \"key\": \"<string>\",\n \"above\": true,\n \"base\": 123,\n \"below\": true,\n \"breaks\": [\n 123\n ],\n \"interval\": 123,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"bands": [
{
"area": 123,
"holes": 123,
"max": 123,
"min": 123,
"polygons": 123
}
],
"bbox": {},
"domain_area": 123,
"features": 123,
"frame": {},
"id": "<string>",
"key": "<string>",
"kind": "<string>",
"lines": 123,
"method": "<string>",
"name": "<string>",
"of": {},
"points": 123,
"polygons": 123,
"product": "<string>",
"raster": "<string>",
"source": {}
}Body
Response
OK