Class GeoJsonLinkedCrs

  • All Implemented Interfaces:
    Serializable

    public class GeoJsonLinkedCrs
    extends AbstractGeoJsonCrs
    A link to the coordinate reference system (CRS) of a GeoJSON object.

    The specification of coordinate reference systems has been removed, see rfc7946 appendix B, the "crs" member is no longer used.

    Author:
    Christian Bremer
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_PROJ4

        public static final String TYPE_PROJ4
        The coordinate reference system (CRS) with type proj4.
        See Also:
        Constant Field Values
      • TYPE_OGC_WKT

        public static final String TYPE_OGC_WKT
        The coordinate reference system (CRS) with type ogcwkt.
        See Also:
        Constant Field Values
      • TYPE_ESRI_WKT

        public static final String TYPE_ESRI_WKT
        The coordinate reference system (CRS) with type esriwkt.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GeoJsonLinkedCrs

        public GeoJsonLinkedCrs()
        Default constructor.
      • GeoJsonLinkedCrs

        public GeoJsonLinkedCrs​(String href)
        Constructs the coordinate reference system (CRS) with the specified link.
        Parameters:
        href - the link to the coordinate reference system (CRS)
      • GeoJsonLinkedCrs

        public GeoJsonLinkedCrs​(String href,
                                String type)
        Constructs the coordinate reference system (CRS) with the specified link and type.
        Parameters:
        href - the link to the coordinate reference system (CRS)
        type - the type of the coordinate reference system (CRS)
    • Method Detail

      • getHref

        public String getHref()
        Return the link to the coordinate reference system (CRS).
        Returns:
        the link to the coordinate reference system (CRS)
      • setHref

        public void setHref​(String href)
        Set the link to the coordinate reference system (CRS).
        Parameters:
        href - the link to the coordinate reference system (CRS)
      • getType

        public String getType()
        Return the type of the coordinate reference system (CRS).
        Returns:
        the type of the coordinate reference system (CRS)
      • setType

        public void setType​(String type)
        Set the type of the coordinate reference system (CRS).
        Parameters:
        type - the type of the coordinate reference system (CRS)