geometry-api-java

geometry-api-java is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 49 tokens per session (3,247 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

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.

agentmods
npx agentmods add skills/znlgis/opengis-skills/geometry-api-java
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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,247 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.03247
Opus 5 $0.00024 $0.01623
Sonnet 5 $0.00010 $0.00649
Haiku 4.5 $0.00005 $0.00325

Measured today against content hash 5315c626568e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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 · 374 lines

How it starts

The opening of the file, as written. The whole thing — 374 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

许可证: 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><!-- 请查看 Maven Central 获取最新版:https://central.sonatype.com/artifact/com.esri.geometry/esri-geometry-api --></version>
</dependency>

Gradle

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

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

维护状态提示: esri-geometry-api 最新版本仍为 2.2.4(2020-09),已多年未更新。若需活跃维护的几何库,新项目建议优先选用 JTS(Java)或 NetTopologySuite(.NET)。


核心类一览

用途
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 · 374 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. today Changed 5315c626568e
  2. 4d 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 (58 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 3,247 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories