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

LP:855323 - ST_AREA returns different results on two equivalent multipolygons

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.3.9
    • Fix Version/s: 5.3.13, 5.5
    • Component/s: None
    • Labels:

      Description

      The following 2 polygons appear equivalent when graphed with a GUI application:

      MULTIPOLYGON (
        ((4 6, 4 7.14285714285714, 8 6, 4 6), (8 6, 9 9, 9 6, 8 6)), 
        ((4 7.14285714285714, 1 8, 4 8.375, 4 7.14285714285714)), 
        ((4 8.375, 4 9, 9 9, 4 8.375))
      )
      
      
      MULTIPOLYGON (
        ((9 9, 4 8.375, 4 9, 9 9)), 
        ((4 7.14285714285714, 1 8, 4 8.375, 4 7.14285714285714)), 
        ((4 7.14285714285714, 8 6, 4 6, 4 7.14285714285714)), 
        ((8 6, 9 9, 9 6, 8 6))
        )
      

      And yet ST_AREA() returns different results for them. Same is observed in PostGIS, and it seems incorrect.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 855323

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

              People

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

                Dates

                • Created:
                  Updated: