geometry-api-java

geometry-api-java is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 105 tokens per session (4,139 once invoked), scanned A, original, MIT.

A Java library for creating, reading, writing, and calculating with geometric shapes such as points, lines, polygons, and bounding boxes. It supports spatial data formats and coordinate systems used in mapping applications.

In plain words
What is it for?
Use it for spatial calculations, coordinate transformations, spatial relationships, and JSON, GeoJSON, or WKT input and output in Java applications and data-processing systems.
Why use it?
It provides common map-geometry operations inside Java programs without requiring a separate geographic information system, or GIS, installation.

Skill for Claude CodeCodex

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

Good fit Use it for spatial calculations, coordinate transformations, spatial relationships, and JSON, GeoJSON, or WKT input and output in Java applications and data-processing systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/geometry-api-java
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 geometry-api-java
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 geometry-api-java

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/geometry-api-java/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/geometry-api-java)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geometry-api-java"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geometry-api-java/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 geometry-api-java

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/geometry-api-java"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/geometry-api-java.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,139 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00105 $0.04139
Opus 5.5 $0.00042 $0.01656
Sonnet 5.5 $0.00021 $0.00828
Haiku 4.5 $0.00011 $0.00414

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

Security

Grade A, and why

geometry-api-java 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 21d 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/geometry-api-java/SKILL.md · 398 lines

How it starts

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

项目地址: https://github.com/Esri/geometry-api-java

官方文档: https://github.com/Esri/geometry-api-java/wiki

Maven Central: com.esri.geometry:esri-geometry-api

最新版本: 2.2.4(Maven Central,截至 2026-11);上游源码 2.3.1(2026-10-09),未发布到 Central

许可证: Apache-2.0

概述

Esri Geometry API for Java 是一个自包含的空间几何计算库,提供对二维和三维几何对象的创建、解析、序列化以及空间关系运算能力。它无需任何外部 GIS 依赖,可直接嵌入 Java 应用、Hadoop MapReduce、Hive UDF、Spark 等大数据处理框架中。


环境准备与快速集成

Maven

<dependency>
  <groupId>com.esri.geometry</groupId>
  <artifactId>esri-geometry-api</artifactId>
  <version>2.2.4</version><!-- Maven Central 最新版;上游 2.3.1 尚未发布到 Central -->
</dependency>

Gradle

implementation 'com.esri.geometry:esri-geometry-api:2.2.4'

环境要求: JDK 1.7+;运行时依赖 jackson-core(JSON 处理)。

维护状态提示: Maven Central 上最新发布版本仍是 2.2.4(2020-09);上游仓库已发布 2.3.1(2026-10),但尚未发布到 Maven Central(可从 GitHub Releases 获取构建产物)。若需活跃维护的几何库,新项目建议优先选用 JTS(Java)或 NetTopologySuite(.NET)。


核心 API 一览

类 包 用途
GeometryEngine com.esri.core.geometry 推荐入口——提供几何操作的静态便捷方法
OperatorFactoryLocal com.esri.core.geometry 算子工厂,适用于高性能批量处理
SpatialReference com.esri.core.geometry 空间参考 / 坐标系(通过 WKID 或 WKT 创建)
MapGeometry com.esri.core.geometry 将 Geometry 与 SpatialReference 打包在一起
Point com.esri.core.geometry 点(0 维)
MultiPoint com.esri.core.geometry 多点集合(0 维)
Polyline com.esri.core.geometry 折线 / 路径集合(1 维)
Polygon com.esri.core.geometry 面 / 环集合(2 维)
Envelope com.esri.core.geometry 外接矩形(2 维)

几何对象创建

import com.esri.core.geometry.*;

// 点
Point pt = new Point(116.4, 39.9);          // 2D
Point pt3d = new Point(116.4, 39.9, 50.0);  // 3D

// 折线
Polyline line = new Polyline();
line.startPath(0, 0);
line.lineTo(10, 10);
line.lineTo(20, 0);

// 面
Polygon polygon = new Polygon();
polygon.startPath(0, 0);
polygon.lineTo(10, 0);
polygon.lineTo(10, 10);
polygon.lineTo(0, 10);
// 自动闭合

// 外接矩形
Envelope env = new Envelope(0, 0, 10, 10);

// 多点
MultiPoint mp = new MultiPoint();
mp.add(1, 2);
mp.add(3, 4);

Read the full file on GitHub · 398 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. 21d ago Changed · -5 lines 0cae7b4ec287
  2. 1mo ago Changed · -1 lines 0a95028b3204
  3. 1mo ago Changed · -7 lines · +56 tokens per session c30c019012a8
  4. 1mo ago Changed · +37 lines 7b6d41dc8c42
  5. 2mo ago Changed 41c9e089afe4
  6. 2mo ago Changed 20e9eae3afc6
  7. 2mo ago Changed 5315c626568e
  8. 3mo ago First seen · 374 lines · 49 tokens per session scan A 19048e5a90d6

Subscribe to this mod's changes

geometry-api-java is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 105 tokens to every session and 4,139 once invoked, about $0.0004 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-08-30.

Related

geometry-api-java compared with skills from other repositories

geometry-api-java next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
geometry-api-javaznlgis/opengis-skillsSkill8720d agoMITA105Claude Code, Codex
wxjava-api-contributorbinarywang/WxJavaSkill33k2d agoApache-2.0A68Codex
azure-communication-callautomation-javamicrosoft/skillsSkill3.3ktodayMITA49Claude Code
azure-communication-chat-javamicrosoft/skillsSkill3.3ktodayMITA41Claude Code
azure-communication-common-javamicrosoft/skillsSkill3.3ktodayMITA35Claude Code
azure-communication-sms-javamicrosoft/skillsSkill3.3ktodayMITA36Claude Code
java-coding-standardshashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A35Claude Code, Codex