导出:

mongoexport --host localhost --port 27017 
--username un1 --password pwd1
--db db1 --collection col1
--out /data/col1.json
-q '{cls:{$in:['cc','out','los']},geom:{$geoIntersects:{$geometry:{"type":"Polygon","coordinates":[[[ 1, 1],[ 1, 2],[ 2, 2],[ 2, 1],[ 1, 1 ]]]}}}}'

导入:

mongoimport -d db1-c col1 col1.json

 

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2021-12-30
  • 2021-11-12
  • 2022-12-23
  • 2021-09-06
  • 2021-08-20
  • 2021-08-12
相关资源
相似解决方案