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

    Details

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

      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.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 850775

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

              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: