Class Line

  • All Implemented Interfaces:
    Geometry
    Direct Known Subclasses:
    LinearRing

    public class Line
    extends Object
    implements Geometry
    Represents a Line on the earth's surface in lat/lon decimal degrees and optional altitude in meters.
    • Field Detail

      • EMPTY

        public static final Line EMPTY
    • Constructor Detail

      • Line

        protected Line()
      • Line

        public Line​(double[] x,
                    double[] y)
      • Line

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

      • length

        public int length()
      • getY

        public double getY​(int i)
      • getX

        public double getX​(int i)
      • getZ

        public double getZ​(int i)
      • getY

        public double[] getY()
      • getX

        public double[] getX()
      • getZ

        public double[] getZ()
      • getLat

        public double getLat​(int i)
      • getLon

        public double getLon​(int i)
      • getAlt

        public double getAlt​(int i)
      • getLats

        public double[] getLats()
      • getLons

        public double[] getLons()
      • getAlts

        public double[] getAlts()
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Geometry
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • hasZ

        public boolean hasZ()
        Specified by:
        hasZ in interface Geometry