IBM Support

JR29299: ST_DIFFERENCE APPEARS TO MISS REMOVING A VOID IN THE MIDDLE OF A POLYGON, WHEN COVERED BY THE SECOND POLYGON.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • This is regards to DB2 spatial extender on LUW - version 8.2
    and/or 9.1.
    The use of ST_Difference with this data is basically a square
    donut and
    is giving the wrong result.  The first polygon is the donut
    itself and
    the 2nd polygon is the 'hole' of the donut.
    
    ST_Difference appears to miss removing a void in the middle of a
    polygon, when covered by the second polygon.
    
    'polygon ((1 1, 1 3, 3 3, 3 1, 1 1), (1.5 1.5, 1.5 2.5, 2.5 2.5,
    2.5
    1.5, 1.5 1.5))'
     'polygon ((1.5 1.5, 1.5 2.5, 2.5 2.5, 2.5 1.5, 1.5 1.5))'
    
    Should return first polygon again
    
    'polygon ((1 1, 1 3, 3 3, 3 1, 1 1), (1.5 1.5, 1.5 2.5, 2.5 2.5,
    2.5
    1.5, 1.5 1.5))'
    
    Returns only the outer polygon
    
    'polygon ((1 1, 1 3, 3 3, 3 1, 1 1))?
    
    ST_Difference takes two geometries of the same dimension as
    input and
    returns that portion of the first geometry that is not
    intersected by
    the second geometry.
    
    With the case above one should return the geometry with the hole
    in it.
    

Local fix

Problem summary

  • first fixed in FP6
    

Problem conclusion

  • first fixed in FP6
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR29299

  • Reported component name

    SPATIAL EXT LIN

  • Reported component ID

    5648D6103

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-05-16

  • Closed date

    2009-03-09

  • Last modified date

    2009-03-09

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    JR29300 JR29301

Fix information

  • Fixed component name

    SPATIAL EXT LIN

  • Fixed component ID

    5648D6103

Applicable component levels

  • R910 PSY

       UP

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDP5R","label":"InfoSphere Replication Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"810","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
09 March 2009