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

GeoJson accepts invalid data

    XMLWordPrintable

Details

    Description

      Hi,

      I found that even if the input data of GeoJSON is invalid, it still accept it. There are two examples:

      SELECT ST_ASTEXT(ST_GeomFromGeoJSON('{"type":"LineString","coordinates":[[1,2]]}')); -- LINESTRING(1 2), expect error
      SELECT ST_ASTEXT(ST_GeomFromGeoJSON('{"type":"Polygon","coordinates":[[[1,1],[2,2],[1,1]]]}')); -- POLYGON((1 1,2 2,1 1)), expect error
      

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              ChiZhang Chi Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.