Tip #1 – Extracting the Spatial Extent of an Image and Saving in a Drawing

This tip comes from a question Atelier Cassini asked on the Directions Magazine discussion list. He writes: “I would like to create a box drawing around an image. Do I need to know the exact dimension of that image or can I draw it automatically?” While one cannot do this automatically, one can use aRead More

Layer_GTypes for spatial indexes

It is common practice, when storing single point data in an sdo_geometry to always use its SDO_POINT structure and not the SDO_ORDINATES array. When indexing point data, for performance reasons, the use of the layer_gtype=point parameter is always recommended. So, if I have sdo_geometry objects constructed as follows: MDSYS.SDO_GEOMETRY(2001,NULL,MDSYS.SDO_POINT_TYPE(1,2,NULL),NULL,NULL) inside a table/column (say called “my_points”/”geometry”),Read More

Unpacking USER_SDO_GEOM_METADATA’s DIMINFO structure using SQL

Unpacking user_sdo_geom_metadata’s diminfo object. Objects in Oracle require special handling when querying. Firstly, Oracle says that, when querying something that contains an object, and you want to access one of the object’s elements (or fields), use of a table alias in a DML query is required. So, let’s say we want to discover all possibleRead More

Forcing an Sdo_Geometry object to contain only points, lines or areas

Data quality in databases means using the power of the database’s referential integrity functionality to ensure that data is correct regardless as to what client is creating, updating or deleting data. One common requirement for spatial data in Oracle is to be able to ensure that the values of an sdo_geometry column in a tableRead More

What people say about me or my work…

Keywords testimonials Summary Testimonials, or what customers say about my work. Please note that the testimonials on this page are the personal views of the named people and may not an official view of the organisations they work for. Simon Danish Police The work Anette Rosengard Poulsen refers to below concerns the rebuilding of theirRead More