Registry / database / postgis-jdbc

postgis-jdbc

JSON →
library2025.1.1javamavenunverified

Adds support for geographic objects to the PostgreSQL object-relational database via JDBC.

<dependency> <groupId>net.postgis</groupId> <artifactId>postgis-jdbc</artifactId> <version>2025.1.1</version> </dependency>
INSTALL
IMPORT
SIG · POSTGIS-JDBC
P
postgis-jdbc
databasejavav2025.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PGgeometry
org.postgis.PGgeometry

Shows how to create a PostGIS geometry object using JDBC.

import org.postgis.PGgeometry; import org.postgis.Point; public class Example { public static void main(String[] args) throws Exception { Point point = new Point(1.0, 2.0); PGgeometry geom = new PGgeometry(point); System.out.println("Geometry: " + geom); } }
Debug
Known issues
gotchaPostGIS JDBC requires a PostgreSQL database with PostGIS extension installed.
fix
Ensure your PostgreSQL instance has the PostGIS extension enabled.
affects: *
Upgrade
Version history
2025.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
postgis-jdbc — mvn dependency:get postgis-jdbc · libregistry