Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3646

GeoJSON Geometry codecs only accept positions as doubles

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12.3, 4.0.2
    • Affects Version/s: None
    • Component/s: Codecs
    • None

      The GeoJSON spec says that positions should be decimal values.
      And the java driver correctly expects a BsonDouble .
       
      However, mongod, allows one to index geometries with integer positions when a geo spatial index is defined.
       
      I am not convinced that it should be okay to deserialize integral positions, but assuming one has them indexed in mongo, they won't be able to use codecs to read them. 

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: