Skip to content

Instantly share code, notes, and snippets.

View prl900's full-sized avatar

Pablo Rozas Larraondo prl900

View GitHub Profile
@prl900
prl900 / gist:83dad92f52a9530641daa8249bb73016
Created January 10, 2026 00:20
Timeseries terrakio sample request
curl --location 'https://dev-eu.terrak.io/geoquery?x-api-key=u8ElNkF0Xks0Lf2s0ovOk_lHEWlnYe2VDDgXC-7vCYY' \
--header 'x-api-key: u8ElNkF0Xks0Lf2s0ovOk_lHEWlnYe2VDDgXC-7vCYY' \
--header 'Content-Type: application/json' \
--data '{
"expr": "crown_cover=mean:space(CrownCover_precomputed_v2.cover)\ncrown_cover",
"feature": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
curl --location 'https://api.terrak.io/wcs' \
--header 'x-api-key: u8ElNkF0Xks0Lf2s0ovOk_lHEWlnYe2VDDgXC-7vCYY' \
--header 'Content-Type: application/json' \
--data-raw '{
"feature": { "type": "Feature", "properties": {}, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 142.563951974697204, -37.477516842547345 ], [ 142.567885505985174, -37.47806762251593 ], [ 142.567938984490695, -37.477837461117552 ], [ 142.572346315107325, -37.478465033080347 ], [ 142.581474951905363, -37.479763285126502 ], [ 142.581444032791609, -37.480057015234443 ], [ 142.581472142873537, -37.480595775372485 ], [ 142.576991136928825, -37.501274525954663 ], [ 142.559281176292558, -37.498753493547213 ], [ 142.563951974697204, -37.477516842547345 ] ] ], [ [ [ 142.622148441945029, -37.463221885128043 ], [ 142.620593946871765, -37.470346950232695 ], [ 142.602543717880593, -37.468033539015238 ], [ 142.60161121541168, -37.472973366400502 ], [ 142.601544559519311, -37.473623567072771 ], [ 142.601681916417846, -37.473618149493895
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bar Chart Widget</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.0/chart.umd.js"></script>
<style>
body {
margin: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Queensland Land Parcels</title>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.bundled.js"></script>
<link
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
142.5639519746972,
import unittest
from lark import Lark, Tree, Token
with open('edo.ebnf', 'r') as file:
grammar = file.read()
class TestExpressions(unittest.TestCase):
@classmethod
def setUpClass(cls):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.