Creating a Point
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); Coordinate coord = new Coordinate(1, 1); Point point = geometryFactory.createPoint(coord);
或者WKTReader
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); WKTReader reader = new WKTReader(geometryFactory); Point point = (Point) reader.read("POINT (1 1)");
Creating a LineString
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( null ); Coordinate[] coords = new Coordinate[] {new Coordinate(0, 2), new Coordinate(2, 0), new Coordinate(8, 6) }; LineString line = geometryFactory.createLineString(coordinates);
或者WKTReader
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( null ); WKTReader reader = new WKTReader( geometryFactory ); LineString line = (LineString) reader.read("LINESTRING(0 2, 2 0, 8 6)");
Creating a Polygon
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( null ); Coordinate[] coords = new Coordinate[] {new Coordinate(4, 0), new Coordinate(2, 2), new Coordinate(4, 4), new Coordinate(6, 2), new Coordinate(4, 0) }; LinearRing ring = geometryFactory.createLinearRing( coords ); LinearRing holes[] = null; // use LinearRing[] to represent holes Polygon polygon = geometryFactory.createPolygon(ring, holes );
或者WKTReader
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( null ); WKTReader reader = new WKTReader( geometryFactory ); Polygon polygon = (Polygon) reader.read("POLYGON((20 10, 30 0, 40 10, 30 20, 20 10))");
http://docs.geotools.org/stable/userguide/library/jts/geometry.html
相关推荐
实现了2个功能:1是将数据库中坐标点表导出成矢量shape,2是将数据库中有geometry的表导出成矢量shape,都带有进度条功能
本文件为手绘少量点线面,shpfile文件,绘制工具Qgis,要素位置深圳宝安机场,内包含少量点线面,分两种坐标系,用于测试postgresql+postgis空间关系可用。其中4326适用于geography,4547适用于geometry。
Geometry点选
geojson-geometry-shp,在java中,需要三种格式数据的转化,通过pdf文件总结到一起,方便进行开发。
Computational Geometry1 David M. Mount Department of Computer Science University of Maryland Spring 2007 Copyright, David M. Mount, 2007, Dept. of Computer Science, University of Maryland, College ...
Computational Geometry: Algorithms and Applications, 3rd ed (2008), De Berg et al. Authors: Mark de Berg, Otfried Cheong, Marc van Kreveld, Mark Overmars Publisher: Springer; 3rd edition (April 16, ...
Our first knowledge of differential geometry usually comes from the study of the curves and surfaces in $I\!\!R^3$ that arise in calculus. Here we learn about line and surface integrals, divergence ...
Geometry is the mathematical discipline that deals with the interrelations of objects in the plane, in space, or even in higher dimensions. Practicing geometry comes in very different flavors. More ...
Information geometry provides the mathematical sciences with a new framework of analysis. It has emerged from the investigation of the natural differential geometric structure on manifolds of ...
Elementary Differential Geometry.pdf Barrett O'Neill
Geometry of differential forms
ST_Geometry及使用大全,ST_Geometry及使用大全,ST_Geometry及使用大全
Algebra Geometry - Griffiths
The Geometry of Syzygies
Metric Geometry.pdf
Differential Geometry of Curves and Surfaces DoCarmo經典的微分幾何 (掃描版)
自己写的一个js版本的由wkt转geometry插件,希望可以帮到您
Algorithms in Real Algebraic Geometry
SQL空间查询ST_Geometry配置 用于arcgis进行st查询的时候的数据库进行配置
ArcSDE 配置 ST_Geometry 使用 大全