Skip to content

Instantly share code, notes, and snippets.

View bertt's full-sized avatar

Bert Temme bertt

View GitHub Profile
@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 -> -
@bertt
bertt / tree.csv
Created August 18, 2023 12:28
tree.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 13 columns, instead of 2 in line 1.
Nederlandse naam,Wetenschappelijke naam,Plantjaar,Leeftijd,Eigenaar,Buurt,Wijk,Boomnummer,X,Y,Lat,Long,Exportdatum
Bolacacia,Robinia pseudoacacia
'Umbraculifera',2017,3,Gemeentelijk,Mariëndaalstraat e.o.,Noordwest,3022615,134958.072,457421.454,5.094669474551958,52.104669913710175,20201123
@bertt
bertt / dotnet_tagged_version
Last active August 10, 2023 13:36
dotnet tagged version
Tool: dotnetCampus.TagToVersion
https://github.com/dotnet-campus/dotnetCampus.TagToVersion
Writes a tag to file Build/Version.props
<Project>
<PropertyGroup>
<Version>0.11</Version>
</PropertyGroup>