@Configurable public class UVFEncoder extends Object implements ObservationEncoder<BinaryAttachmentResponse,Object>
0: $sb Index-Einheit: 1: $ib Funktion-Interpretation: Summenlinie 2: $sb Mess-Groesse: Niederschlag 3: $sb Mess-Einheit: mm 4: $sb Mess-Stellennummer: 5242 5: *Z 6: Niederschlag: mm 1900 2000 7: 5242 1231240 1413414 52.52 8: 73110107301002100636Zeit 9: 7311010730 0 10: 7311050224 0 11: 7311050240 .30333331 12: 7311050255 .5 13: 7311050414 .5 14: 7311050415 -777 15: 7311050419 -777 16: 7311050420 .80000001The Lines 0 to 8 specify the header of the dataset. Hereby, the lines 0 to 4 provide optional metadata. The lines 5 to 8 are mandatory and are referenced in the specification by "Zeile 1,2,3,4". Line 14 and 15 show the handling of gaps or no data values. They are encoded with
-777. Gaps are
defined by two values: one for the start and one for the end of the gap. The
following assumptions/constraints are implemented:
UVFRequestModifier ensures, that each request for the UVF contains
ONE observed property, ONE feature of interest, and ONE procedure.String.substring(int, int) to the
length of UVFConstants.MAX_IDENTIFIER_LENGTH (15) starting from the
end of the given identifier.String.substring(int, int) to the length of
UVFConstants.MAX_VALUE_LENGTH (10) starting form the beginning of the
String representation of the value. No rounding is performed.UVFConstants.ALLOWED_CRS):
| Constructor and Description |
|---|
UVFEncoder() |
| Modifier and Type | Method and Description |
|---|---|
BinaryAttachmentResponse |
encode(Object objectToEncode)
Encodes the specified object.
|
BinaryAttachmentResponse |
encode(Object objectToEncode,
EncodingContext additionalValues)
Encodes the specified object with the specified EncodingContext
.
|
MediaType |
getContentType() |
Set<EncoderKey> |
getKeys() |
Map<String,Set<SupportedType>> |
getSupportedResponseFormatObservationTypes() |
Set<String> |
getSupportedResponseFormats(String service,
String version)
Get the supported response formats for this ObservationEncoder and the specified service and
version.
|
Set<SupportedType> |
getSupportedTypes()
Get the
SupportedType |
boolean |
isObservationAndMeasurmentV20Type()
Indicator whether the ObservationEncoder of type or subtype Observation & Measurement 2.0
|
void |
setLineEnding(String lineEndingParameter) |
void |
setTimeZone(String timeZone) |
boolean |
shouldObservationsWithSameXBeMerged()
Indicator whether the single observations with the same procedure, observableProperty and featureOfInterest
should be merged to one observation.
|
boolean |
supportsResultStreamingForMergedValues() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcedureEncodingNamspace, getSupportedResponseFormatsgetConformanceClassespublic Set<EncoderKey> getKeys()
getKeys in interface Keyed<EncoderKey>public BinaryAttachmentResponse encode(Object objectToEncode) throws EncodingException
Encoderencode in interface Encoder<BinaryAttachmentResponse,Object>objectToEncode - the object to encodeEncodingException - if an error occurspublic BinaryAttachmentResponse encode(Object objectToEncode, EncodingContext additionalValues) throws EncodingException
Encoderencode in interface Encoder<BinaryAttachmentResponse,Object>objectToEncode - the object to encodeadditionalValues - the helper valuesEncodingException - if an error occurs@Setting(value="uvf.lineEnding", required=false) public void setLineEnding(String lineEndingParameter)
public Set<SupportedType> getSupportedTypes()
EncoderSupportedTypegetSupportedTypes in interface Encoder<BinaryAttachmentResponse,Object>public MediaType getContentType()
getContentType in interface Encoder<BinaryAttachmentResponse,Object>public boolean isObservationAndMeasurmentV20Type()
ObservationEncoderisObservationAndMeasurmentV20Type in interface ObservationEncoder<BinaryAttachmentResponse,Object>public boolean shouldObservationsWithSameXBeMerged()
ObservationEncodershouldObservationsWithSameXBeMerged in interface ObservationEncoder<BinaryAttachmentResponse,Object>public boolean supportsResultStreamingForMergedValues()
supportsResultStreamingForMergedValues in interface ObservationEncoder<BinaryAttachmentResponse,Object>public Set<String> getSupportedResponseFormats(String service, String version)
ObservationEncodergetSupportedResponseFormats in interface ObservationEncoder<BinaryAttachmentResponse,Object>service - the serviceversion - the versionpublic Map<String,Set<SupportedType>> getSupportedResponseFormatObservationTypes()
getSupportedResponseFormatObservationTypes in interface ObservationEncoder<BinaryAttachmentResponse,Object>Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.