Circular Arcs in Geodetic Polygons

A customer presented me with an interesting problem. For some reason, a geodetic polygon object (4283) had been created within their database. (Probably an external application that supports circular arcs in geodetic polygons – SQL Server 2012 does.) The problem then was that the polygon needed to be transformed (projected) to a planar SRID. ValidatingRead More

Some SDO_GEOMETRY/DIMINFO handling functions

While at my current contract employer, two functions were required to handle the conversion of DIMINFO SDO_LB/SDO_UB ranges to optimised rectangles (SDO_GEOMETRY) and the reverse. Note: GeoRaptor provides such capability for selected DIMINFO objects or to convert a map extent to its equivalent DIMINFO structure. The functions, written in PL/SQL are: ST_Diminfo2Rectangle ST_Geom2Diminfo The definitionRead More

Book: “Applying And Extending Oracle Spatial”

Folks, On Sunday 30th September 2013 a book I designed and then co-wrote with Dr Siva Ravada (Director Development, Oracle Spatial) was released by PACKT publishing. The book is called Applying and Extending Oracle Spatial. The book is also available at Amazon A lot of the ideas I have expressed on this website over theRead More

Building Polygons from Incomplete Linestrings using ST_PolygonBuilder

The ST_PolygonBuilder function in the Spatial Companion for Oracle (SC4O) package provides a mechanism via which linestring can be compiled into polygons. I have given some simple examples in a post I made a few years ago. I will now give a much more complex example that I wrote in response to a request onRead More

Intersecting two aggregated polygon layers with SC4O

Someone downloaded my Spatial Companion for Oracle (SC4O) package the other day, then asked asked the following question(s): I have to calculate the intersection between two regions on a map. Each region is represented in the db as a >column in different tables. For now I have two columns of polygons one with 1500 entriesRead More

Update Triggers and SDO_GEOMETRY Equality

It is not uncommon to want to construct BEFORE INSERT row level triggers that detect and process changes to SDO_GEOMETRY columns and assign other column values. However, the rules that govern the comparison of objects such as numbers, dates, strings etc do not apply to complex objects such as SDO_GEOMETRY. As such, to correctly detectRead More