gis

Mongo geoWithin error: Polygon coordinates must be an array

不打扰是莪最后的温柔 提交于 2020-08-10 23:17:49
问题 I have a data set with geo points. { _id ...other fields... location: { type: "Point", coordinates: [0,0]}} What I have been attempting to do is filter out and delete any documents that have points that are in water bodies. I downloaded and converted a shape file of the earth's water bodies and stored that in a separate collection in the same database. I have been trying to use Mongo's geoWithin function, but am not able to get it to work for me when I specify the water body's polygon