【发布时间】:2015-09-14 12:50:49
【问题描述】:
我正在关注GeoTools documentation 并找到了这个:
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);
【问题讨论】: