Class DirectPosition1D

All Implemented Interfaces:
Serializable, Cloneable, Position, Direct­Position

public class DirectPosition1D extends AbstractDirectPosition implements Serializable, Cloneable
A one-dimensional position within some coordinate reference system.
See Also:

Defined in the sis-referencing module

  • Field Details

    • coordinate

      public double coordinate
      The coordinate value.
  • Constructor Details

    • DirectPosition1D

      public DirectPosition1D()
      Constructs a position initialized to (0) with a null coordinate reference system.
    • DirectPosition1D

      public DirectPosition1D(CoordinateReferenceSystem crs)
      Constructs a position with the specified coordinate reference system.
      crs - the coordinate reference system.
    • DirectPosition1D

      public DirectPosition1D(double coordinate)
      Constructs a 1D position from the specified coordinate.
      coordinate - the coordinate value.
    • DirectPosition1D

      public DirectPosition1D(CharSequence wkt) throws IllegalArgumentException
      Constructs a position initialized to the values parsed from the given string in Well Known Text (WKT) format. The given string is typically a POINT element like below:
      wkt - the POINT or other kind of element to parse.
      Illegal­Argument­Exception - if the given string can not be parsed.
      Mismatched­Dimension­Exception - if the given point is not one-dimensional.
      See Also:
  • Method Details