Create a polgyon feature from a JTS Geometry object.
Create a polgyon feature from a JTS Geometry object.
Beware: Only use when you are certain the Geometry object is a polygon.
JTS Geometry
Create a polygon using an array of rings, the first being the exterior ring.
Create a polygon using an array of rings, the first being the exterior ring.
Each ring array is an array of two element coordinate arrays, e.g. Array(1.0, 2.0)
The top level list is the list of rings, the first inner list is a list of coordinates, and each inner list has two elements, x and y.
A list of polygon rings, represented as a list of two element lists.
The data for this feature.
Create a polygon using an array of rings, the first being the exterior ring.
Create a polygon using an array of rings, the first being the exterior ring.
Each ring array is an array of two element coordinate arrays, e.g. Array(x,y)
Create a polygon with arrays of JTS coordinate objects.
Create a polygon with arrays of JTS coordinate objects.
Coordinates of the exterior shell
Interior holes represented by array of coordinate arrays
The data of this feature
Create a polygon with an array of JTS Coordinate objects.
Create a polygon with an array of JTS Coordinate objects.
Coordinates of the polygon exterior
The data of this feature
Create a polygon using a one-dimensional array with alternating x and y values.
Create a polygon using a one-dimensional array with alternating x and y values.
Array of alternating x and y values
The data of this feature
Create a polygon using a list of tuples.
Create a polygon using a list of tuples.
This method is not very efficient -- use only for small polygons.
Seq of (x,y) tuples
The data of this feature
Create a polgyon feature from a JTS Polygon object.
Create a polgyon feature from a JTS Polygon object.
JTS Polygon object
The data of this feature
Create an empty polygon feature with data.
Create an empty polygon feature with data.
The data of this feature
Create an empty polygon feature.