Skip to content

Commit

Permalink
fix issue with reference observations and database check
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Hollmann committed Aug 3, 2021
1 parent 69fdd72 commit 97c0ed7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ default String getObservationTypeForValueType(ValueType valueType) {
return OmConstants.OBS_TYPE_GEOMETRY_OBSERVATION;
case quantity:
return OmConstants.OBS_TYPE_MEASUREMENT;
case referenced:
case reference:
return OmConstants.OBS_TYPE_REFERENCE_OBSERVATION;
case text:
return OmConstants.OBS_TYPE_TEXT_OBSERVATION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ private ValueType getProfileValueType(ProfileValue value) {
} else if (v instanceof GeometryValue) {
return ValueType.geometry;
} else if (v instanceof ReferenceValue) {
return ValueType.referenced;
return ValueType.reference;
} else if (v instanceof TextValue) {
return ValueType.text;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public DatasetEntity quantityProfile()
public DatasetEntity reference()
throws OwsExceptionReport {
return instantiate(referenceClass()).setDatasetType(DatasetType.timeseries)
.setObservationType(ObservationType.simple).setValueType(ValueType.referenced);
.setObservationType(ObservationType.simple).setValueType(ValueType.reference);
}

private <T extends DatasetEntity> T instantiate(Class<T> c)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<version.n52.common.xml>2.7.0</version.n52.common.xml>
<version.helgoland.api>3.3.3</version.helgoland.api>
<version.dao-impl>3.3.4</version.dao-impl>
<version.db-model>3.0.6</version.db-model>
<version.db-model>3.0.7</version.db-model>
<!-- <dataset.proxy.version>1.0.0-SNAPSHOT</dataset.proxy.version> -->
<version.springframework.security>5.3.3.RELEASE</version.springframework.security>
<version.springframework>5.2.8.RELEASE</version.springframework>
Expand Down

0 comments on commit 97c0ed7

Please sign in to comment.