jts
CommunityRobust 2D geometry operations for Java GIS
System Documentation
What problem does it solve?
JTS provides a reliable, high-performance Java implementation of 2D vector geometry and topology operations to eliminate brittle custom geometry code and inconsistent spatial results in GIS applications. It addresses the need for correct topological predicates, robust overlay operations, and standardized geometry I/O so developers can focus on application logic rather than numerical and topology edge cases.
Core Features & Use Cases
- Geometry model and creation: points, line strings, polygons, multi-geometries, and geometry collections for programmatic spatial data construction.
- Spatial predicates and topology: DE-9IM relations, contains/within/intersects/touches/crosses/overlaps, and prepared geometries for high-performance repeated queries.
- Robust geometry operations: intersection, union, difference, symmetric difference, buffer, convex hull, centroid, and topology-preserving simplification, including OverlayNG for robust overlay results.
- Spatial indexing and queries: STRtree and Quadtree for fast spatial searches and nearest-neighbour queries in batch and streaming scenarios.
- Format I/O and interoperability: WKT, WKB, and GeoJSON readers/writers for database and application integration.
- Typical use cases include geofencing and point-in-polygon checks, buffering and proximity analysis, geometry validation and repair, bulk spatial joins and overlay analysis, and conversion between geometry formats for storage or APIs.
Quick Start
Create a GeometryFactory, use a WKTReader to parse your WKT string into a Geometry, and then call spatial methods such as intersection or contains for analysis.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: jts Download link: https://github.com/znlgis/opengis-skills/archive/main.zip#jts Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.