return null;
}
}
// Must be one of the position/radius related parameters
CoordinateRadius region = queryArgs.getRegion();
if (region == null) {
return null;
}
WorldCoords pos = (WorldCoords) region.getCenterPosition();
String type = param.getType();
String units = param.getUnits();
String format = param.getFormat();
if (type.equalsIgnoreCase("radec")) {
return _getRADec(pos.getRA(), pos.getDec(), format);
}
if (type.equalsIgnoreCase("ra")) {
return _getRA(pos.getRA(), format);
}
if (type.equalsIgnoreCase("dec")) {
return _getDec(pos.getDec(), format);
}
if (type.equalsIgnoreCase("radius")) {
return String.valueOf(_getValueInUnits(region.getMaxRadius(), "arcmin", units));
}
if (type.equalsIgnoreCase("minradius")) {
return String.valueOf(_getValueInUnits(region.getMinRadius(), "arcmin", units));
}
if (type.equalsIgnoreCase("maxradius")) {
return String.valueOf(_getValueInUnits(region.getMaxRadius(), "arcmin", units));
}
if (type.equalsIgnoreCase("width") || type.equalsIgnoreCase("size")) {
return String.valueOf(_getValueInUnits(region.getWidth(), "arcmin", units));
}
if (type.equalsIgnoreCase("height")) {
return String.valueOf(_getValueInUnits(region.getHeight(), "arcmin", units));
}
return null;
}