Skip to content

Instantly share code, notes, and snippets.

View micholm's full-sized avatar
🐍

Michael Holmes micholm

🐍
  • Terria
  • Melbourne, Australia
View GitHub Profile
{
"catalog": [
{
"type": "geojson",
"name": "Disable all controls",
"url": "test/bike_racks.geojson",
"workbenchControlFlags": {
"disableAll": true
}
},
{
"catalog": [
{
"id": "bike-racks-toast",
"type": "geojson",
"name": "GeoJSON Test",
"url": "test/bike_racks.geojson",
"initialMessage": {
"key": "0",
"title": "Google Photorealistic 3D Tiles",
@micholm
micholm / catalogue.json
Created October 26, 2025 23:13
TerriaJS PR #7711 test catalogue
{
"catalog": [
{
"id": 1,
"name": "SED_2025_SED_2025",
"type": "csv",
"url": "https://raw.githubusercontent.com/TerriaJS/terriajs/refs/heads/update-region-mapping-csv-geo-au-24-25/wwwroot/test/csv/SED_2025_SED_2025.csv"
},
{
"id": 2,
@micholm
micholm / las2centroid.py
Last active August 22, 2025 00:15
Quickly find the centroid of a las file just by reading the header. Requires pdal on PATH and pyproj. Optionally get centroid in a different CRS.
import numpy as np
import json
import subprocess
import sys
from pyproj import Transformer
# Uses PDAL to quickly fetch LAS/Z header for calculating the centroid.
# use:
# python las2centroid.py input.las "EPSG:<optional_source_epsg>" "EPSG:<specify_epsg_if_not_4326>"