私はGeoToolsのドキュメントに従っていますが、これを見つけました:
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null);
Coordinate coord = new Coordinate(45, 15);
Point point = geometryFactory.createPoint(coord);
それを intellij IDE に入れると、クラスごとに使用するインポートがいくつか提案されます。どのインポートを選択する必要がありますか?
別の方法(同じ問題があります)は次のとおりです。
GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
Point point = builder.createPoint(45, 15);