Go to content Go to navigation Go to search

Featured Articles:

    Applying And Extending Oracle Spatial - Book Released
    Analyzing Spatial Query Performance Improvements in Oracle Spatial and Graph 12c Through Cross-Vendor Comparison

Newest Article:

ESRI's ST_GEOMETRY and SDO_GEOMETRY

Wednesday March 21 2018 at 11:56

The following article results from customers downloading the free source code (eg for Oracle SDO_GEOMETRY) on this site without fully understanding that the code is not for ESRI’s ST_GEOMETRY spatial type and then requesting changes to the source code to support that foreign type.

So, to be clear, all of the source code, products and examples that are made available on this website only deal with the spatial types that are provided by the main database vendors and their products.

In summary, these are supported:

At no stage has this site ever attempted to provide free code or product for ESRI’s ST_GEOMETRY implementation for these databases.

The reasons I do not support ESRI’s spatial type are as follows:

  1. I cannot afford an ESRI license that would allow me to use and develop solutions and tools for it;
  2. Access to the main database vendors’ database products is covered by free development licenses.
  3. All the main vendor spatial types are already supported in the ESRI software stack;
  4. Given my computer science training and expertise in databases, I view their extensible data types as being approximate implementations of relational domains. As such, IMHO, it is the responsibility of the database vendor to provide such extensibility in their products.
  5. Hence, IMO, ESRI’s data type is, in effect, for ESRI’S software stack and users and not for universal, ubiquitous access by any other software;
  6. The current database implementations IMHO all provide a better implementation of a spatial type system, which are tightly integrated into the architecture of the host database. For example, Oracle’s and SQL Server’s spatial types are better integrated into the Oracle kernel than any external procedure-based system.
  7. Customer and technical support is split between database vendor and ESRI (blame game);

These points are my opinion based on experience and education.

However, if one wants to use some of my code then it is possible via use of the Open GIS (OGC) WKT and WKB export/import functions. One example will suffice:

  1. -- Assume shape is an SDE.ST_GEOMETRY object...
  2. SELECT rownum AS fid,
  3.         SDE.ST_GeomFromText(
  4.            CODESYS.ST_Translate(
  5.                p_geometry=> SDO_GEOMETRY(SDE.ST_AsText(a.shape),ST_SRID(a.shape))
  6.                p_tolerance => 0.005,
  7.                p_deltaX => 200.0,
  8.                p_deltaY => 100.0
  9.                p_deltaZ => NULL,
  10.                p_mbr => NULL
  11.            ),
  12.            SDE.ST_SRID(a.shape)
  13.         ) AS movedShape
  14.   FROM <my Table> a;

Be careful with SRID values as ESRI’s and Oracle’s may not be the same.

  1. -- Oracle
  2. SELECT *
  3.   FROM cs_srs
  4.  WHERE srid = <value>;
  5. -- ESRI
  6. SELECT *
  7.   FROM sde.spatial_references
  8.  WHERE srid = <value>;

I hope this is helpful to those who find themselves in this situation.

My Services

I offer the following services to customers:

  1. Integration of GeoSpatial within IT
    Advice and guidance on how to fully integrate geospatial data and processing needs within existing, pure, IT environments (using existing GIS software or without purchasing proprietary GIS software);
  2. Independent Solutions Advice and Sanity Checking
    Solutions not Software ;
    How to efficiently and effectively solve a business requirement via existing technology;
    Does what you have been offered in a tender really stack up? Or do you want independent quality assurance of a tender document before submitting it to a customer?
    When it is best to use Open Source as against Commercial off the shelf (COTS) and vice versa?
    Is buzzword-compliant (SOA, BPEL, J2EE, .NET, WebServices…) technology really needed to solve a business problem? If so, what is the best way to achieve this?
    ;
  3. Analyzing ROI of your current GIS software technology
    Matching business problems to existing software investment. Are you getting value from your software investment? How to improve that ROI;
  4. Systems Review
    Does the solution you have been provided actually match your requirements?;
  5. Database Benchmarking:
    How well are you using your Oracle Spatial/SQL Server Spatial/PostGIS database?
    How good is your databases documentation/metadata?
    Is the integrity and quality of the data stored in your databases as good as you think?
    Is your use of Oracle (Spatial), SQL Server Spatial consistent with industry best-practice?
    Get advice on some simple “rules” to follow to improve your database!
  6. Database Consulting through design, test, build and configuration services
    Ensuring your databases reflect your needs via:
    1. Data Quality Rules Documentation, Conformance Testing, Correction and Certification;
    2. Data Conversion, Migration, Loading;
    3. Database Design;
    4. Coding of appropriate in-Database processing:
      Via design and coding services in:
      1. PL/SQL – Oracle,
      2. PL/pgSQL – PostgreSQL,
      3. T-SQLSQL Server,
      4. Java,
      5. C#.
    5. Database Performance Tuning;
    6. Spatially enabling Data Warehouses and Processes;
    7. ArcSDE Configuration and Tuning.
  7. SpatialDB Training Courses and Staff Mentoring
    Spatial SQL Training on your datasets;
    After Training support
    ;
  8. Free Software
  9. Commercial Support
    GeoRaptor
    Free PL/SQL packages
    (bug fixes, extensions and new functionality).

I have over 25 years experience with database technologies from mainframes through to personal computers. I have 25 years Oracle use and am recognised by the Oracle Spatial development team as one of the early adopters of Oracle’s Sdo_Geometry data type. In 2011 that experience was recognised when Oracle awarded me the “2011 Oracle Spatial Excellence Award for Education and Research”.

I was on the original beta program for SQL Server 2008 Spatial (aka “Katmai”). While most of my solutions work centres on Oracle, I now have quite a few years experience designing, programming, tuning and working with SQL Server. I make available over 200 TSQL functions to SQL Server Spatial users across multiple versions.

I also have the necessary PostgreSQL/PostGIS and MySQL experience to help you implement the best spatial database solution possible.

I have (next to the original designer and programmer) the longest experience of using ArcSDE in the industry and can help you get the best out of this piece of ESRI software and show you how to make it work with other spatial software (esp open source). Also, with the new ESRI Spatial Type for Oracle, PostgreSQL and SQL Server, I am in a unique position to help you plan your migrations from SDEBINARY to either the ESRI Spatial Type, SQL Server spatial or Oracle’s Sdo_Geometry.

My experience is not limited just to databases. I have managed “GIS” infrastructure management teams, designed and built systems integrating spatial processing within business systems in the areas of mapping, editing, analysis, GPS field data capture etc.

Finally, as a geospatial professional with IT and Oracle (Certified Professional SQL 10gR2; Certified Associate DBA 10gR2) qualifications and experience, I can help guide the uptake of geospatial technologies into business’s IT infrastructures.

Let me help you cost-effectively spatially-enable your enterprise.