3つ以上の座標からポリゴンを描画して論理ジオフェンスを設定することでジオポイントの領域を抽出しようとしていますが、LinearRingではオブジェクトを閉じるためにすべてのポイントが必要だと思います。私は何を間違っているのですか
Coordinate[] coordinates = vertices;
GeometryFactory geometryFactory = new GeometryFactory(new PrecisionModel(PrecisionModel.FIXED), 4326);
LinearRing linearRing = geometryFactory.createLinearRing(coordinates);
Polygon polygon = geometryFactory.createPolygon(linearRing, null);
setGeometry(polygon);