Skip to content

Commit

Permalink
This fix #321
Browse files Browse the repository at this point in the history
- Add check if parameter is OM_SpatialObservation samplingGeometry. If so, do not throw the not supported exception.
  • Loading branch information
CarstenHollmann committed Sep 17, 2015
1 parent 37833d0 commit d4ffb13
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.sql.Timestamp;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -728,8 +727,12 @@ protected void finalizeObservationInsertion(OmObservation sosObservation, Abstra
*/
protected void insertParameter(Collection<NamedValue<?>> parameter, AbstractObservation observation,
Session session) throws OwsExceptionReport {
throw new OptionNotSupportedException().at("om:parameter").withMessage(
"The om:parameter support is not yet implemented!");
for (NamedValue<?> namedValue : parameter) {
if (!Sos2Constants.HREF_PARAMETER_SPATIAL_FILTERING_PROFILE.equals(namedValue.getName().getHref())) {
throw new OptionNotSupportedException().at("om:parameter").withMessage(
"The om:parameter support is not yet implemented!");
}
}
}

/**
Expand Down

0 comments on commit d4ffb13

Please sign in to comment.