Skip to content

Instantly share code, notes, and snippets.

@sigon426
Last active December 26, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigon426/7171837 to your computer and use it in GitHub Desktop.
Save sigon426/7171837 to your computer and use it in GitHub Desktop.
> mongo
> use geospatial
switched to db geospatial
> db.geometrias.find()
> db.geometrias.insert({geo: {type: "Polygon",coordinates: [[ [2.1849489212036133, 41.38680675397411], [2.1849489212036133, 41.39039671055913], [2.1898841857910156, 41.39039671055913], [2.1898841857910156, 41.38680675397411],[2.1849489212036133, 41.38680675397411] ]] }})
> db.geometrias.insert({geo: {type: "Polygon",coordinates: [[ [2.186858654022217, 41.389913768298356], [2.186858654022217, 41.392392833843616], [2.194089889526367, 41.392392833843616], [2.194089889526367, 41.389913768298356], [2.186858654022217, 41.389913768298356] ]] }})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment