[CXX-333] Don't run GeoJSON Demo on server < 2.6 Created: 10/Sep/14  Updated: 23/Oct/14  Resolved: 11/Sep/14

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: legacy-1.0.0-rc0
Fix Version/s: legacy-1.0.0-rc1

Type: Task Priority: Minor - P4
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Running against 2.4:

/mnt/jenkins/workspace/mongo-cxx-driver-legacy/compiler/clang/mongodb_version/24-release/build/install/share/mongo-cxx-driver/examples/static/geojsonExample --port 27999
connecting to localhost...
connected ok
{ "type" : "Point", "coordinates" : [ 50, 50 ] }
MULTIPOLYGON BSON:
{ "type" : "MultiPolygon", "coordinates" : [ [ [ [ 0, 10 ], [ 100, 10 ], [ 5, 5 ], [ 0, 10 ] ] ] ] }
{ "type" : "MultiPolygon", "coordinates" : [ [ [ [ 0, 10 ], [ 100, 10 ], [ 5, 5 ], [ 0, 10 ] ] ] ] }
GEO COLLECTION BSON:
{ type: "GeometryCollection", geometries: [ { type: "Point", coordinates: [ -5.0, -5.0 ] }, { type: "Point", coordinates: [ 100.0, 0.0 ] }, { type: "LineString", coordinates: [ [ 0.0, 10.0 ], [ 100.0, 10.0 ] ] } ] }
5
5
1
terminate called after throwing an instance of 'mongo::OperationException'
  what():  OperationException: { index: 0, code: 16572, errmsg: "", op: { _id: ObjectId('541092eeef7ef14faccbc759'), ns: "geotest.data", name: "loc_2dsphere", key: { loc: "2dsphere" } } }
scons: *** [examples] Error -6
scons: building terminated because of errors.



 Comments   
Comment by Githook User [ 11/Sep/14 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: CXX-333 skip GeoJSON demo on < 2.6
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/e5d1a92d4d834b8ff718d838c71ddf969a192bc1

Comment by Tyler Brock [ 10/Sep/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/152

Generated at Wed Feb 07 21:58:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.