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

ST_AsGeoJSON returns incorrect value for empty geometry

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.9.8
    • 10.11
    • GIS
    • None
    • OpenBSD 7.5

    Description

      MariaDB [(none)]> SELECT ST_AsGeoJSON(GeomFromText('GeometryCollection EMPTY'));
      +--------------------------------------------------------+
      | ST_AsGeoJSON(GeomFromText('GeometryCollection EMPTY')) |
      +--------------------------------------------------------+
      | {"type": "GeometryCollection", "geometries":]}         |
      +--------------------------------------------------------+
      1 row in set (0.000 sec)

      Missing open square bracket for geometries array.
      Expected result:

      {"type": "GeometryCollection", "geometries":[]}

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            libertyit Rogers
            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.