Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-333

Don't run GeoJSON Demo on server < 2.6

      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.
      

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: