OGU4J - OpenGIS Utils for Java

Read and write geospatial data across Shapefile, GeoJSON, PostGIS, and FileGDB formats.

5|1|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/znlgis/opengis-utils-for-java --skill ogu4j-opengis-utils-for-java
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: OGU4J - OpenGIS Utils for Java
Source: https://github.com/znlgis/opengis-utils-for-java/tree/main
Command: npx skills add https://github.com/znlgis/opengis-utils-for-java --skill ogu4j-opengis-utils-for-java

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires org.locationtech.jts:jts-core, com.esri.geometry:esri-geometry-api, org.gdal:gdal, org.geotools:gt-main, org.geotools:gt-api, org.geotools:gt-referencing, org.geotools:gt-shapefile, org.geotools:gt-geojson, org.geotools.jdbc:gt-jdbc-postgis, org.geotools:gt-epsg-hsql, org.geotools:gt-cql, org.projectlombok:lombok, cn.hutool:hutool-all, com.alibaba.fastjson2:fastjson2, net.lingala.zip4j:zip4j, com.fasterxml.jackson.core:jackson-core, junit:junit, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies complex GIS data operations by providing a unified Java toolkit that abstracts away the complexities of underlying GIS libraries like GeoTools and GDAL.

Core Features & Use Cases

  • Unified Data Access: Read and write GIS data across various formats (Shapefile, GeoJSON, PostGIS, FileGDB) using a consistent API.
  • Advanced Geometry Operations: Perform over 60 types of geometric analyses and transformations.
  • Coordinate System Management: Easily handle coordinate reference systems, including CGCS2000, and perform transformations.
  • Use Case: A developer needs to convert a Shapefile to a GeoJSON format, reproject it to a different coordinate system, and then buffer all features by 100 meters. This Skill can accomplish this entire workflow efficiently.

Quick Start

Use the OGU4J skill to read a Shapefile from '/path/to/input.shp' and write it to '/path/to/output.geojson'.

Frequently Asked Questions about OGU4J - OpenGIS Utils for Java

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

FAQPage Schema
How do I convert a Shapefile to GeoJSON and reproject it using Java?

To convert a Shapefile to GeoJSON and reproject it in Java, use the OGU4J unified GIS toolkit to read, transform coordinate systems, and write output across formats. It abstracts GeoTools and GDAL complexities into a consistent API.

Can I use GeoTools and GDAL together for geometry operations in Java?

Yes, you can use GeoTools and GDAL together for geometry operations in Java through a dual-engine architecture. This approach abstracts underlying GIS libraries to perform over 60 types of geometric analyses and transformations efficiently.

What is the best way to handle PostGIS and FileGDB data access in Java?

The best way to handle PostGIS and FileGDB data access in Java is using a unified GIS toolkit that provides consistent read and write APIs. This abstracts away complexities of underlying libraries like ESRI Geometry API and GeoTools.

Does Java support CGCS2000 coordinate system transformations for geospatial data?

Java supports CGCS2000 coordinate system transformations through specialized GIS toolkits utilizing GeoTools referencing. This enables easy handling and transformation of coordinate reference systems for geospatial data processing.

How do I perform complex geometry buffering on geospatial features in Java?

To perform complex geometry buffering on geospatial features in Java, utilize a unified GIS toolkit supporting advanced geometry operations. It can buffer features by specified distances while managing coordinate transformations across formats.

Why use a unified API instead of directly calling JTS and ESRI geometry libraries?

Using a unified API instead of directly calling JTS and ESRI geometry libraries simplifies complex GIS data operations by providing a consistent interface. This avoids dealing with disparate library complexities for format reading, writing, and processing.