GSE3425N Polygon intersects itself.
Explanation
A ring of a polygon cannot intersect itself. The start and end points on each ring of the polygon must be reached twice when traversing the ring. All other points must only be reached once. This holds true also for the line segments that define the rings of the polygon.
The scale factors of the spatial reference system that is used to represent the geometry influences the precision that applies to the coordinates. Rounding operations performed when the geometry is converted to the representation in the spatial reference system might cause a loss in precision and, subsequently, this error.
User response
Construct a valid polygon in which the rings do not intersect themselves.
Refer to the IBM® Spatial Support for Db2® for z/OS® catalog view DB2GSE.ST_SPATIAL_REFERENCE_SYSTEMS for the scale factor used for the spatial reference system in which the geometry will be represented.
msgcode: -3425
sqlstate: 38SSP