Class HorizontalPosition

    • Constructor Detail

      • HorizontalPosition

        public HorizontalPosition​(double longitude,
                                  double latitude)
        Constructs a HorizontalPosition which uses DefaultGeographicCRS#WGS84 as its co-ordinate reference system
        Parameters:
        longitude - The longitude of the position
        latitude - The latitude of the position
      • HorizontalPosition

        public HorizontalPosition​(double x,
                                  double y,
                                  org.opengis.referencing.crs.CoordinateReferenceSystem crs)
        Construct a HorizontalPosition
        Parameters:
        x - The x-value of the position
        y - The y-value of the position
        crs - The CoordinateReferenceSystem used to reference the x/y values
    • Method Detail

      • getX

        public double getX()
        Returns the x coordinate of this position
      • getY

        public double getY()
        Returns the y coordinate of this position
      • getCoordinateReferenceSystem

        public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
        Returns a two-dimensional coordinate reference system. The first coordinate in the CRS is the x coordinate; the second is the y coordinate.
        Returns:
        a two-dimensional coordinate reference system
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object