CSV の行を GeoJSON オブジェクトに変換したい。私はCSVReaderを使用しています。したがって、 nextLine[] にはすべての分離されたトークンがあります。さまざまな属性が格納されている BasicDBObject を作成したいと考えています。私は次の方法でそれをやっています。
new BasicDBObject("attribute1",nextLine[0]).append("attribute2",nextLine[1])
私が達成したいのは、MongoDB { attribute1: name attribute2: address location:{ type : "Point" , coordinate : [lat, long] } attrribute3: phonenumber } でこのようなドキュメントを作成することです BasicDBObject を使用してこれを行うにはどうすればよいですか?enter code here