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

ST_OVERLAPS returns true despite dim(originalInput1) ≠ dim(originalInput2)

    XMLWordPrintable

Details

    • Bug
    • Status: In Review (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5, 10.6, 10.11, 11.4
    • 10.6, 10.11, 11.4
    • GIS
    • None

    Description

      DROP table if EXISTS t1;
      DROP table if EXISTS t2;
      CREATE TABLE t1(geom geometry NOT NULL);
      CREATE TABLE t2(geom geometry NOT NULL);
      INSERT INTO t1 (geom) VALUES(ST_GeomFromText('POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))'));
      INSERT INTO t2 (geom) VALUES(ST_GeomFromText('LINESTRING (1 1, 1 2, 2 2, 2 1, 1 1)'));
       
      SELECT ST_OVERLAPS(t1.geom, t2.geom) FROM t1, t2;
      -- expected: {f}
      -- actual  : {t}
      

      The original input consists of a Polygon and a Linestring, with dimensions of 2 and 1, respectively.

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              nbvfgh Shijie Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.