[JAVA-1664] Add GeoJson object model and Filters support for geoWithin/geoIntersects/near/nearSphere Created: 26/Feb/15  Updated: 07/Oct/15  Resolved: 22/Apr/15

Status: Closed
Project: Java Driver
Component/s: API, Query Operations
Affects Version/s: None
Fix Version/s: 3.1.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
  • Support the GeoJSON object model with enough functionality for use as query filters
    • Support Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection
    • Support alternative Coordinate Reference System (CRS)
    • Support for n-dimensonal positions (even though currently the server supports only longitude/latitude
    • No support for bbox or extra fields (as neither is required for query filters)
  • Add Codec implementations for all GeoJSON object model classes
    • No support needed yet for decoding, as there is currently no way to specify that a given field is a GeoJSON geometry type
  • Support new Filters factory methods:
    • geoWithin (including $box, $polygon, $center, and $centerSphere)
    • geoIntersects
    • near
    • nearSphere


 Comments   
Comment by Jeffrey Yemin [ 07/Oct/15 ]

Released in 3.1.0

Comment by Githook User [ 22/Apr/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Added GeoJson object model with enough functionality for use as query filters
Added GeoJson object model codecs (with only encoding support initially)
Added geoWithin and geoIntersects factory methods to Filters class
Added near and nearSphere factory methods to Filters class
Added geoWithinBox, geoWithinPolygon, geoWithinCenter, and getWithinCenterSphere factory methodsto Filters class
Added GeoJsonCodecProvider to default codec registry in com.mongodb.MongoClient and com.mongodb.async.client.MongoClientImpl

JAVA-1664
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0831e9bc5a09d0e15fce268ec9210060ba27f4c7

Generated at Thu Feb 08 08:55:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.