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

Support decoding of GeoJSON objects

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.0
    • None
    • Codecs
    • None

    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

        Activity

          People

            ross@mongodb.com Ross Lawley
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: