Class CustomCoordinateSequence

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.locationtech.jts.geom.CoordinateSequence

    public class CustomCoordinateSequence
    extends java.lang.Object
    implements org.locationtech.jts.geom.CoordinateSequence, java.io.Serializable
    Based on: OGC 06-103r4 http://www.opengeospatial.org/standards/sfa
    See Also:
    Serialized Form
    • Constructor Detail

      • CustomCoordinateSequence

        public CustomCoordinateSequence()
      • CustomCoordinateSequence

        public CustomCoordinateSequence​(int size,
                                        int dimension)
      • CustomCoordinateSequence

        public CustomCoordinateSequence​(CoordinateSequenceDimensions dimensions,
                                        java.util.List<org.locationtech.jts.geom.Coordinate> coordinates)
      • CustomCoordinateSequence

        public CustomCoordinateSequence​(org.locationtech.jts.geom.Coordinate[] coordinates)
      • CustomCoordinateSequence

        public CustomCoordinateSequence​(double[] x,
                                        double[] y,
                                        double[] z,
                                        double[] m)
    • Method Detail

      • copy

        public CustomCoordinateSequence copy()
        Specified by:
        copy in interface org.locationtech.jts.geom.CoordinateSequence
      • getSize

        public int getSize()
      • getDimension

        public int getDimension()
        Specified by:
        getDimension in interface org.locationtech.jts.geom.CoordinateSequence
      • getMeasures

        public int getMeasures()
        Specified by:
        getMeasures in interface org.locationtech.jts.geom.CoordinateSequence
      • hasZ

        public boolean hasZ()
        Specified by:
        hasZ in interface org.locationtech.jts.geom.CoordinateSequence
      • hasM

        public boolean hasM()
        Specified by:
        hasM in interface org.locationtech.jts.geom.CoordinateSequence
      • getSpatialDimension

        public int getSpatialDimension()
      • getCoordinate

        public org.locationtech.jts.geom.Coordinate getCoordinate​(int i)
        Specified by:
        getCoordinate in interface org.locationtech.jts.geom.CoordinateSequence
      • getCoordinateCopy

        public org.locationtech.jts.geom.Coordinate getCoordinateCopy​(int i)
        Specified by:
        getCoordinateCopy in interface org.locationtech.jts.geom.CoordinateSequence
      • getCoordinate

        public void getCoordinate​(int index,
                                  org.locationtech.jts.geom.Coordinate coord)
        Specified by:
        getCoordinate in interface org.locationtech.jts.geom.CoordinateSequence
      • getX

        public double getX​(int index)
        Specified by:
        getX in interface org.locationtech.jts.geom.CoordinateSequence
      • getY

        public double getY​(int index)
        Specified by:
        getY in interface org.locationtech.jts.geom.CoordinateSequence
      • getZ

        public double getZ​(int index)
        Specified by:
        getZ in interface org.locationtech.jts.geom.CoordinateSequence
      • getM

        public double getM​(int index)
        Specified by:
        getM in interface org.locationtech.jts.geom.CoordinateSequence
      • getOrdinate

        public double getOrdinate​(int index,
                                  int ordinateIndex)
        Specified by:
        getOrdinate in interface org.locationtech.jts.geom.CoordinateSequence
      • size

        public int size()
        Specified by:
        size in interface org.locationtech.jts.geom.CoordinateSequence
      • setOrdinate

        public void setOrdinate​(int index,
                                int ordinateIndex,
                                double value)
        Specified by:
        setOrdinate in interface org.locationtech.jts.geom.CoordinateSequence
      • toCoordinateArray

        public org.locationtech.jts.geom.Coordinate[] toCoordinateArray()
        Specified by:
        toCoordinateArray in interface org.locationtech.jts.geom.CoordinateSequence
      • expandEnvelope

        public org.locationtech.jts.geom.Envelope expandEnvelope​(org.locationtech.jts.geom.Envelope env)
        Specified by:
        expandEnvelope in interface org.locationtech.jts.geom.CoordinateSequence
      • clone

        @Deprecated
        public CustomCoordinateSequence clone()
        Deprecated.
        Specified by:
        clone in interface org.locationtech.jts.geom.CoordinateSequence
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCoordinateText

        public java.lang.String getCoordinateText​(int index)
      • findCoordinateSequenceDimensions

        public static final CoordinateSequenceDimensions findCoordinateSequenceDimensions​(int coordinateDimension,
                                                                                          int spatialDimension)