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

Support decoding of GeoJSON objects

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: Codecs
    • Labels:
      None
    • Sprint:
      JVM Sprint 38, JVM Sprint 39

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ross.lawley Ross Lawley
              Reporter:
              jeff.yemin Jeffrey Yemin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: