Writing xSV (eg csv) files from within the Oracle database using Java and PL/SQL

My EXPORTER package + Java code has a function called WriteDelimitedTextfile that can be used to export any SQL SELECT statement to disk using Oracle database’s DBMS_JOB or DBMS_SCHEDULER. Yes, you can export to disk via pure PL/SQL but I have added this function to my EXPORTER to create an integrated solution for exports thatRead More

RandomSearchByExtent: Random Search Procedure (2008 Spatial)

I have had the need, over the years, to produce statistics that helped me decide how effective a change to a property of a spatial table or index might be. For example, with SQL Server 2008’s Spatial Index, for most sites, setting the right properties to get the best performance is a trial and errorRead More

Geometry Snapping using JTS in Oracle

In my exploration of the possibilities of using Java Topology Suite’s (JTS) robust algorithms with Oracle SDO_GEOMETRY I have moved to expose three methods within JTS’s GeometrySnapper (com.vividsolutions.jts.operation.overlay.snap) class: snap – Snaps two geometries to each other with both being able to move. snapTo – Snaps the vertices of the source geometry to the verticesRead More

Exposing JTS’s MinimumBoundingCircle functionality

Today I decided to expose the Java Topology Suite’s (JTS) MinimumBoundingCircle functionality via the Spatial Companion For Oracle (SC4O) installer and package. The MinimumBoundingCircle PL/SQL wrappers I have created are: Here are some examples. Now let’s test and visualise some lines and circles. Which look like: 1. Line !http://www.spatialdbadvisor.com/images/134.png! 2. Rectangle !http://www.spatialdbadvisor.com/images/135.png! I hope thisRead More