Modifier and Type | Field and Description |
---|---|
private static String |
CS |
private static String |
DECIMAL |
private static Set<DecoderKey> |
DECODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
private static String |
TS |
Constructor and Description |
---|
GmlDecoderv321() |
Modifier and Type | Method and Description |
---|---|
private void |
checkSrid(int srid) |
Object |
decode(org.apache.xmlbeans.XmlObject xmlObject)
Decode a object to another representation.
|
Set<String> |
getConformanceClasses() |
private String |
getCoordString4LinearRing(net.opengis.gml.x32.LinearRingType xbLinearRing)
method parses the passed linearRing(generated thru XmlBEans) and returns
a string containing the coordinate values of the passed ring
|
Set<DecoderKey> |
getDecoderKeyTypes() |
private String |
getString4Coordinates(net.opengis.gml.x32.CoordinatesType xbCoordinates)
parses XmlBeans Coordinates to a String with coordinates for WKT.
|
private String |
getString4Pos(net.opengis.gml.x32.DirectPositionType xbPos)
parses XmlBeans DirectPosition to a String with coordinates for WKT.
|
private String |
getString4PosArray(net.opengis.gml.x32.DirectPositionType[] xbPosArray)
parses XmlBeans DirectPosition[] to a String with coordinates for WKT.
|
private String |
getString4PosList(net.opengis.gml.x32.DirectPositionListType xbPosList)
parses XmlBeans DirectPositionList to a String with coordinates for WKT.
|
Map<ServiceConstants.SupportedTypeKey,Set<String>> |
getSupportedTypes()
Get the ServiceConstants.SupportedTypeKey in the case of having only generic
java types, e.g.
|
private AbstractGeometry |
parseAbstractGeometryType(net.opengis.gml.x32.AbstractGeometryType abstractGeometry) |
private CodeType |
parseCodeType(net.opengis.gml.x32.CodeType element) |
private CodeWithAuthority |
parseCodeWithAuthorityTye(net.opengis.gml.x32.CodeWithAuthorityType xbCodeWithAuthority) |
private com.vividsolutions.jts.geom.Geometry |
parseCompositeSurfaceType(net.opengis.gml.x32.CompositeSurfaceType xbCompositeSurface) |
private com.vividsolutions.jts.geom.Geometry |
parseEnvelope(net.opengis.gml.x32.EnvelopeDocument envelopeDocument)
parses the BBOX element of the featureOfInterest element contained in the
GetObservation request and returns a String representing the BOX in
Well-Known-Text format
|
private Object |
parseFeaturePropertyType(net.opengis.gml.x32.FeaturePropertyType featurePropertyType) |
private Object |
parseGeometryPropertyType(net.opengis.gml.x32.GeometryPropertyType geometryPropertyType) |
private Object |
parseLineStringType(net.opengis.gml.x32.LineStringType xbLineStringType) |
private GmlMeasureType |
parseMeasureType(net.opengis.gml.x32.MeasureType measureType) |
private Object |
parsePointType(net.opengis.gml.x32.PointType xbPointType) |
private Object |
parsePolygonType(net.opengis.gml.x32.PolygonType xbPolygonType) |
private ReferenceType |
parseReferenceType(net.opengis.gml.x32.ReferenceType referenceType) |
private Object |
parseTimeInstant(net.opengis.gml.x32.TimeInstantType xbTimeIntant)
parses TimeInstant
|
private Object |
parseTimePeriod(net.opengis.gml.x32.TimePeriodType xbTimePeriod)
creates SOS representation of time period from XMLBeans representation of
time period
|
private TimeInstant |
parseTimePosition(net.opengis.gml.x32.TimePositionType xbTimePosition) |
private static final org.slf4j.Logger LOGGER
private static final Set<DecoderKey> DECODER_KEYS
private static final String CS
private static final String DECIMAL
private static final String TS
public Set<DecoderKey> getDecoderKeyTypes()
getDecoderKeyTypes
in interface Decoder<Object,org.apache.xmlbeans.XmlObject>
DecoderKey
) is able to decodepublic Map<ServiceConstants.SupportedTypeKey,Set<String>> getSupportedTypes()
Decoder
getSupportedTypes
in interface Decoder<Object,org.apache.xmlbeans.XmlObject>
public Set<String> getConformanceClasses()
getConformanceClasses
in interface ConformanceClass
public Object decode(org.apache.xmlbeans.XmlObject xmlObject) throws OwsExceptionReport
Decoder
decode
in interface Decoder<Object,org.apache.xmlbeans.XmlObject>
xmlObject
- the object to encodeOwsExceptionReport
- if an error occursUnsupportedDecoderInputException
- if the supplied type (or any of it's contents) is not
supported by this decoderprivate Object parseFeaturePropertyType(net.opengis.gml.x32.FeaturePropertyType featurePropertyType) throws OwsExceptionReport
OwsExceptionReport
private com.vividsolutions.jts.geom.Geometry parseEnvelope(net.opengis.gml.x32.EnvelopeDocument envelopeDocument) throws OwsExceptionReport
envelopeDocument
- XmlBean representing the BBOX-element in the requestOwsExceptionReport
- * if parsing the BBOX element failedprivate Object parseTimeInstant(net.opengis.gml.x32.TimeInstantType xbTimeIntant) throws OwsExceptionReport
xbTimeIntant
- XmlBean representation of TimeInstantParseException
ParseException
- if parsing the datestring into java.util.Date failedOwsExceptionReport
private Object parseTimePeriod(net.opengis.gml.x32.TimePeriodType xbTimePeriod) throws OwsExceptionReport
xbTimePeriod
- XMLBeans representation of time periodOwsExceptionReport
private TimeInstant parseTimePosition(net.opengis.gml.x32.TimePositionType xbTimePosition) throws OwsExceptionReport
OwsExceptionReport
private ReferenceType parseReferenceType(net.opengis.gml.x32.ReferenceType referenceType)
private GmlMeasureType parseMeasureType(net.opengis.gml.x32.MeasureType measureType)
private Object parseGeometryPropertyType(net.opengis.gml.x32.GeometryPropertyType geometryPropertyType) throws OwsExceptionReport
OwsExceptionReport
private AbstractGeometry parseAbstractGeometryType(net.opengis.gml.x32.AbstractGeometryType abstractGeometry) throws OwsExceptionReport
OwsExceptionReport
private Object parsePointType(net.opengis.gml.x32.PointType xbPointType) throws OwsExceptionReport
OwsExceptionReport
private Object parseLineStringType(net.opengis.gml.x32.LineStringType xbLineStringType) throws OwsExceptionReport
OwsExceptionReport
private Object parsePolygonType(net.opengis.gml.x32.PolygonType xbPolygonType) throws OwsExceptionReport
OwsExceptionReport
private com.vividsolutions.jts.geom.Geometry parseCompositeSurfaceType(net.opengis.gml.x32.CompositeSurfaceType xbCompositeSurface) throws OwsExceptionReport
OwsExceptionReport
private CodeWithAuthority parseCodeWithAuthorityTye(net.opengis.gml.x32.CodeWithAuthorityType xbCodeWithAuthority)
private CodeType parseCodeType(net.opengis.gml.x32.CodeType element)
private String getCoordString4LinearRing(net.opengis.gml.x32.LinearRingType xbLinearRing) throws OwsExceptionReport
xbLinearRing
- linearRing(generated thru XmlBEans)OwsExceptionReport
- * if parsing the linear Ring failedprivate String getString4Pos(net.opengis.gml.x32.DirectPositionType xbPos)
xbPos
- XmlBeans generated DirectPosition.private String getString4PosArray(net.opengis.gml.x32.DirectPositionType[] xbPosArray)
xbPosArray
- XmlBeans generated DirectPosition[].private String getString4PosList(net.opengis.gml.x32.DirectPositionListType xbPosList) throws OwsExceptionReport
xbPosList
- XmlBeans generated DirectPositionList.OwsExceptionReport
private String getString4Coordinates(net.opengis.gml.x32.CoordinatesType xbCoordinates)
xbCoordinates
- XmlBeans generated Coordinates.private void checkSrid(int srid) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2015 52north.org. All Rights Reserved.