class LinearRing extends LineString
A LinearRing Geometry is a LineString whose first and last coordinates are the same forming a closed ring.
You can create a LinearRing with a List of List of Doubles:
LinearRing l = new LinearRing([[111.0, -47],[123.0, -48],[110.0, -47], [111.0, -47]])
Or you can create a LinearRing wih a List of Points:
LinearRing l = new LinearRing([new Point(111.0, -47), new Point(123.0, -48), new Point(110.0, -47), new Point(111.0, -47)])
Or you can create a LinearRing with a repeated List of Doubles:
LinearRing l = new LinearRing([111.0, -47],[123.0, -48],[110.0, -47], [111.0, -47])
Or you can create a LinearRing with a repated List of Points:
LinearRing l = new LinearRing(new Point(111.0, -47), new Point(123.0, -48), new Point(110.0, -47), new Point(111.0, -47))
Constructor and description |
---|
LinearRing
(LinearRing ring) Create a LinearRing by wrapping a JTS LinearRing |
LinearRing
(java.util.List coordinates) Create a new LinearRing with a List of List of Doubles. |
LinearRing
(java.util.List<java.lang.Double>[] coordinates) Create a new LinearRing with a List of List of Doubles. |
LinearRing
(java.awt.Point[] points) Create a new LinearRing with a repeated List Points. |
Create a LinearRing by wrapping a JTS LinearRing
ring
- A JTS LinearRingCreate a new LinearRing with a List of List of Doubles.
LinearRing ring = new LinearRing([[1,2],[3,4],[4,5]]) LinearRing ring = new LinearRing([new Point(111.0, -47), new Point(123.0, -48), new Point(110.0, -47), new Point(111.0, -47)])
coordinate
- A List of List Double or a List of PointsCreate a new LinearRing with a List of List of Doubles.
LinearRing ring = new LinearRing([1,2],[3,4],[4,5])
coordinates
- A repeated List of List of DoublesCreate a new LinearRing with a repeated List Points.
LinearRing ring = new LinearRing(new Point(1,2), new Point(3,4), new Point(4,5))
points
- A repeated List of Points