Class Line

  • All Implemented Interfaces:
    Geometry
    Direct Known Subclasses:
    LinearRing

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

      • EMPTY

        public static final Line EMPTY
    • Constructor Detail

      • Line

        protected Line()
      • Line

        public Line​(double[] lats,
                    double[] lons)
    • Method Detail

      • length

        public int length()
      • getLat

        public double getLat​(int i)
      • getLon

        public double getLon​(int i)
      • getLats

        public double[] getLats()
      • getLons

        public double[] getLons()
      • isEmpty

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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