Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1612

Geospatial: error handling of invalid polygons

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Constructing an invalid polygon (eg. with crossing loops or intersections) should throw an error. A descriptive error message should be provided. We could also consider providing a non-throwing API which provides a `is_valid()` method to check at runtime. In that case, results of a geo_within query on an invalid polygon will be undefined.

            Assignee:
            james.stone@mongodb.com James Stone
            Reporter:
            james.stone@mongodb.com James Stone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: