node.js - Getting [[null]] in nested coordinates array -
i have mongoose schema this:
l:{ type: { type: string }, coordinates: { type: array } }
and i'm looking points , polygons in db coordinates problem comes polygons, example result:
_id: n26608798 -> coordinates: [-4.4991265,36.6750467] _id: n1753741872 -> coordinates: [-4.498763,36.6717949] _id: w93748323 -> coordinates: [[null]]
the last result polygon , [[null]]
should this:
[ [ [-4.4948252,36.6770003], [-4.4948708,36.6770321], [-4.4945418,36.6773356], [-4.4944965,36.6773035], [-4.4947042,36.6771119], [-4.4947491,36.6770705], [-4.4948252,36.6770003] ] ]
what i'm doing wrong?
fixed. problem eval()
using above :/
Comments
Post a Comment