public class PointCollectionFactory extends Object
PointSequence
s.Constructor and Description |
---|
PointCollectionFactory() |
Modifier and Type | Method and Description |
---|---|
static PointSequence |
create(double[] coordinates,
DimensionalFlag dimensionalFlag,
CrsId crsId)
Creates a
PointSequence from a coordinate array. |
static PointCollection |
create(PointCollection[] pointCollections)
Creates a
PointCollection from the specified array of PointCollection s. |
static PointSequence |
createEmpty()
Creates an empty
PointSequence . |
public static PointSequence createEmpty()
PointSequence
.PointSequence
public static PointSequence create(double[] coordinates, DimensionalFlag dimensionalFlag, CrsId crsId)
PointSequence
from a coordinate array.
The coordinate array is copied to the new PointSequence
.
coordinates
- the coordinates of the new PointSequence
.dimensionalFlag
- the dimensions for the new PointSequence
PointSequence
with the specified coordinates and having the specified DimensionalFlag
.public static PointCollection create(PointCollection[] pointCollections)
PointCollection
from the specified array of PointCollection
s.
If the specified PointCollection
array is null or empty, an empty PointSequence
will be created; otherwise a ComplexPointCollection
.
pointCollections
- the PointCollection
to create the PointCollection
fromPointCollection
Copyright © 2015 geolatte.org. All rights reserved.