Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9764

Save Google Map Polygon cordinates in MongoDB 2dsphere Index

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.3
    • Component/s: Geo
    • Environment:
      Ubuntu 12.04 32bit version with MongoDB 2.4.3

      Hi All,

      I had generated Polygon coordinates from Google map and try to save it to mongodb GEO spatial index with 2dsphere and I'm getting following error.

      "Can't extract geo keys from object, malformed geometry."

      My coordinates are as follow and I had validated it with http://geojsonlint.com/

      {"type":"Polygon","coordinates":[[[79.6728515625,8.189742344383703],[80.15625,10.09867012060338],[82.265625,6.926426847059551],[80.5078125,5.528510525692801]]]}

      Cheers

      Prabath

        1. ploygon.jpg
          10 kB
          Prabath Kumarasinghe
        2. triangle.jpg
          20 kB
          Prabath Kumarasinghe

            Assignee:
            hari.khalsa@10gen.com hari.khalsa@10gen.com
            Reporter:
            prabath321 Prabath Kumarasinghe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: