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

Save Google Map Polygon cordinates in MongoDB 2dsphere Index

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.3
    • Geo
    • Ubuntu 12.04 32bit version with MongoDB 2.4.3

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: