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

Following the RFC, Position should be a list of double, not an object containing a list of double

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.9.1
    • Component/s: Codecs
    • Labels:
      None

      When decoding a Geometry, I end up having this structure from Mongo Geometry codecs: 

       

      "geometry": { "coordinates": [ { "values": [ -4.7953494, 37.9414098 ] }, { "values": [ -4.7954192, 37.9415325 ] }, { "values": [ -4.7956498, 37.9416594 ] }, { "values": [ -4.7958376, 37.9418286 ] }, { "values": [ -4.7960897, 37.9419851 ] }, { "values": [ -4.7963418, 37.9421586 ] }, { "values": [ -4.7966208, 37.9422136 ] }, { "values": [ -4.7970285, 37.9422982 ] }, { "values": [ -4.7973343, 37.9423701 ] }, { "values": [ -4.7975381, 37.9424886 ] }, { "values": [ -4.7976929, 37.9425605 ] }, { "values": [ -4.7980102, 37.9424463 ] } ], "type": "LINE_STRING" }
      

       

       

      When I more expecting this: 

       

      "geometry": {
                  "coordinates": [
                       [
                              -4.7953494,
                              37.9414098
                          ]
                      ,
                       [
                              -4.7954192,
                              37.9415325
                          ]
                      ,
                       [
                              -4.7956498,
                              37.9416594
                          ]
                      ,
                       [
                              -4.7958376,
                              37.9418286
                          ]
                      ,
                       [
                              -4.7960897,
                              37.9419851
                          ]
                      ,
                      [
                              -4.7963418,
                              37.9421586
                          ]
                  ],
                  "type": "LINE_STRING"
              }
      

      Following the RFC:

      https://tools.ietf.org/html/rfc7946#section-3.1.1

            Assignee:
            Unassigned Unassigned
            Reporter:
            jderuere Julien Deruere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: