Class GeoJsonNamedCrs

java.lang.Object
org.bremersee.geojson.crs.AbstractGeoJsonCrs
org.bremersee.geojson.crs.GeoJsonNamedCrs
All Implemented Interfaces:
Serializable

public class GeoJsonNamedCrs extends AbstractGeoJsonCrs
A reference to the coordinate reference system (CRS) of a GeoJSON object by it's name.

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:
  • Constructor Details

    • GeoJsonNamedCrs

      public GeoJsonNamedCrs()
      Default constructor.
    • GeoJsonNamedCrs

      public GeoJsonNamedCrs(String crsName)
      Constructs a coordinate reference system (CRS) with it's name.
      Parameters:
      crsName - the name of the coordinate reference system (CRS)
  • Method Details

    • getCrs

      public String getCrs()
      Return the name of the coordinate reference system (CRS).
      Returns:
      the name of the coordinate reference system (CRS)
    • setCrs

      public void setCrs(String crs)
      Set the name of the coordinate reference system (CRS).
      Parameters:
      crs - the name