Skip to content

Instantly share code, notes, and snippets.

View bertt's full-sized avatar

Bert Temme bertt

View GitHub Profile
@bertt
bertt / giro3d_sibbe
Created March 13, 2026 09:31
3D Visualisation of Sibbe in Giro3D
import "./style.css";
import CoordinateSystem from "@giro3d/giro3d/core/geographic/CoordinateSystem.js";
import Extent from "@giro3d/giro3d/core/geographic/Extent.js";
import Instance from "@giro3d/giro3d/core/Instance.js";
import ColorLayer from "@giro3d/giro3d/core/layer/ColorLayer.js";
import ElevationLayer from "@giro3d/giro3d/core/layer/ElevationLayer.js";
import Map, { defaultMapSubdivisionStrategy } from "@giro3d/giro3d/entities/Map.js";
import Tiles3D from "@giro3d/giro3d/entities/Tiles3D.js";
import MapboxTerrainFormat from "@giro3d/giro3d/formats/MapboxTerrainFormat.js";
@bertt
bertt / tms_NetherlandsRDNewQuad.json
Created March 13, 2026 09:07
NetherlandsRDNewQuad.json
"type": "TileMatrixSetType",
"identifier": "NetherlandsRDNewQuad",
"title": "Amersfoort / RD New scheme for the Netherlands",
"supportedCRS": "http://www.opengis.net/def/crs/EPSG/0/28992",
"tileMatrix": [
{
"type": "TileMatrixType",
"identifier": "0",
"scaleDenominator": 12288000.0,
@bertt
bertt / giro3d_custom_terrain_wmts_basemap
Last active March 10, 2026 11:31
Giro3D - Custom Terrain + wmts Basemap
import "./style.css";
import CoordinateSystem from "@giro3d/giro3d/core/geographic/CoordinateSystem.js";
import Extent from "@giro3d/giro3d/core/geographic/Extent.js";
import Instance from "@giro3d/giro3d/core/Instance.js";
import ColorLayer from "@giro3d/giro3d/core/layer/ColorLayer.js";
import ElevationLayer from "@giro3d/giro3d/core/layer/ElevationLayer.js";
import Map, { defaultMapSubdivisionStrategy } from "@giro3d/giro3d/entities/Map.js";
import { MapLightingMode } from "@giro3d/giro3d/entities/MapLightingOptions.js";
import MapboxTerrainFormat from "@giro3d/giro3d/formats/MapboxTerrainFormat.js";
# ArcInfo Workstation Complete Command Reference (150+ Commands)
This document is a comprehensive command reference for ArcInfo Workstation ARC prompt.
Prompt:
```
ARC:
```
@bertt
bertt / qqgis_promptly_sample.txt
Created June 3, 2025 11:47
QGIS Promptly sample
prompt=voeg D:\gisdata\andorra\ALPSMLC30_N042E001_DSM.tif toe aan qgis
Please follow these guidelines when generating QGIS code:
1. Always include necessary QGIS imports at the top of your code (note the correct locations):
- from qgis.core import QgsProject, QgsVectorLayer, QgsCoordinateReferenceSystem, Qgis
- from qgis.utils import iface
- from PyQt5.QtCore import Qt, QVariant
- from PyQt5.QtGui import QColor
- from PyQt5.QtWidgets import QMessageBox, QInputDialog, QDialog, QComboBox
@bertt
bertt / download_las.sh
Created December 16, 2024 11:33
Download France las files
#!/bin/bash
# Base URL van de bestanden
BASE_URL="https://storage.sbg.cloud.ovh.net/v1/AUTH_63234f509d6048bca3c9fd7928720ca1/ppk-lidar/RO/LHD_FXX_0"
# Reeksen voor {x} en {y}
X_START=983
X_END=996
Y_START=6367
Install miniconda
$ conda create -n geo python=3.12 ipython
$ conda activate geo
$ conda install pip
$ pip install py3dtiles
@bertt
bertt / pdal_pipeline_convert_laz_to_csv.md
Last active August 15, 2024 06:00
PDAL pipeline to convert LAZ to CSV
@bertt
bertt / pg2b3dm_getting_started_sample.txt
Created April 9, 2024 10:30
pg2b3dm - getting started sample
Tool: pg2b3dm 2.8.0.0
Options: -h localhost -U postgres -c geom -d postgres -t sibbe -a identificatie
Password for user postgres:
Start processing 2024-04-09T12:18:51....
Input table: sibbe
Input geometry column: geom
App mode: Cesium
Spatial reference of sibbe.geom: 4979
Spatial index detected on sibbe.geom
Query bounding box of sibbe.geom...
@bertt
bertt / valuestypes.txt
Last active January 30, 2024 11:28
scalar values
[3dtiles] type / componentType -> [.net] -> [postgres]
boolean / - -> bool -> boolean
scalar / uint8 -> byte -> -
scalar / int8 -> sbyte -> -
scalar / int16 -> short -> smallint
scalar / uint16 -> ushort -> -
scalar / int32 -> int -> integer
scalar / uint32 -> uint -> -
scalar / int64 -> long -> bigint
scalar / uint64 -> ulong -> -