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

GeoJSON Geometry codecs only accept positions as doubles

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.12.3, 4.0.2
    • None
    • Codecs
    • None

    Description

      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. 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: