Skip to content

Instantly share code, notes, and snippets.

@schwehr
schwehr / TASKS.md
Last active October 19, 2026 06:28
Draft rfc113_build_requirements.rst

By Fable 5.1

RFC 113 implementation tasks

Work needed in the GDAL repository to meet the RFC 113 minimums, based on the tree at 6364d9384b (2026-10-18). Counts are from grep and are approximate. Each item should be its own PR, labelled per the LLM tool policy if an LLM was used for the mechanical parts.

Order matters: do the "floors" first (1-5) so CI proves the new minimums,

@schwehr
schwehr / AGENTS-fable.md
Last active October 18, 2026 01:31
GDAL AGENTS.md starters

AGENTS.md — working on GDAL

Guidance for coding agents (and humans) producing changes to GDAL that are easy to review and maintain. The authoritative, longer-form references are doc/source/development/dev_practices.rst, doc/source/development/testing.rst and doc/source/development/dev_documentation.rst; this file distills them and adds what the code itself shows.

1. Ground rules

@schwehr
schwehr / PLAN.md
Created August 24, 2026 02:13
bitvector-modern LLM generated plan

bitvector-modern Engineering Plan & SDD Roadmap (100 Projects)

This document establishes the comprehensive, sequential 100-project master plan for bitvector-modern. Each project follows Spec-Driven Development (SDD) principles with actionable task checklists, technical specifications, concrete deliverables, formal hypothesis property invariants, quantified benchmark thresholds, and verification criteria.

The roadmap is structured in 10 sequential phases, beginning with modernizing the Python runtime target (dropping Python 3.13 to target Python >=3.14),

@schwehr
schwehr / LONG_TERM_PLAN.md
Created August 24, 2026 01:43
LLM based long term planning for bitvector-modern

schwehr/bitvector-modern#216

Executive Summary

bitvector-modern is the modern, pure-Python foundation for memory-efficient packed representation of bit arrays and bit vectors. Originating from Avi Kak's foundational BitVector 3.5.0 (Purdue University), this modernized project brings bit manipulation into the modern Python 3.13+ era—leveraging strict typing, modern packaging, comprehensive property-based fuzzing, and clean software architecture.

@schwehr
schwehr / COPERNICUS_DEM_GLO30.js
Last active February 25, 2026 00:15
Earth Engine COPERNICUS/DEM/GLO30 example script
/**
* Copyright 2026 The Google Earth Engine Community Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@schwehr
schwehr / GEMINI.md
Created December 19, 2025 17:47
geemap/GEMINI.md possible file

Preamble

Copyright 2025 Google LLC.
SPDX-License-Identifier: Apache-2.0

How geemap works

This document provides a high-level overview of the geemap library's

@schwehr
schwehr / bump_geemap_version_test.py
Created November 15, 2025 20:42
Draft bump_geemap_version_test.py - needs reformatting to geemap style
import builtins
import pathlib
import shutil
import sys
import tempfile
import textwrap
import unittest
from unittest import mock
from geemap.scripts import bump_geemap_version
@schwehr
schwehr / repr.py
Created October 30, 2025 15:47
A first attempt at text/rich mode for eerepr - does not work - https://github.com/aazuspan/eerepr/issues/68
# SPDX-License-Identifier: MIT
from __future__ import annotations
import html
from functools import _lru_cache_wrapper, lru_cache
from typing import Any, Literal, Union
from warnings import warn
import ee
@schwehr
schwehr / gtiff_test.cc
Created February 13, 2025 05:38
Renamed the file for Owen's gist for the gdal mailing list.
TEST_F(GTiffTest, CreateCopyPreservesMaskForBandInterleavedCog) {
constexpr char kFilename[] = "/vsimem/create_copy_with_mask.tif";
constexpr int kWidth = 2;
constexpr int kHeight = 2;
constexpr size_t kSize = kWidth * kHeight;
constexpr int kNumBands = 1;
GDALRegister_GTiff();
GDALDriver* driver = GetGDALDriverManager()->GetDriverByName(GTiff);
@schwehr
schwehr / inventory_test.cc
Created January 19, 2025 22:53
google gdal autotest2 inventory test for degrib
// Copyright 2017 Google Inc.All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,