Support decoding of GeoJSON objects

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Codecs
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the GeoJson class hierarchy can be encoded, but not decoded. See com.mongodb.client.model.geojson.codecs.PointCodec for example, in which encode is implemented, but not decode. Basically this means that you can insert or query for data using this class hierarchy, but that's about it.

      This makes sense currently because the driver doesn't support decoding to POJOs natively yet. But when we do it would be nice to be able to handle POJO's like:

      public class MyPOJO {
         private Point myPoint;
         private List<Point> yourPoints;
      
         ...
      }
      

      For that to work we'll need to implement the decode methods in all the GeoJSON codecs.

            Assignee:
            Ross Lawley
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: