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.
Since:
0.3
See Also:
  • 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.
      Parameters:
      crs - the coordinate reference system.
    • DirectPosition1D

      public DirectPosition1D(double coordinate)
      Constructs a 1D position from the specified coordinate.
      Parameters:
      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:
      POINT(6)
      
      Parameters:
      wkt - the POINT or other kind of element to parse.
      Throws:
      Illegal­Argument­Exception - if the given string cannot be parsed.
      Mismatched­Dimension­Exception - if the given point is not one-dimensional.
      See Also:
  • Method Details