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

ST_CROSSES returns different result than Mysql for 2 linestrings

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5, 10.6, 10.11, 11.2(EOL), 11.4, 11.6(EOL)
    • 10.5, 10.6, 10.11, 11.4
    • GIS
    • None

    Description

      MariaDB [test]> SELECT ST_CROSSES( ST_GEOMFROMTEXT('LINESTRING( 0 0, 1 1)'), ST_GEOMFROMTEXT(' LINESTRING( 0 0, 1 3 )') )a;
      +------+
      | a    |
      +------+
      |    1 |
      +------+
      1 row in set (0,001 sec)
      
      

      mysql and postgis return 0:

      mysql> SELECT ST_CROSSES( ST_GEOMFROMTEXT('LINESTRING( 0 0, 1 1)'), ST_GEOMFROMTEXT(' LINESTRING( 0 0, 1 3 )') )a;
      +------+
      | a    |
      +------+
      |    0 |
      +------+
      1 row in set (0,00 sec)
      

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            alice Alice Sherepa
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.