geometry-api-java

Create, parse, and serialize 2D and 3D geometries in WKT, WKB, GeoJSON, and Esri JSON.

49|9|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/znlgis/opengis-skills --skill geometry-api-java
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-api-java
Source: https://github.com/znlgis/opengis-skills/tree/main/geometry-api-java
Command: npx skills add https://github.com/znlgis/opengis-skills --skill geometry-api-java

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Esri Geometry API for Java provides a self-contained spatial geometry computation library, enabling creation, parsing, serialization, and spatial relationship operations for 2D and 3D geometries without GIS dependencies.

Core Features & Use Cases

  • Self-contained geometry objects: Point, MultiPoint, Polyline, Polygon, Envelope, and SpatialReference.
  • Creation, parsing, and serialization in multiple formats including WKT, WKB, GeoJSON, and Esri JSON.
  • Spatial operations and analysis such as union, intersection, difference, distance, and geodesic calculations.
  • Lightweight integration with Java applications, Hadoop, Spark, and Hive UDFs without requiring external GIS infrastructure.

Quick Start

Add the esri-geometry-api dependency to your Java project and start using GeometryEngine for core geometry operations.

Frequently Asked Questions about geometry-api-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform spatial geometry operations in Java without external GIS dependencies?

You can perform spatial geometry operations in Java without external GIS dependencies using a self-contained library. The Esri Geometry API provides geometry creation, parsing, and spatial analysis natively in Java without requiring any external GIS infrastructure.

Can I parse and serialize WKT, WKB, and GeoJSON formats within Hadoop or Spark?

Yes, you can parse and serialize WKT, WKB, GeoJSON, and Esri JSON formats within Hadoop or Spark. The Java geometry API is specifically designed for lightweight integration with big data frameworks as UDFs.

How do I compute geodesic distances and spatial relationships in a Java application?

To compute geodesic distances and spatial relationships in a Java application, use the GeometryEngine class provided by the self-contained Java geometry API. It handles union, intersection, difference, and geodesic calculations reliably.

What is the best way to execute spatial analysis in Hive UDFs?

The best way to execute spatial analysis in Hive UDFs is using a lightweight, self-contained Java geometry library. The Esri Geometry API integrates seamlessly with Hive, enabling spatial operations without installing external GIS tools.

Does this Java geometry library support both 2D and 3D spatial computations?

Yes, this Java geometry library supports both 2D and 3D spatial computations. It provides self-contained geometry objects like Point, Polyline, and Polygon, along with their corresponding spatial reference systems for reliable calculations.