@Configurable public class UVFEncoder extends java.lang.Object implements ObservationEncoder<BinaryAttachmentResponse,java.lang.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(java.lang.Object objectToEncode)
Encodes the specified object.
|
BinaryAttachmentResponse |
encode(java.lang.Object objectToEncode,
EncodingContext additionalValues)
Encodes the specified object with the specified EncodingContext
.
|
MediaType |
getContentType() |
java.util.Set<EncoderKey> |
getKeys() |
java.util.Map<java.lang.String,java.util.Set<SupportedType>> |
getSupportedResponseFormatObservationTypes() |
java.util.Set<java.lang.String> |
getSupportedResponseFormats(java.lang.String service,
java.lang.String version)
Get the supported response formats for this ObservationEncoder and the specified service and
version.
|
java.util.Set<SupportedType> |
getSupportedTypes()
Get the
SupportedType |
boolean |
isObservationAndMeasurmentV20Type()
Indicator whether the ObservationEncoder of type or subtype Observation & Measurement 2.0
|
void |
setLineEnding(java.lang.String lineEndingParameter) |
void |
setTimeZone(java.lang.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 java.util.Set<EncoderKey> getKeys()
getKeys in interface Keyed<EncoderKey>public BinaryAttachmentResponse encode(java.lang.Object objectToEncode) throws EncodingException
Encoderencode in interface Encoder<BinaryAttachmentResponse,java.lang.Object>objectToEncode - the object to encodeEncodingException - if an error occurspublic BinaryAttachmentResponse encode(java.lang.Object objectToEncode, EncodingContext additionalValues) throws EncodingException
Encoderencode in interface Encoder<BinaryAttachmentResponse,java.lang.Object>objectToEncode - the object to encodeadditionalValues - the helper valuesEncodingException - if an error occurs@Setting(value="uvf.lineEnding") public void setLineEnding(java.lang.String lineEndingParameter)
public java.util.Set<SupportedType> getSupportedTypes()
EncoderSupportedTypegetSupportedTypes in interface Encoder<BinaryAttachmentResponse,java.lang.Object>public MediaType getContentType()
getContentType in interface Encoder<BinaryAttachmentResponse,java.lang.Object>public boolean isObservationAndMeasurmentV20Type()
ObservationEncoderisObservationAndMeasurmentV20Type in interface ObservationEncoder<BinaryAttachmentResponse,java.lang.Object>public boolean shouldObservationsWithSameXBeMerged()
ObservationEncodershouldObservationsWithSameXBeMerged in interface ObservationEncoder<BinaryAttachmentResponse,java.lang.Object>public boolean supportsResultStreamingForMergedValues()
supportsResultStreamingForMergedValues in interface ObservationEncoder<BinaryAttachmentResponse,java.lang.Object>public java.util.Set<java.lang.String> getSupportedResponseFormats(java.lang.String service,
java.lang.String version)
ObservationEncodergetSupportedResponseFormats in interface ObservationEncoder<BinaryAttachmentResponse,java.lang.Object>service - the serviceversion - the versionpublic java.util.Map<java.lang.String,java.util.Set<SupportedType>> getSupportedResponseFormatObservationTypes()
getSupportedResponseFormatObservationTypes in interface ObservationEncoder<BinaryAttachmentResponse,java.lang.Object>Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.