opengis-utils-for-java

opengis-utils-for-java is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 127 tokens per session (5,675 once invoked), scanned B, original, MIT.

A Java toolkit for GIS, the software used to work with maps and location-based data. It provides one interface for reading data, performing geometry operations, managing coordinate systems, and using different GIS engines.

In plain words
What is it for?
Use it to import and export map layers, calculate spatial relationships, transform coordinates, validate geometry, and build Java GIS workflows.
Why use it?
It reduces the work needed to connect Java applications to multiple GIS libraries and data formats.

Skill for Claude CodeCodex

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

Good fit Use it to import and export map layers, calculate spatial relationships, transform coordinates, validate geometry, and build Java GIS workflows.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/opengis-utils-for-java"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/opengis-utils-for-java.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,675 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00127 $0.05675
Opus 5.5 $0.00051 $0.02270
Sonnet 5.5 $0.00025 $0.01135
Haiku 4.5 $0.00013 $0.00568

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

Security

Grade B, and why

opengis-utils-for-java scanned grade B with 1 finding 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- **仓库与网络**:GeoTools 依赖不在 Central,`pom.xml` 必须带 `https://repo.osgeo.org/repository/release/`,否则 `Could not resolve dependencies for org.geotools:*`;离线或私服缺包时如实报告依赖不可下载,不要自行换版本或加未知仓库。
gis/opengis-utils-for-java/SKILL.md · 408 lines

How it starts

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

项目地址: https://github.com/znlgis/opengis-utils-for-java

官方文档: https://github.com/znlgis/opengis-utils-for-java#readme

最新版本: 1.0.0(截至 2026-11,仓库 main 分支 pom.xml,无 Git tag;尚未发布到 Maven Central,需从源码 mvn install 安装到本地仓库)

Maven 坐标: com.znlgis.ogu4j:ogu4j

许可证: LGPL-2.1-or-later

概述

OGU4J (OpenGIS Utils for Java) is a unified Java GIS toolkit built on GeoTools, JTS, GDAL/OGR, and ESRI Geometry API. It provides:

  • A unified layer model (OguLayer) for reading/writing GIS data across formats
  • Geometry operations (60+ methods) via GeometryUtil
  • Dual-engine architecture (GeoTools pure-Java & GDAL native)
  • Coordinate reference system management (CGCS2000 built-in)

Java Version: 17+
Build Tool: Maven
Group ID: com.znlgis.ogu4j | Artifact ID: ogu4j | Version: 1.0.0


环境准备

# 前置:JDK 17+ 与 Maven 3.8+
java -version
mvn -version

# 克隆并构建(安装到本地 Maven 仓库)
git clone https://github.com/znlgis/opengis-utils-for-java.git
cd opengis-utils-for-java
mvn install -DskipTests

在业务项目的 pom.xml 中引入依赖(GeoTools 依赖通过 osgeo 仓库解析):

<repositories>
    <repository>
        <id>osgeo</id>
        <url>https://repo.osgeo.org/repository/release/</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.znlgis.ogu4j</groupId>
    <artifactId>ogu4j</artifactId>
    <version>1.0.0</version>
</dependency>

环境要求: JDK 17+;GDAL 引擎需本地原生 GDAL 库(与 org.gdal:gdal 绑定版本 3.13.0 匹配);纯 GeoTools 引擎无需原生库。验证:mvn dependency:tree 中出现 com.znlgis.ogu4j:ogu4j:1.0.0,且代码中 import com.znlgis.ogu4j.datasource.OguLayerUtil; 可编译。


核心 API:包结构与入口类

com.znlgis.ogu4j
├── datasource/                  # High-level data I/O
│   ├── OguLayerUtil             # Primary entry point for reading/writing layers
│   └── GtTxtUtil                # National land TXT format support
├── engine/                      # GIS engine core
│   ├── GisEngine                # Engine interface
│   ├── GisEngineFactory         # Engine factory (auto-selects best engine)
│   ├── GeoToolsEngine           # GeoTools implementation (pure Java, always available)
│   ├── GdalEngine               # GDAL implementation (requires native GDAL)
│   ├── GeoToolsLayerReader/Writer  # GeoTools format I/O
│   ├── GdalLayerReader/Writer      # GDAL format I/O
│   ├── enums/                   # Enumerations
│   │   ├── DataFormatType       # SHP, GEOJSON, FILEGDB, POSTGIS, TXT, WKT, ESRIJSON, ARCSDE
│   │   ├── FieldDataType        # INTEGER, DOUBLE, STRING, BINARY, DATE, TIME, DATETIME, LONG
│   │   ├── GeometryType         # POINT, MULTIPOINT, LINESTRING, POLYGON, etc.
│   │   ├── GisEngineType        # GEOTOOLS, GDAL, AUTO
│   │   └── TopologyValidationErrorType
│   ├── io/                      # Reader/Writer interfaces
│   │   ├── LayerReader          # read(path, layerName, attributeFilter, spatialFilterWkt)
│   │   └── LayerWriter          # write(layer, path, layerName, options)
│   ├── model/
│   │   ├── layer/               # Core data model
│   │   │   ├── OguLayer         # Layer: name, wkid, geometryType, fields, features
│   │   │   ├── OguFeature       # Feature: id, geometry (WKT), attributes
│   │   │   ├── OguField         # Field definition: name, alias, dataType, length
│   │   │   ├── OguFieldValue    # Field value with type conversion methods
│   │   │   ├── OguCoordinate    # Coordinate point (x, y, z)
│   │   │   ├── OguFeatureFilter # Functional interface for filtering
│   │   │   └── OguLayerMetadata # Extended metadata (CRS, projection, etc.)
│   │   ├── DbConnBaseModel      # PostGIS connection configuration
│   │   ├── GdbGroupModel        # FileGDB structure
│   │   ├── TopologyValidationResult
│   │   └── SimpleGeometryResult
│   └── util/
│       ├── CrsUtil              # Coordinate system management & transformation
│       ├── GeotoolsUtil         # GeoTools feature filtering
│       ├── OgrUtil              # GDAL/OGR initialization & resource management
│       ├── PostgisUtil          # PostGIS connection helpers
│       ├── ShpUtil              # Shapefile encoding & field name handling
│       └── GdalCmdUtil          # GDAL command-line wrapper (ogrinfo)
├── geometry/
│   └── GeometryUtil             # 60+ geometry operation methods
├── exception/
│   ├── OguException             # Base checked exception
│   ├── DataSourceException      # Data source connection failures
│   ├── EngineNotSupportedException
│   ├── FormatParseException     # Format parsing failures
│   ├── LayerValidationException # Unchecked (RuntimeException)
│   └── TopologyException
└── utils/
    ├── ZipUtil                  # ZIP compress/decompress
    ├── EncodingUtil             # File encoding detection
    ├── SortUtil                 # Natural string sorting
    └── NumUtil                  # Number formatting (remove scientific notation)

Read the full file on GitHub · 408 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 · -4 lines 9d2855032aad
  2. 1mo ago Changed · +13 lines ac6d4df5fce8
  3. 1mo ago Changed · -8 lines · +85 tokens per session scan A → B 1fef2f2ea00d
  4. 1mo ago Changed · +54 lines bb883b9175ff
  5. 2mo ago First seen · 353 lines · 42 tokens per session scan A 8930eb3b2760

Subscribe to this mod's changes

opengis-utils-for-java is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 127 tokens to every session and 5,675 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

opengis-utils-for-java compared with skills from other repositories

opengis-utils-for-java next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opengis-utils-for-javaznlgis/opengis-skillsSkill8720d agoMITB127Claude 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