Skip to content

Instantly share code, notes, and snippets.

View MaxLenormand's full-sized avatar

Maxime Lenormand MaxLenormand

View GitHub Profile
{
"tileLayer": {
"@@type": "TileLayer",
"minZoom": 0,
"maxZoom": 19,
"tileSize": 256,
"pickable": true
},
"hexLayer": {
"@@type": "H3HexagonLayer",
@MaxLenormand
MaxLenormand / Fused_Cursor_Rules.md
Last active June 27, 2025 06:47
Fused + Cursor Rules

Rules to keep in mind when building Fused UDFs

Geospatial UDFs

  • Always use .estimate_utm_crs() when doing distance or area operations (buffering, getting length, calculating perimeter, etc.)

  • If output is missing and is vector, think about data validation: Check for invalid geometries: gdf.geometry.is_valid. Fix with gdf.geometry.buffer(0) or shapely.make_valid()

  • It usually works best with geopandas to use HTTPs URL format over S3, so use that even whenever I ask you to load a vector file from an S3:// (or similar cloud server) with geopandas