jts
jts copied to clipboard
The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Setting the high bit of the wkbType word in case of 3D geometry does not work with SpatiaLite. According to [wikipedia](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) the presence of 3D coordinates should be indicated by...
There is one decimal less than expected in geometries coordinates when WKTReader is used with a PrecisionModel. For exemple this code: ``` GeometryFactory geofactory = new GeometryFactory(new PrecisionModel(10000000)); Point point1...
TestCode ``` String wkt1 = "POLYGON((1 1,1 3,1.9994 3,2.0006 2,1.9994 1,1 1))"; String wkt2 = "POLYGON((2.0003 1,2.0003 3,3 3,3 1,2.0003 1))"; Geometry geom1 = new WKTReader().read(wkt1); Geometry geom2 = new...
Given this linework ... MULTILINESTRING ((100 100, 200 100, 200 200, 100 200, 100 100), (120 180, 180 180, 180 120, 120 120, 120 180)) ... I would expect a...
Adding the point to the graph instead of doing nothing fix the problem with LineString.intersects in case of 0-length linestring. LineString.touches with a 0-length geometry still does not return the...
This PR implements a third variant of the PackedCoordinateSequence implementations named Double2 for lack of a better name. This variant explicitly uses three arrays (XY, Z and M respectively) instead...
The `WKBWriter` constructor expects output dimension (e.g. `new WKBWriter(dimension, ByteOrderValues.LITTLE_ENDIAN, true)`) and it has to be either 2 or 3. However, `Geometry#getDimension` is not appropriate to use here. Is there...
It would be great if OverlayNG worked for for all valid/simple inputs, including GeometryCollections with heterogeneous dimensions.
Take care of z ordinate in LineSegment. Also benefits Densifier which can now interpolate z values. A hasZ() method has been added in different coordinates implementation : it is not...
A long-standing confusion in the JTS `Geometry `class is that `Geometry.equals(Geometry)` has the semantics of **topological-equality**, rather than **exact-equality** (which is more usual for Java). This impacts using JTS in...