projnet4geoapi

projnet4geoapi is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 121 tokens per session (4,527 once invoked), scanned A, original, MIT.

A .NET library for converting coordinates between geographic coordinate systems and map projections. A coordinate system defines how locations are represented, while a projection converts the Earth’s curved surface to a flat map.

In plain words
What is it for?
Use it in C# or other .NET projects to transform points, register SRID identifiers, convert between latitude-longitude and projected coordinates, and support common map projections.
Why use it?
It avoids implementing projection mathematics in application code. It can also read coordinate-system definitions supplied as WKT, a text format for describing them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it in C# or other .NET projects to transform points, register SRID identifiers, convert between latitude-longitude and projected coordinates, and support common map projections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/projnet4geoapi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill projnet4geoapi
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for projnet4geoapi

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/projnet4geoapi/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/projnet4geoapi)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/projnet4geoapi"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/projnet4geoapi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for projnet4geoapi

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/projnet4geoapi"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/projnet4geoapi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.04527
Opus 5.5 $0.00048 $0.01811
Sonnet 5.5 $0.00024 $0.00905
Haiku 4.5 $0.00012 $0.00453

Measured 19d ago against content hash 48b74def3abf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

projnet4geoapi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

gis/projnet4geoapi/SKILL.md · 294 lines

How it starts

The opening of the file, as written. The whole thing — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/NetTopologySuite/ProjNet4GeoAPI

最新版本: 2.1.0(截至 2026-11,NuGet ProjNet,netstandard2.0 / netstandard2.1)

NuGet(1.x,旧版): ProjNet4GeoAPI 1.4.1(面向 GeoAPI 接口的项目,如 SharpMap 1.2)

官方文档: https://github.com/NetTopologySuite/ProjNet4GeoAPI/wiki

许可证: LGPL-2.1-or-later

维护状态: 上游 README 明确说明维护资源不足,官方给出的替代方案是 SharpProj、DotSpatial.Projections、GDAL;新项目在需要完整 EPSG 支持时应优先考虑这些方案。

概述

ProjNet 是 SharpMap 时代延续下来的 .NET 坐标参考系与投影引擎,按 OGC Simple Features 模型描述坐标系,负责「点对点」的坐标转换:源坐标系 → 目标坐标系,中间可能包含基准面转换(datum transformation)。它不提供地图渲染,也不自带 EPSG 数据库,坐标系定义要么用内置常量(WGS84、WebMercator),要么由调用方提供 WKT。

  • 坐标系模型:地理坐标系、地心坐标系、投影坐标系、垂直坐标系、复合坐标系
  • 转换能力:基准面转换、地理↔投影、投影↔投影,支持 Albers、Mercator、Transverse Mercator、Lambert Conformal Conic、Polar Stereographic、Krovak 等常用投影
  • 定义读写:WKT 与 XML 互转(CreateFromWkt / CreateFromXml)
  • 服务容器:CoordinateSystemServices 维护 SRID → 坐标系映射与转换工厂,默认只注册 EPSG:4326 与 EPSG:3857
  • 两代包:2.x 用自带类型体系(ProjNet.CoordinateSystems),1.x 实现 GeoAPI 接口供 SharpMap 等老库使用

环境准备

安装(.NET 6+ / netstandard2.0 兼容项目)

# 2.x 系列(推荐)
dotnet add package ProjNet --version 2.1.0

# 1.x 系列:只在必须实现 GeoAPI 接口的老项目里使用(如 SharpMap 1.2)
dotnet add package ProjNet4GeoAPI --version 1.4.1
# Package Manager Console
Install-Package ProjNet -Version 2.1.0

两个包的程序集名都是 ProjNET.dll,不能同时引用;同时引用会出现类型冲突与「找到多个同名类型」的编译错误。

验证

using ProjNet.CoordinateSystems;
using ProjNet.CoordinateSystems.Transformations;

var src = GeographicCoordinateSystem.WGS84;
var tgt = ProjectedCoordinateSystem.WebMercator;
var transform = new CoordinateTransformationFactory()
    .CreateFromCoordinateSystems(src, tgt);

double[] xy = transform.MathTransform.Transform(new[] {116.397, 39.908});
Console.WriteLine($"{xy[0]:F2}, {xy[1]:F2}");   // 约 12957254.80, 4852582.10
dotnet run   # 能打印出 Web Mercator 米制坐标即环境正常

目标框架

包 目标框架 说明
ProjNet 2.1.0 netstandard2.0 / netstandard2.1 .NET Framework 4.6.1+、.NET 6/8/9 均可引用;netstandard2.0 版本额外依赖 System.Memory 4.6.0
ProjNet4GeoAPI 1.4.1 net35-client / net40-client / net45 / netstandard2.0 2018 年发布,只为兼容 GeoAPI 生态

Read the full file on GitHub · 294 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed 48b74def3abf
  2. 21d ago Changed · -6 lines bff294b9ad50
  3. 1mo ago First seen · 300 lines · 121 tokens per session scan A d36e4d2c80ca

Subscribe to this mod's changes

projnet4geoapi is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 121 tokens to every session and 4,527 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.

Related

projnet4geoapi compared with skills from other repositories

projnet4geoapi next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
projnet4geoapiznlgis/opengis-skillsSkill8720d agoMITA121Claude Code, Codex
agui-dotnet-streaming-chatag-ui-protocol/ag-uiSkill22ktodayMITA223Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill6.4ktodayMITA149Claude Code
azure-mgmt-apicenter-dotnetmicrosoft/skillsSkill3.3ktodayMITA97Claude Code
platform-detectiondotnet/skillsSkill6.4ktodayMITA166Claude Code
migrate-dotnet8-to-dotnet9dotnet/skillsSkill6.4ktodayMITA176Claude Code
template-instantiationdotnet/skillsSkill6.4ktodayMITA168Claude Code