public abstract class AbstractIoosNetcdfEncoder extends Object implements ObservationEncoder<org.n52.sos.response.BinaryAttachmentResponse,Object>
| Modifier and Type | Field and Description |
|---|---|
private static int |
CHUNK_SIZE_TIME |
private static Set<String> |
CONFORMANCE_CLASSES |
private static String |
DEFINITION |
private static double |
DOUBLE_FILL_VALUE |
private Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private Map<String,Map<String,Set<String>>> |
SUPPORTED_RESPONSE_FORMATS |
private static Map<org.n52.sos.service.ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
| Constructor and Description |
|---|
AbstractIoosNetcdfEncoder() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addAttributeIfClassifierExists(ucar.nc2.Variable variable,
org.n52.sos.ogc.sensorML.System system,
String classifierDefinition,
String attributeName) |
private static void |
addAttributeIfIdentifierExists(ucar.nc2.Variable variable,
org.n52.sos.ogc.sensorML.System system,
String identifierDefinition,
String attributeName) |
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap) |
org.n52.sos.response.BinaryAttachmentResponse |
encode(Object element) |
org.n52.sos.response.BinaryAttachmentResponse |
encode(Object objectToEncode,
Map<org.n52.sos.ogc.sos.SosConstants.HelperValues,String> additionalValues) |
private org.n52.sos.response.BinaryAttachmentResponse |
encodeGetObsResponse(List<org.n52.sos.ogc.om.OmObservation> sosObservationCollection) |
protected abstract org.n52.sos.response.BinaryAttachmentResponse |
encodeIoosObsToNetcdf(List<IoosSosObservation> ioosSosObsList) |
protected void |
encodeSensorDataToNetcdf(File netcdfFile,
AbstractSensorDataset sensorDataset) |
private String |
getCfRole(ucar.nc2.constants.CF.FeatureType featureType) |
private static String |
getClassifier(org.n52.sos.ogc.sensorML.System system,
String classifierDefinition) |
Set<String> |
getConformanceClasses() |
private static org.joda.time.DateTime |
getDateTime(org.n52.sos.ogc.gml.time.Time time) |
private static org.n52.sos.ds.AbstractDescribeSensorDAO |
getDescribeSensorDAO() |
private static int[] |
getDimShapes(List<ucar.nc2.Dimension> dims) |
Set<EncoderKey> |
getEncoderKeyType() |
protected String |
getFilename(AbstractSensorDataset sensorDataset) |
private static String |
getIdentifier(org.n52.sos.ogc.sensorML.System system,
String identifierDefinition) |
private String |
getNodcTemplateVersion(ucar.nc2.constants.CF.FeatureType featureType) |
private static org.n52.sos.ogc.sensorML.SmlResponsibleParty |
getResponsibleParty(List<org.n52.sos.ogc.sensorML.SmlContact> contacts,
String contactRole) |
private static org.n52.sos.ogc.sensorML.SmlResponsibleParty |
getResponsibleParty(org.n52.sos.ogc.sensorML.System system,
String contactRole) |
Set<org.n52.sos.w3c.SchemaLocation> |
getSchemaLocations() |
private static double |
getSecondsSinceEpoch(org.n52.sos.ogc.gml.time.Time time) |
private static org.n52.sos.ogc.sensorML.System |
getSensorSystem(String procedure) |
Set<String> |
getSupportedResponseFormats(String service,
String version) |
Map<org.n52.sos.service.ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes() |
private static boolean |
hasDimension(List<ucar.nc2.Dimension> dims,
ucar.nc2.Dimension dim) |
private static void |
initArrayWithFillValue(ucar.ma2.Array array,
Object fillValue) |
boolean |
isObservationAndMeasurmentV20Type() |
protected static String |
makeDateSafe(org.joda.time.DateTime dt) |
boolean |
shouldObservationsWithSameXBeMerged() |
boolean |
supportsResultStreamingForMergedValues() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypeprivate static final org.slf4j.Logger LOGGER
private static final String DEFINITION
private static final double DOUBLE_FILL_VALUE
private static final int CHUNK_SIZE_TIME
private static final Map<org.n52.sos.service.ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
private final Map<String,Map<String,Set<String>>> SUPPORTED_RESPONSE_FORMATS
private final Set<EncoderKey> ENCODER_KEYS
public Set<EncoderKey> getEncoderKeyType()
getEncoderKeyType in interface Encoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public Map<org.n52.sos.service.ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
getSupportedTypes in interface Encoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public Set<String> getConformanceClasses()
getConformanceClasses in interface org.n52.sos.service.ConformanceClasspublic void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
addNamespacePrefixToMap in interface Encoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public boolean isObservationAndMeasurmentV20Type()
isObservationAndMeasurmentV20Type in interface ObservationEncoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public Set<String> getSupportedResponseFormats(String service, String version)
getSupportedResponseFormats in interface ObservationEncoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public boolean shouldObservationsWithSameXBeMerged()
shouldObservationsWithSameXBeMerged in interface ObservationEncoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public Set<org.n52.sos.w3c.SchemaLocation> getSchemaLocations()
getSchemaLocations in interface Encoder<org.n52.sos.response.BinaryAttachmentResponse,Object>public org.n52.sos.response.BinaryAttachmentResponse encode(Object element) throws org.n52.sos.ogc.ows.OwsExceptionReport
public org.n52.sos.response.BinaryAttachmentResponse encode(Object objectToEncode, Map<org.n52.sos.ogc.sos.SosConstants.HelperValues,String> additionalValues) throws org.n52.sos.ogc.ows.OwsExceptionReport
private org.n52.sos.response.BinaryAttachmentResponse encodeGetObsResponse(List<org.n52.sos.ogc.om.OmObservation> sosObservationCollection) throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprotected abstract org.n52.sos.response.BinaryAttachmentResponse encodeIoosObsToNetcdf(List<IoosSosObservation> ioosSosObsList) throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprotected void encodeSensorDataToNetcdf(File netcdfFile, AbstractSensorDataset sensorDataset) throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprivate String getNodcTemplateVersion(ucar.nc2.constants.CF.FeatureType featureType) throws org.n52.sos.exception.CodedException
org.n52.sos.exception.CodedExceptionprivate String getCfRole(ucar.nc2.constants.CF.FeatureType featureType) throws org.n52.sos.exception.CodedException
org.n52.sos.exception.CodedExceptionprivate static org.joda.time.DateTime getDateTime(org.n52.sos.ogc.gml.time.Time time)
throws org.n52.sos.exception.CodedException
org.n52.sos.exception.CodedExceptionprivate static double getSecondsSinceEpoch(org.n52.sos.ogc.gml.time.Time time)
throws org.n52.sos.exception.CodedException
org.n52.sos.exception.CodedExceptionprivate static int[] getDimShapes(List<ucar.nc2.Dimension> dims)
private static boolean hasDimension(List<ucar.nc2.Dimension> dims, ucar.nc2.Dimension dim)
private static void initArrayWithFillValue(ucar.ma2.Array array,
Object fillValue)
private static org.n52.sos.ogc.sensorML.System getSensorSystem(String procedure) throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprivate static org.n52.sos.ds.AbstractDescribeSensorDAO getDescribeSensorDAO()
throws org.n52.sos.exception.CodedException
org.n52.sos.exception.CodedExceptionprivate static String getIdentifier(org.n52.sos.ogc.sensorML.System system, String identifierDefinition)
private static void addAttributeIfIdentifierExists(ucar.nc2.Variable variable,
org.n52.sos.ogc.sensorML.System system,
String identifierDefinition,
String attributeName)
private static String getClassifier(org.n52.sos.ogc.sensorML.System system, String classifierDefinition)
private static void addAttributeIfClassifierExists(ucar.nc2.Variable variable,
org.n52.sos.ogc.sensorML.System system,
String classifierDefinition,
String attributeName)
private static org.n52.sos.ogc.sensorML.SmlResponsibleParty getResponsibleParty(org.n52.sos.ogc.sensorML.System system,
String contactRole)
private static org.n52.sos.ogc.sensorML.SmlResponsibleParty getResponsibleParty(List<org.n52.sos.ogc.sensorML.SmlContact> contacts, String contactRole)
protected static String makeDateSafe(org.joda.time.DateTime dt)
public boolean supportsResultStreamingForMergedValues()
supportsResultStreamingForMergedValues in interface ObservationEncoder<org.n52.sos.response.BinaryAttachmentResponse,Object>protected String getFilename(AbstractSensorDataset sensorDataset) throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportCopyright © 2012-2016 52north.org. All Rights Reserved.