1

ポイントだけでなく、ポリゴンをベースにGISシステムを構築します。MongoDBまたはPostGISを使用したかった。

これはMongoDBでどのように行われますか?

ここに画像の説明を入力してください

クエリA-ポリゴンの中心を取得します

クエリB-2つのポリゴン間の距離

クエリC-私が指定した3分の1の一部であるポリゴンのリスト

クエリD-ポリゴンの近距離

SRIDをサポートしますか?

4

1 に答える 1

1

MongoDB's geospatial indexing currently only indexes points. Although it does support proximity and bounds queries, documents are matched by a single point. You may be able to take advantage of multi-location documents and index multiple points along a polygon, which might support some of your queries with reduced precision; however, that would certainly not be ideal.

PostGIS seems more appropriate for your requirements.

于 2012-08-29T15:58:47.660 に答える