Class ExtendedCoordinateSequenceFactory

    • Method Detail

      • create

        public CoordinateSequence create​(Coordinate[] coordinates)
        Returns an ExtendedCoordinateSequence based on the given array -- the array is used directly if it is an instance of ExtendedCoordinate[]; otherwise it is copied.
        Specified by:
        create in interface CoordinateSequenceFactory
        Parameters:
        coordinates - the coordinates
      • create

        public CoordinateSequence create​(int size,
                                         int dimension,
                                         int measures)
        Description copied from interface: CoordinateSequenceFactory
        Creates a CoordinateSequence of the specified size and dimension with measure support. For this to be useful, the CoordinateSequence implementation must be mutable.

        If the requested dimension or measures are larger than the CoordinateSequence implementation can provide, then a sequence of maximum possible dimension should be created. An error should not be thrown.

        Specified by:
        create in interface CoordinateSequenceFactory
        Parameters:
        size - the number of coordinates in the sequence
        dimension - the dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored)
        measures - the number of measures of the coordinates in the sequence (if user-specifiable, otherwise ignored)