public class SamplingDecoderv20 extends Object implements Decoder<AbstractFeature,org.apache.xmlbeans.XmlObject>
Modifier and Type | Field and Description |
---|---|
private static Set<String> |
CONFORMANCE_CLASSES |
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private static Map<ServiceConstants.SupportedTypeKey,Set<String>> |
SUPPORTED_TYPES |
Constructor and Description |
---|
SamplingDecoderv20() |
Modifier and Type | Method and Description |
---|---|
private void |
checkTypeAndGeometry(SamplingFeature sosFeat) |
AbstractFeature |
decode(org.apache.xmlbeans.XmlObject element)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
Set<DecoderKey> |
getDecoderKeyTypes() |
private String |
getFeatTypeForGeometry(com.vividsolutions.jts.geom.Geometry geometry) |
private String |
getFeatureType(net.opengis.gml.x32.ReferenceType type) |
private com.vividsolutions.jts.geom.Geometry |
getGeometry(net.opengis.samplingSpatial.x20.ShapeType shape) |
private List<CodeType> |
getNames(net.opengis.samplingSpatial.x20.SFSpatialSamplingFeatureType spatialSamplingFeature) |
private List<AbstractFeature> |
getSampledFeatures(net.opengis.gml.x32.FeaturePropertyType sampledFeature)
Parse
FeaturePropertyType sampledFeature to AbstractFeature list. |
private List<AbstractFeature> |
getSampledFeatures(net.opengis.gml.x32.FeaturePropertyType[] sampledFeatureArray)
Parse
FeaturePropertyType sampledFeatures to AbstractFeature list. |
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private String |
getXmlDescription(net.opengis.samplingSpatial.x20.SFSpatialSamplingFeatureType spatialSamplingFeature) |
private AbstractFeature |
parseSpatialSamplingFeature(net.opengis.samplingSpatial.x20.SFSpatialSamplingFeatureType spatialSamplingFeature) |
private static final org.slf4j.Logger LOGGER
private static final Map<ServiceConstants.SupportedTypeKey,Set<String>> SUPPORTED_TYPES
private static final Set<DecoderKey> DECODER_KEYS
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<AbstractFeature,org.apache.xmlbeans.XmlObject>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<AbstractFeature,org.apache.xmlbeans.XmlObject>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public AbstractFeature decode(org.apache.xmlbeans.XmlObject element) throws OwsExceptionReport
Decoder
decode
in interface Decoder<AbstractFeature,org.apache.xmlbeans.XmlObject>
element
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate AbstractFeature parseSpatialSamplingFeature(net.opengis.samplingSpatial.x20.SFSpatialSamplingFeatureType spatialSamplingFeature) throws OwsExceptionReport
OwsExceptionReport
private String getXmlDescription(net.opengis.samplingSpatial.x20.SFSpatialSamplingFeatureType spatialSamplingFeature)
private List<CodeType> getNames(net.opengis.samplingSpatial.x20.SFSpatialSamplingFeatureType spatialSamplingFeature) throws OwsExceptionReport
OwsExceptionReport
private String getFeatureType(net.opengis.gml.x32.ReferenceType type)
private List<AbstractFeature> getSampledFeatures(net.opengis.gml.x32.FeaturePropertyType[] sampledFeatureArray) throws OwsExceptionReport
FeaturePropertyType
sampledFeatures to AbstractFeature
list.sampledFeatureArray
- SampledFeatures to parseOwsExceptionReport
- If an error occursprivate List<AbstractFeature> getSampledFeatures(net.opengis.gml.x32.FeaturePropertyType sampledFeature) throws OwsExceptionReport
FeaturePropertyType
sampledFeature to AbstractFeature
list.sampledFeature
- SampledFeature to parseOwsExceptionReport
- If an error occursprivate com.vividsolutions.jts.geom.Geometry getGeometry(net.opengis.samplingSpatial.x20.ShapeType shape) throws OwsExceptionReport
OwsExceptionReport
private void checkTypeAndGeometry(SamplingFeature sosFeat) throws OwsExceptionReport
OwsExceptionReport
private String getFeatTypeForGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Copyright © 2012-2015 52north.org. All Rights Reserved.