# Contour Crossing Position Calculator AI Agent Connect

> Contour Crossing Position Calculator MCP identifies the precise geographic coordinates where a vessel's planned route hits specific bathymetric contour lines. It handles the heavy lifting of maritime geospatial analysis, providing crossing angles, interpolated depths, and route metrics directly to your AI client.

## Overview
- **Category:** maritime
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_RrMSBKJr2f9QLVBSO3DXtK1glQc9efs8Af9CvMPJ/ai-agent-connect
- **Tags:** bathymetry, vessel-route, maritime-navigation, geospatial-analysis, oceanography

## Description

You can use this MCP to map how a vessel's path interacts with underwater terrain. Instead of manually checking coordinates against depth maps, you let your agent handle the intersection math. It finds the exact points where a route crosses a contour line and provides the specific geometry of those crossings. You can pull high-level stats for an entire voyage or drill down into specific depth ranges to find where a route hits dangerous or shallow areas. It is a practical tool for anyone planning bathymetric surveys or assessing the safety of a maritime route based on existing depth data.

## Tools

### calculate_route_metrics
This tool generates high-level summary statistics for your entire vessel route.

### filter_crossings_by_depth
Use this to extract only the crossings that fall within a specific depth range.

### find_contour_crossings
This tool identifies each point where the vessel route intersects your defined bathymetric contours.

### get_crossing_geometry
This tool calculates the specific geometric relationship of a single crossing relative to its parent route segment.

## Prompt Examples

**Prompt:** 
```
Find all points where this route crosses the 50m contour: route=[{'lat': 10, 'lon': 20}, {'lat': 11, 'lon': 21}], contours=[{'depth': 50, 'segments': [[{'lat': 10.5, 'lon': 20.5}, {'lat': 11.5, 'lon': 21.5}]]}]
```

**Response:** 
```
The route crosses the 50m contour at latitude 10.5, longitude 20.5.
```

**Prompt:** 
```
What is the total distance and number of crossings for this route?
```

**Response:** 
```
The total distance is 150.5 km and there are 3 crossings detected.
```

**Prompt:** 
```
Filter the crossings to only show those between 100m and 200m depth.
```

**Response:** 
```
The filtered crossings are at 120m and 185m depth.
```

## Capabilities

### Intersection Detection
Your agent finds the exact coordinates where a path hits a contour line.

### Depth Filtering
Your agent isolates crossings that occur within specific depth boundaries.

### Route Summarization
Your agent calculates total distance and crossing counts for a full route.

### Geometric Analysis
The tool provides the geometric relationship of a crossing to its route segment.

## Use Cases

### Survey Planning
Plan bathymetric survey paths by identifying where they cross specific depth contours.

### Route Safety Assessment
Check if a planned vessel route crosses into shallow water zones.

### Geospatial Analysis
Analyze the relationship between vessel movement and seafloor topography.

### Data Extraction
Pull specific crossing coordinates from complex route and contour datasets.

## Benefits

- Automates the math for finding intersection points between routes and contours.
- Filters large datasets to show only crossings at specific depths.
- Provides immediate summary statistics for long vessel routes.
- Calculates precise geometric relationships for individual crossings.

## How It Works

Connect your AI client to the Vinkius-hosted MCP to start running maritime calculations.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your vessel route and bathymetric contour data to your agent.
3. Ask your agent to find crossings or calculate route metrics.
4. The MCP executes the math and returns the coordinates or statistics to your client.

## Frequently Asked Questions

**What can this MCP do with vessel routes?**
It identifies where routes intersect bathymetric contours and provides the exact coordinates, crossing angles, and depths.

**Can I filter crossings by a specific depth?**
Yes, you can use the filter tool to extract only the crossings that occur within a specific depth range.

**Which AI clients work with this MCP?**
This MCP works with any compatible client, including Claude, Cursor, Windsurf, and VS Code.

**Does it provide route statistics?**
Yes, it can provide high-level summary statistics like total distance and the number of crossings for a route.

**How is the data hosted?**
Vinkius hosts and manages the MCP, so you only need to connect your client once to start using the tools.

**What information is returned for each crossing?**
Each crossing includes the latitude and longitude, the depth of the contour, the cumulative distance traveled, the crossing angle, and bracketing points.

**Can I filter crossings by a specific depth range?**
Yes, you can use the `filter_crossings_by_depth` tool to extract only the intersections that fall within your specified minimum and maximum depth parameters.

**How is the crossing angle calculated?**
The crossing angle is the acute angle formed between the vector of the vessel route segment and the vector of the contour segment at the point of intersection.
