Package mil.nga.crs
Class CRS
- java.lang.Object
-
- mil.nga.crs.CRS
-
- All Implemented Interfaces:
Identifiable,ScopeExtentIdentifierRemark
- Direct Known Subclasses:
CommonCRS,CoordinateMetadata
public abstract class CRS extends Object implements ScopeExtentIdentifierRemark
Well-known text representation of coordinate reference systems object- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtra(String name, Object extra)Add the temporary extra which is not part of the CRS definitionvoidaddExtras(Map<String,Object> extras)Add the temporary extras which are not part of the CRS definitionbooleanequals(Object obj)CategoryTypegetCategoryType()Get the category typeObjectgetExtra(String name)Get the temporary extra with the nameMap<String,Object>getExtras()Get temporary extras that are not part of the CRS definitionCRSTypegetType()Get the typebooleanhasExtras()Determine if there are temporary extras that are not part of the CRS definitioninthashCode()intnumExtras()Get the number of temporary extras that are not part of the CRS definitionvoidsetExtras(Map<String,Object> extras)Set the temporary extras that are not part of the CRS definitionvoidsetType(CRSType type)Set the typeStringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface mil.nga.crs.common.Identifiable
addIdentifier, addIdentifiers, getIdentifier, getIdentifiers, hasIdentifiers, numIdentifiers, setIdentifiers
-
-
-
-
Constructor Detail
-
CRS
public CRS()
Constructor
-
CRS
public CRS(CRSType type)
Constructor- Parameters:
type- coordinate reference system type
-
-
Method Detail
-
getType
public CRSType getType()
Get the type- Returns:
- type
-
setType
public void setType(CRSType type)
Set the type- Parameters:
type- type
-
getCategoryType
public CategoryType getCategoryType()
Get the category type- Returns:
- category type
-
getExtras
public Map<String,Object> getExtras()
Get temporary extras that are not part of the CRS definition- Returns:
- extras
-
hasExtras
public boolean hasExtras()
Determine if there are temporary extras that are not part of the CRS definition- Returns:
- true if extras
-
numExtras
public int numExtras()
Get the number of temporary extras that are not part of the CRS definition- Returns:
- number of extras
-
getExtra
public Object getExtra(String name)
Get the temporary extra with the name- Parameters:
name- extra name- Returns:
- extra value or null
-
setExtras
public void setExtras(Map<String,Object> extras)
Set the temporary extras that are not part of the CRS definition- Parameters:
extras- extras
-
addExtra
public void addExtra(String name, Object extra)
Add the temporary extra which is not part of the CRS definition- Parameters:
name- extra nameextra- extra value
-
addExtras
public void addExtras(Map<String,Object> extras)
Add the temporary extras which are not part of the CRS definition- Parameters:
extras- extra values
-
-