public class GmlEncoderv311 extends AbstractXmlEncoder<Object>
Modifier and Type | Field and Description |
---|---|
private static Set<EncoderKey> |
ENCODER_KEYS |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
GmlEncoderv311() |
Modifier and Type | Method and Description |
---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private org.apache.xmlbeans.XmlObject |
createCodeType(CodeType sosCodeType) |
private org.apache.xmlbeans.XmlObject |
createCodeWithAuthorityType(CodeWithAuthority sosCodeWithAuthority) |
private org.apache.xmlbeans.XmlObject |
createEnvelope(SosEnvelope sosEnvelope) |
private org.apache.xmlbeans.XmlObject |
createFeature(AbstractFeature sosAbstractFeature) |
private org.apache.xmlbeans.XmlObject |
createFeatureCollection(FeatureCollection sosFeatureCollection) |
private void |
createLineStringFromJtsGeometry(com.vividsolutions.jts.geom.LineString jtsLineString,
net.opengis.gml.LineStringType xbLst)
Creates a XML LineString from a SOS LineString.
|
protected org.apache.xmlbeans.XmlObject |
createMeasureType(QuantityValue quantityValue) |
private void |
createPointFromJtsGeometry(com.vividsolutions.jts.geom.Point jtsPoint,
net.opengis.gml.PointType xbPoint)
Creates a XML Point from a SOS Point.
|
private void |
createPolygonFromJtsGeometry(com.vividsolutions.jts.geom.Polygon jtsPolygon,
net.opengis.gml.PolygonType xbPolType)
Creates a XML Polygon from a SOS Polygon.
|
private org.apache.xmlbeans.XmlObject |
createPosition(com.vividsolutions.jts.geom.Geometry geom,
String foiId) |
private org.apache.xmlbeans.XmlObject |
createReferenceTypeForCategroyValue(CategoryValue categoryValue) |
private org.apache.xmlbeans.XmlObject |
createReferencType(ReferenceType sosReferenceType) |
private org.apache.xmlbeans.XmlObject |
createTime(Time time,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
createTimeInstantDocument(TimeInstant time) |
private net.opengis.gml.TimeInstantType |
createTimeInstantType(TimeInstant timeInstant,
net.opengis.gml.TimeInstantType timeInstantType)
Creates a XML TimeInstant from the SOS time object.
|
private org.apache.xmlbeans.XmlObject |
createTimePeriodDocument(TimePeriod time) |
private net.opengis.gml.TimePeriodType |
createTimePeriodType(TimePeriod timePeriod,
net.opengis.gml.TimePeriodType timePeriodType)
Creates a XML TimePeriod from the SOS time object.
|
private net.opengis.gml.TimePositionType |
createTimePositionType(TimePosition timePosition) |
org.apache.xmlbeans.XmlObject |
encode(Object element,
Map<SosConstants.HelperValues,String> additionalValues)
Encodes the specified object with the specified SosConstants.HelperValues
.
|
Set<EncoderKey> |
getEncoderKeyType() |
Set<SchemaLocation> |
getSchemaLocations() |
protected String |
getSrsName(com.vividsolutions.jts.geom.Geometry geom) |
encode, getConformanceClasses, getContentType, getSupportedTypes
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEYS
public Set<EncoderKey> getEncoderKeyType()
EncoderKey
)public void addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
Encoder
addNamespacePrefixToMap
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
addNamespacePrefixToMap
in class AbstractXmlEncoder<Object>
public Set<SchemaLocation> getSchemaLocations()
getSchemaLocations
in interface Encoder<org.apache.xmlbeans.XmlObject,Object>
getSchemaLocations
in class AbstractXmlEncoder<Object>
public org.apache.xmlbeans.XmlObject encode(Object element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
Encoder
element
- the object to encodeadditionalValues
- the helper valuesOwsExceptionReport
- if an error occursUnsupportedEncoderInputException
- if the supplied object (or any of it's contents) is not
supported by this encoderprivate org.apache.xmlbeans.XmlObject createTime(Time time, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createTimePeriodDocument(TimePeriod time) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.gml.TimePeriodType createTimePeriodType(TimePeriod timePeriod, net.opengis.gml.TimePeriodType timePeriodType) throws OwsExceptionReport
timePeriod
- SOS time objecttimePeriodType
- OwsExceptionReport
- * if an error occurs.private org.apache.xmlbeans.XmlObject createTimeInstantDocument(TimeInstant time) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.gml.TimeInstantType createTimeInstantType(TimeInstant timeInstant, net.opengis.gml.TimeInstantType timeInstantType) throws OwsExceptionReport
timeInstant
- SOS time objecttimeInstantType
- OwsExceptionReport
- * if an error occurs.private net.opengis.gml.TimePositionType createTimePositionType(TimePosition timePosition) throws DateTimeFormatException
DateTimeFormatException
private org.apache.xmlbeans.XmlObject createPosition(com.vividsolutions.jts.geom.Geometry geom, String foiId) throws OwsExceptionReport
OwsExceptionReport
private void createPointFromJtsGeometry(com.vividsolutions.jts.geom.Point jtsPoint, net.opengis.gml.PointType xbPoint) throws OwsExceptionReport
jtsPoint
- SOS PointxbPoint
- XML PointOwsExceptionReport
private void createLineStringFromJtsGeometry(com.vividsolutions.jts.geom.LineString jtsLineString, net.opengis.gml.LineStringType xbLst) throws OwsExceptionReport
jtsLineString
- SOS LineStringxbLst
- XML LinetSringOwsExceptionReport
private void createPolygonFromJtsGeometry(com.vividsolutions.jts.geom.Polygon jtsPolygon, net.opengis.gml.PolygonType xbPolType) throws OwsExceptionReport
jtsPolygon
- SOS PolygonxbPolType
- XML PolygonOwsExceptionReport
private org.apache.xmlbeans.XmlObject createReferenceTypeForCategroyValue(CategoryValue categoryValue)
private org.apache.xmlbeans.XmlObject createReferencType(ReferenceType sosReferenceType)
private org.apache.xmlbeans.XmlObject createCodeWithAuthorityType(CodeWithAuthority sosCodeWithAuthority)
private org.apache.xmlbeans.XmlObject createCodeType(CodeType sosCodeType)
protected org.apache.xmlbeans.XmlObject createMeasureType(QuantityValue quantityValue)
private org.apache.xmlbeans.XmlObject createFeature(AbstractFeature sosAbstractFeature) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createFeatureCollection(FeatureCollection sosFeatureCollection) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createEnvelope(SosEnvelope sosEnvelope)
protected String getSrsName(com.vividsolutions.jts.geom.Geometry geom)
Copyright © 2012-2015 52north.org. All Rights Reserved.