Commit a752c52
authored
* Add contour line extraction via marching squares (#964)
New xrspatial.contour module with contours() function that extracts
isolines from 2D rasters. Supports numpy, cupy, dask+numpy, and
dask+cupy backends. Includes segment stitching into polylines and
optional GeoDataFrame output.
* Fix marching squares case table and add tests (#964)
Corrected edge assignments in the marching squares lookup table.
Previous table had wrong edges for most cases (e.g. case 1 used
top edge instead of bottom edge). Added comprehensive test suite
covering correctness, NaN handling, edge cases, backend equivalence,
GeoDataFrame output, accessor integration, and closed-ring detection.
* Add contours to docs and README feature matrix (#964)
* Add contour extraction user guide notebook (#964)
* Remove unused _MS_TABLE and _interp_edge from contour module (#964)
* Rename contour notebook to 24_Contour_Lines (#964)
* Add interactive contour explorer standalone example (#964)
Matplotlib-based interactive app for exploring contour lines on
procedural terrain. Supports click-to-add levels, scroll density
control, filled contours, hillshade toggle, contour labels, index
contours, and colour scheme cycling.
1 parent 2dc6bba commit a752c52
File tree
8 files changed
+1710
-0
lines changed- docs/source/reference
- examples
- user_guide
- xrspatial
- tests
8 files changed
+1710
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments