mongodb - Mongo malformed geo-query with MultiPolygon -


i'm using $geowithin on large list of geographic regions, defined in geojson. of these regions polygons, , multipolygons.

multipolygons fail, non-descript malformed geo query error. after experimenting repl, found can't mongo take multipolygon.

this minimal example:

{     "type" : "multipolygon",     "coordinates" : [         [             [                 [ 9.560016, 42.152492 ],                 [ 8.746009, 42.628122 ],                 [ 9.390001, 43.009985 ],                 [ 9.560016, 42.152492 ]             ]         ]     ] } 

geojsonlint says it's fine, , shows me triangle in map, mongo won't take it.

how malformed?


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -