Package org.bremersee.geojson
Class GeoJsonLinkedCrs
- java.lang.Object
-
- org.bremersee.geojson.AbstractGeoJsonCrs
-
- org.bremersee.geojson.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 Summary
Fields Modifier and Type Field Description static StringTYPE_ESRI_WKTThe coordinate reference system (CRS) with typeesriwkt.static StringTYPE_OGC_WKTThe coordinate reference system (CRS) with typeogcwkt.static StringTYPE_PROJ4The coordinate reference system (CRS) with typeproj4.
-
Constructor Summary
Constructors Constructor Description GeoJsonLinkedCrs()Default constructor.GeoJsonLinkedCrs(String href)Constructs the coordinate reference system (CRS) with the specified link.GeoJsonLinkedCrs(String href, String type)Constructs the coordinate reference system (CRS) with the specified link and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHref()Return the link to the coordinate reference system (CRS).StringgetType()Return the type of the coordinate reference system (CRS).voidsetHref(String href)Set the link to the coordinate reference system (CRS).voidsetType(String type)Set the type of the coordinate reference system (CRS).-
Methods inherited from class org.bremersee.geojson.AbstractGeoJsonCrs
equals, getProperties, hashCode, setProperties, toString
-
-
-
-
Field Detail
-
TYPE_PROJ4
public static final String TYPE_PROJ4
The coordinate reference system (CRS) with typeproj4.- See Also:
- Constant Field Values
-
TYPE_OGC_WKT
public static final String TYPE_OGC_WKT
The coordinate reference system (CRS) with typeogcwkt.- See Also:
- Constant Field Values
-
TYPE_ESRI_WKT
public static final String TYPE_ESRI_WKT
The coordinate reference system (CRS) with typeesriwkt.- 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)
-
-
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)
-
-