GeoJSON Without Conversion In Oracle Spatial 23c
In Oracle 23c you can store and query GeoJSON directly without conversion between JSON/GeoJSON and SDO_GEOMETRY. Oracle 23c also ensures better compatibility with GIS applications like PostGIS, ArcGIS, QGIS and web-based mapping tools. In the previous version,you should manually convert GeoJSON to SDO_GEOMETRY for inserting, and when you had a query required extracting SDO_GEOMETRY and manually converting it back to GeoJSON. For example in Oracle 19c : πFor Insert GeoJSON Data, you should First Convert it to SDO_GEOMETRY INSERT INTO My_Geospatial_Table (id, geom) VALUES ( 1, SDO_GEOMETRY( 2001, 4326, SDO_POINT_TYPE(-122.4194, 37.7749, NULL), NULL, NULL ) ); π And when you Query Data you should Convert it Back to GeoJSON SELECT '{"type": "Point", "coordinates": [' || geom.sdo_point.x || ',' || geom.sdo_point.y || ']}' AS geojson FROM...