Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23146

Enhance geoparser error messages

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • Geo, Querying
    • Fully Compatible

    Description

      Currently, most of the parsing errors in geoparser.cpp assume the user already knows what the problem is. For example:
      "GeoJSON coordinates must be an array of coordinates" (without saying what the actual erroneous type is)
      "Point must only contain numeric elements" (without saying what the actual type of the provided element was)
      "Coordinates of polygon must be an array" (etc)
      "MultiPolygon coordinates must be an array"

      In order to make problem diagnosis easier, we should provide as much context as possible in these error strings.

      Attachments

        Activity

          People

            emily.wang@mongodb.com Emily Wang (Inactive)
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: