Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3394

LP:801470 - ST_INTERSECTS() reports FALSE for touching objects in maria-5.3-gis

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      If two objects are touching, ST_INTERSECTS() reports false and ST_INTERSECTION() reports an empty value.

      By contrast, the postgis documentation says:

      Overlaps, Touches, Within all imply spatial intersection. If any of the aforementioned returns true, then the geometries also spatially intersect.

      In postgis, ST_INTERSECTS() will return TRUE and ST_INTERSECTION() will return a POINT

      examples:

      SELECT ST_CONTAINS( GeometryFromText(' POLYGON(( 1 1 , 1 9 , 9 1 , 9 9 , 1 1 )) ') , PointFromText(' POINT(1 1)' ) ) ;

      SELECT ST_INTERSECTS( GeometryFromText(' LINESTRING( 3 3 , 3 0 ) ') , PointFromText(' POINT(3 0)' ) ) ;

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 801470

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 801470

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: