#44 add some constants
This commit is contained in:
parent
f8765d6287
commit
f500243712
@ -199,7 +199,7 @@ public class RESTCoverage extends RESTResource {
|
||||
public List<RESTDimensionInfo> getDimensionInfo() {
|
||||
List<RESTDimensionInfo> listDim = new ArrayList<RESTDimensionInfo>();
|
||||
for (RESTMetadataList.RESTMetadataElement el : getMetadataList()){
|
||||
if(el.getKey().equals("time") || el.getKey().equals("elevation")){
|
||||
if(el.getKey().equals(RESTDimensionInfo.TIME) || el.getKey().equals(RESTDimensionInfo.ELEVATION)){
|
||||
listDim.add(new RESTDimensionInfo(el.getMetadataElem()));
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,6 +33,9 @@ public class RESTDimensionInfo extends RESTMetadataList.RESTMetadataElement{
|
||||
private String presentation;
|
||||
private String resolution;
|
||||
|
||||
public static final String TIME = "time";
|
||||
public static final String ELEVATION = "elevation";
|
||||
|
||||
/**
|
||||
* @param elem
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user