From 0f83c29d0a489ba8ac3c32ba3137abee0eb90bae Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 1 May 2026 03:51:57 +0000 Subject: [PATCH 1/6] Add parcel slope analyzer for Sevier County TN parcel testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Self-contained HTML tool that: - Prompts for Mapbox token at runtime (stored in sessionStorage only, never committed to git) - Queries Sevier County ArcGIS FeatureServer trying both GISLINK and ID field formats across multiple candidate endpoints, reporting which one successfully returns the Foust parcel boundary polygon - Samples elevation via Mapbox Terrain-RGB at a 10×10 grid across the parcel bounding box, with tile caching to minimise requests - Calculates per-cell slope using finite differences; reports avg/max - Renders parcel outline + slope heatmap (green→red) on a Mapbox satellite-streets map https://claude.ai/code/session_01A8hTZVRcXuDPbKeUYNByt5 --- parcel_slope_analyzer.html | 662 +++++++++++++++++++++++++++++++++++++ 1 file changed, 662 insertions(+) create mode 100644 parcel_slope_analyzer.html diff --git a/parcel_slope_analyzer.html b/parcel_slope_analyzer.html new file mode 100644 index 000000000..8eeef65ca --- /dev/null +++ b/parcel_slope_analyzer.html @@ -0,0 +1,662 @@ + + + + + + Parcel Slope Analyzer — Sevier County TN + + + + + +
+

Parcel Slope Analyzer

+

Sevier County, TN — ArcGIS parcel boundary + Mapbox Terrain-RGB elevation analysis

+
+ + +
+
+

Mapbox Access Token

+

Enter your Mapbox secret or public token to load the map and + query Terrain-RGB tiles. The token is stored in sessionStorage only — + never committed to git.

+ + +
+
+ +
+
+ + +
+ + + + From 50172f319172a57d9400dc1c30dbbce7fd02bc74 Mon Sep 17 00:00:00 2001 From: catedm3112-cmyk Date: Sun, 3 May 2026 08:09:57 -0400 Subject: [PATCH 2/6] Use USGS 3DEP elevation and parcel-clipped slope bands --- parcel_slope_analyzer.html | 604 ++++++++++++++++--------------------- 1 file changed, 265 insertions(+), 339 deletions(-) diff --git a/parcel_slope_analyzer.html b/parcel_slope_analyzer.html index 8eeef65ca..e66d8bee8 100644 --- a/parcel_slope_analyzer.html +++ b/parcel_slope_analyzer.html @@ -3,33 +3,10 @@ - Parcel Slope Analyzer — Sevier County TN + Parcel Slope Analyzer - Sevier County TN -
-

Parcel Slope Analyzer

-

Sevier County, TN — ArcGIS parcel boundary + Mapbox Terrain-RGB elevation analysis

-
- +
-
-

Mapbox Access Token

-

Enter your Mapbox secret or public token to load the map and - query Terrain-RGB tiles. The token is stored in sessionStorage only — - never committed to git.

- - +
+ +
Parcel Slope Analyzer — Sevier County, TN
+
+ Use your Mapbox public token (pk.eyJ1…) only.
+ Secret tokens (sk.) must never be used in browser code. +
+ + + +
-
-
+ +
+
+
Click any parcel to analyze slope
+