Note that the factory constructor methods do not change the input coordinates in any way. In particular, they are not rounded to the supplied PrecisionModel. It is assumed that input Coordinates meet the given precision.
Instances of this class are thread-safe.
List to an array.
List of Points to convert
List in array format
List to an array.
Geometry's to convert
List in array format
List to an array.
List of LinearRings to convert
List in array format
List to an array.
List of LineStrings to convert
List in array format
List to an array.
List of Polygons to convert
List in array format
List to an array.
List of MultiPolygons to convert
List in array format
List to an array.
List of MultiLineStrings to convert
List in array format
List to an array.
List of MultiPoints to convert
List in array format
If the Envelope is:
Envelope to convert
Point (for null
Envelopes), a
Point (when min x = max x and min y = max y) or a
Polygon (in all other cases)
null
null
null
null or empty CoordinateSequence creates an empty MultiPoint.
null
Polygon with the given exterior boundary and interior boundaries.
Polygon, or
null or an empty
LinearRing if the empty geometry is to be created.
Polygon, or
null or empty
LinearRing s if the empty geometry is to be created.
Polygon with the given exterior boundary.
Polygon, or
null or an empty
LinearRing if the empty geometry is to be created.
Polygon with the given exterior boundary.
Polygon, or
null or an empty
LinearRing if the empty geometry is to be created.
Polygon with the given exterior boundary.
Polygon, or
null or an empty
LinearRing if the empty geometry is to be created.
Geometry,
MultiGeometry, or
GeometryCollection to contain the
Geometrys in it. For example:
geomList contains a single Polygon, the Polygon is returned. geomList contains several Polygons, a MultiPolygon is returned. geomList contains some Polygons and some LineStrings, a GeometryCollection is returned. geomList is empty, an empty GeometryCollection is returned Geometrys to combine
Geometry of the "smallest", "most type-specific" class that can contain the elements of
geomList .
This is a convenient way to change the CoordinateSequence used to represent a geometry, or to change the factory used for a geometry.
Geometry.copy() can also be used to make a deep copy, but it does not allow changing the CoordinateSequence type.