jts

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

A Java library for working with two-dimensional shapes and geographic data, such as points, lines, and polygons.

In plain words
What is it for?
Use it in Java GIS and geometry software for tasks such as buffering, triangulation, spatial queries, validity checks, and reading formats like GeoJSON or WKT.
Why use it?
It provides standard operations for checking spatial relationships, combining shapes, measuring them, and finding intersections.

Skill for Claude CodeCodex

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

Good fit Use it in Java GIS and geometry software for tasks such as buffering, triangulation, spatial queries, validity checks, and reading formats like GeoJSON or WKT.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/jts"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/jts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,089 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.00077 $0.04089
Opus 5.5 $0.00031 $0.01636
Sonnet 5.5 $0.00015 $0.00818
Haiku 4.5 $0.00008 $0.00409

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

Security

Grade A, and why

jts 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/jts/SKILL.md · 280 lines

How it starts

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

项目地址: https://github.com/locationtech/jts

Maven Central: org.locationtech.jts:jts-core

最新版本: 1.20.0(截至 2026-11,Maven Central)

许可证: Eclipse Public License 2.0 / Eclipse Distribution License 1.0(BSD 风格)

Javadoc: https://locationtech.github.io/jts/javadoc

概述

JTS Topology Suite(简称 JTS)是 LocationTech 项目组下的开源 Java 二维矢量几何库,是 GeoTools、GeoServer 等众多开源 GIS 项目的几何计算核心。它提供:

  • 几何对象模型:Point、LineString、Polygon、MultiPoint、MultiLineString、MultiPolygon、GeometryCollection
  • 空间关系判断:equals、contains、within、intersects、touches、crosses、overlaps、disjoint、relate(DE-9IM)
  • 集合运算:intersection、union、difference、symDifference、buffer
  • 几何分析:convexHull、centroid、area、length、distance、isValid、simplify
  • 线性参考:沿线距离定位、线上插值
  • 空间索引:STRtree、Quadtree,加速批量空间查询
  • 格式读写:WKT、WKB、GeoJSON

环境要求: JDK 8+


环境准备与快速集成

Maven

<properties>
    <jts.version>1.20.0</jts.version><!-- Maven Central 最新稳定版;列表见 https://central.sonatype.com/artifact/org.locationtech.jts/jts-core -->
</properties>

<dependency>
    <groupId>org.locationtech.jts</groupId>
    <artifactId>jts-core</artifactId>
    <version>${jts.version}</version>
</dependency>

如需 GeoJSON 等 I/O 支持(注意 groupId 是 org.locationtech.jts.io,与 jts-core 的 org.locationtech.jts 不同):

<dependency>
    <groupId>org.locationtech.jts.io</groupId>
    <artifactId>jts-io-common</artifactId>
    <version>${jts.version}</version>
</dependency>

jts-io-common 的 GeoJsonWriter 在运行期还依赖 com.googlecode.json-simple:json-simple(Maven/Gradle 会自动带入);手工拼 classpath 时漏掉它会在写出 GeoJSON 时抛 NoClassDefFoundError: org/json/simple/JSONAware。

Gradle

implementation 'org.locationtech.jts:jts-core:1.20.0'
implementation 'org.locationtech.jts.io:jts-io-common:1.20.0'

项目模块一览

模块 artifactId 用途
jts-core jts-core (推荐)核心——几何模型、算法、空间操作、索引
jts-io-common jts-io-common 通用 I/O:WKT、WKB、GeoJSON 读写
jts-io-ora jts-io-ora Oracle Spatial SDO_GEOMETRY 读写——源码模块,需 -Pall(oracle profile)本地构建,未发布到 Maven Central
jts-io-sde jts-io-sde ArcSDE 几何读写——源码保留,构建中已注释禁用,无发布产物

Read the full file on GitHub · 280 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · -7 lines c76377c6dead
  2. 1mo ago Changed · +3 lines f90756d84502
  3. 1mo ago Changed · -8 lines · +19 tokens per session ec27aa318d7d
  4. 1mo ago Changed a8b739bc67e6
  5. 1mo ago Changed · +28 lines f2bad71ce7b2
  6. 2mo ago Changed 61279d0fdb4c
  7. 2mo ago Changed d56218db5b45
  8. 2mo ago Changed · -295 lines 554ca240fdd2
  9. 3mo ago First seen · 559 lines · 58 tokens per session scan A 53616f0b0024

Subscribe to this mod's changes

jts is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 77 tokens to every session and 4,089 once invoked, about $0.0003 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

jts compared with skills from other repositories

jts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jtsznlgis/opengis-skillsSkill8720d agoMITA77Claude Code, Codex
java-affected-testsopen-metadata/OpenMetadataSkill16ktodayApache-2.0A120Claude Code
azure-security-keyvault-secrets-javamicrosoft/skillsSkill3.3ktodayMITA40Claude Code
azure-ai-anomalydetector-javamicrosoft/skillsSkill3.3ktodayMITA43Claude Code
azure-communication-chat-javamicrosoft/skillsSkill3.3ktodayMITA41Claude Code
azure-communication-common-javamicrosoft/skillsSkill3.3ktodayMITA35Claude Code
azure-ai-agents-persistent-javamicrosoft/skillsSkill3.3ktodayMITA63Claude Code