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

LP:850775 - ST_AREA does not work on GEOMETRYCOLLECTIONs in maria-5.3-gis

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      ST_AREA returns NULL when passed a GEOMETRYCOLLECTION .

      select ST_AREA(ST_GEOMCOLLFROMTEXT(' POLYGON((0 0,4 7,1 1,0 0))'));
      returns 1.5

      select ST_AREA(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(POLYGON((0 0,4 7,1 1,0 0)))'));
      returns NULL

      postgis returns 1.5 in both cases.

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            philipstoev Philip Stoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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