Skip to content

Commit

Permalink
update static strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bird committed Oct 14, 2013
1 parent a637874 commit 085f985
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SOSDescribeSensorHandler extends SOSBaseRequestHandler {
private final String procedure;
private ISOSDescribeSensor describer;

private final String ACCEPTABLE_RESPONSE_FORMAT = "text/xml;subtype=\"sensorML/1.0.1\"";
//private final String ACCEPTABLE_RESPONSE_FORMAT = "text/xml;subtype=\"sensorML/1.0.1\"";

/**
* Creates a DescribeSensor handler that will parse the information and setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ public class GetCapsOutputter extends SOSOutputFormatter {
public static final String XLINKHREF = XLINK_HREF;
public static final String XLINK_TITLE = "xlink:title";
public static final String XSITYPE = "xsi:type";
public static final String[] possibleValueList = {"allowedValues", "anyValue", "noValues", "valuesListReference"};
public static final String[] possibleValueLink = {
"\"http://www.opengis.net/ows/1.1\":AllowedValues",
"\"http://www.opengis.net/ows/1.1\":AnyValue",
"\"http://www.opengis.net/ows/1.1\":NoValues",
"\"http://www.opengis.net/ows/1.1\":ValuesReference"};
private DOMImplementationLS impl;
private boolean exceptionFlag;
private Element getCaps, getObs, descSen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
public abstract class SOSBaseRequestHandler {
public static final String CF_ROLE = "cf_role";
public static final String GRID = "grid";
public static final String GRID_MAPPING = "grid_mapping";
public static final String NAME = "name";
public static final String PROFILE = "profile";
public static final String TRAJECTORY = "trajectory";
Expand Down Expand Up @@ -667,7 +668,7 @@ public String[] getCRSSRSAuthorities() {
ArrayList<String> returnList = new ArrayList<String>();
for (VariableSimpleIF var : featureDataset.getDataVariables()) {
for (Attribute attr : var.getAttributes()) {
if (attr.getName().equalsIgnoreCase("grid_mapping")) {
if (attr.getName().equalsIgnoreCase(GRID_MAPPING)) {
String stName = attr.getValue(0).toString();
String auth = getAuthorityFromVariable(stName);
if (auth != null && !returnList.contains(auth)) {
Expand Down

0 comments on commit 085f985

Please sign in to comment.