Class Crs


  • public class Crs
    extends Object
    Coordinate Reference System

    http://www.opengis.net/def/crs/{authority}/{version}/{code}

    Author:
    osbornb
    • Field Detail

      • PATTERN

        public static final Pattern PATTERN
        CRS pattern
      • PATTERN_AUTHORITY_GROUP

        public static final int PATTERN_AUTHORITY_GROUP
        CRS pattern authority group
        See Also:
        Constant Field Values
      • PATTERN_VERSION_GROUP

        public static final int PATTERN_VERSION_GROUP
        CRS pattern code group
        See Also:
        Constant Field Values
      • PATTERN_CODE_GROUP

        public static final int PATTERN_CODE_GROUP
        CRS pattern code group
        See Also:
        Constant Field Values
    • Constructor Detail

      • Crs

        public Crs()
        Constructor
      • Crs

        public Crs​(String crs)
        Constructor
        Parameters:
        crs - CRS URL
      • Crs

        public Crs​(String authority,
                   String version,
                   String code)
        Constructor
        Parameters:
        authority - authority
        version - version
        code - code
    • Method Detail

      • setCrs

        public boolean setCrs​(String crs)
        Set the CRS
        Parameters:
        crs - CRS URL
        Returns:
        true if a valid CRS and values were set
      • getAuthority

        public String getAuthority()
        Get the authority
        Returns:
        authority
      • setAuthority

        public void setAuthority​(String authority)
        Set the authority
        Parameters:
        authority - authority
      • getVersion

        public String getVersion()
        Get the version
        Returns:
        version
      • setVersion

        public void setVersion​(String version)
        Set the version
        Parameters:
        version - version
      • getCode

        public String getCode()
        Get the code
        Returns:
        code
      • setCode

        public void setCode​(String code)
        Set the code
        Parameters:
        code - code
      • isValid

        public boolean isValid()
        Determine if all parts of the CRS are set
        Returns:
        true if valid