Skip to content

Route summary: depth chart for boat routes - #2115

Draft
vshcherb wants to merge 1 commit into
mainfrom
boat-depth-chart
Draft

vshcherb wants to merge 1 commit into
mainfrom
boat-depth-chart

Conversation

@vshcherb

@vshcherb vshcherb commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Task: https://github.com/osmandapp/OsmAnd-Issues/issues/3340

Draft. Needs the server side: osmandapp/OsmAnd-tools#1779 and osmandapp/OsmAnd#26471.

  • NavigationSummaryGraph: a route with depthProfile shows depth below the surface instead of elevation - reversed axis, filled from the surface, gaps where the depth files have no data, hover marker on the map.
  • NavigationMenu: showRouteSummary() returned 0 when routingTime was 0, and React rendered a bare "0" instead of the route card. It now returns a boolean.

North Sea to Shetland

Harlingen to the North Sea

AI disclaimer

Produced with Claude Code (Opus 5.5).

Prompts used (summarised):

  1. Can depth from the new depth.obf files be used for charts along a boat route?
  2. Take depth from the contours, and from the soundings where there are no contours; build a prototype on a Harlingen to North Sea route.
  3. Use the depth files with good contours from builder /depth-data/build/.
  4. Do the contours work - were they checked on routes?
  5. The open sea is empty; a bug with "0" on a North Sea to Shetland route; in the open sea there will be soundings only.
  6. Make a draft PR with the algorithm and screenshots, and attach it to the boat routing task.

Decided by the agent, not requested explicitly: 200 m sampling (at most 2000 samples); pairing only contours on opposite sides of a sample; 3 km search radius for contours and soundings; files tried smallest first; depth as a separate depthProfile array, not as elevation; depth files read from <obf location>/depth; the reversed depth axis; route time as routingTime for open water.

A boat route with depthProfile shows depth below the surface instead of
elevation, with gaps where the depth files have no data. The route card
was hidden and a bare 0 rendered when routingTime was 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant