Java Standalone

JDBC Spatial Example

Plain JDBC sample for creating, indexing, and querying spatial geometries in Oracle AI Database.

#Java#Spatial
What this sample helps you learn

This module demonstrates basic Oracle AI Database Spatial operations over JDBC using `oracle.spatial.geometry.JGeometry`.

Highlights

  • create a table with an MDSYS.SDO_GEOMETRY column
  • register geometry metadata and build a spatial index
  • insert point and polygon geometries with JGeometry.storeJS
  • read geometries back with JGeometry.loadJS