Do you need a LinearRing to create a polygon in JTS?

Do you need a LinearRing to create a polygon in JTS?

JTS is 2D. Coordinate objects have a third field but it is always NaN. Coordinate is not a Geometry in JTS. Point would be and it only has x and y. Yes, bugmenot123 is right, with the current version of JTS you don’t need to create a linearRing to create a polygon, a simple createPolygon is enough.

Which is the canonical form for geometry in JTS?

The SFS does not specify an unambiguous representation of a given point set returned from a spatial analysis method. One goal of JTS is to make this specification precise and unambiguous. JTS uses a canonical form for Geometry s returned from overlay methods. The canonical form is a Geometry which is simple and noded:

Why are geometrycollections not supported in JTS core?

If the result is heterogeneous a GeometryCollection will be returned. Because it is not clear at this time what semantics for set-theoretic methods involving GeometryCollection s would be useful, GeometryCollections are not supported as arguments to the set-theoretic methods.

How to test if a geometry is topologically equal?

Returns the minimum distance between this Geometry and another Geometry. Tests whether this geometry is topologically equal to the argument geometry. Tests whether this geometry is structurally and numerically equal to a given Object.

How to create a buffer around a polygon shape in Java?

Essentially what we are looking to do here is split each edge into its own distinct LineString. I have accomplished this by exporting the Polygon as GeoJson, and then using a Java snippet to loop through each of the GeoJson coordinates and package each pair of coordinates into a WKT LineString.

How to create offset curves for polygons in Java?

Creating Offset Curves – for each edge of the Polygon, draw a line that is parallel and the same length as the edge, but falls outside of the original Polygon (these lines will be referred to as Offset Curves). Take the Concave Hull of all of the Offset Curves – the Convex Hull will look like an enlarged version of our original Feature.

Is the boundary ring of a polygon closed?

The boundary rings of the polygon may have any orientation. Polygons are closed, simple geometries by definition. The polygon model conforms to the assertions specified in the OpenGIS Simple Features Specification for SQL .