cxcscmu/skilllearnbench/accurate-distance-calculation

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Using map projections to calculate real-world distances in meters or kilometers accurately.

Install

npx vskill@latest install cxcscmu/skilllearnbench/accurate-distance-calculation

SKILL.md

Accurate Distance Calculation

Overview

Calculating distances in degrees (EPSG:4326) is incorrect because degrees represent different distances depending on the latitude. Always project to a metric system.

Choosing a Projection

  • EPSG:4087: World Equidistant Cylindrical (Good for global distance approximation).
  • UTM: Universal Transverse Mercator (Best for local, high-accuracy areas).

Conversion and Calculation

python
# Project to metric (meters)
METRIC_CRS = "EPSG:4087"
gdf_projected = gdf.to_crs(METRIC_CRS)
target_geom_projected = target_gdf.to_crs(METRIC_CRS).geometry.unary_union
# Calculate distance (returns meters)
gdf['distance_meters'] = gdf_projected.distance(target_geom_projected)
# Convert to Kilometers
gdf['distance_km'] = gdf['distance_meters'] / 1000.0

Finding Extremes

python
# Furthest point
furthest = gdf.nlargest(1, 'distance_km')
# Closest point
closest = gdf.nsmallest(1, 'distance_km')

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
83
Repository forks
7
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cxcscmu/skilllearnbench/accurate-distance-calculation/badge)](https://verified-skill.com/skills/cxcscmu/skilllearnbench/accurate-distance-calculation)

Something wrong with this skill or its page? Tell us.