public class GmlEncoderv321 extends AbstractXmlEncoder<Object>
Modifier and Type | Field and Description |
---|---|
private static Set<EncoderKey> |
ENCODER_KEY_TYPES |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
GmlEncoderv321() |
Modifier and Type | Method and Description |
---|---|
void |
addNamespacePrefixToMap(Map<String,String> nameSpacePrefixMap)
|
private boolean |
checkAndPrepareHelperValues(Map<SosConstants.HelperValues,String> additionalValues) |
private net.opengis.gml.x32.AbstractGeometryType |
createAbstractGeometry(AbstractGeometry element,
Map<SosConstants.HelperValues,String> additionalValues) |
private net.opengis.gml.x32.CodeType |
createCodeType(CodeType sosCodeType) |
private net.opengis.gml.x32.CodeWithAuthorityType |
createCodeWithAuthorityType(CodeWithAuthority sosCodeWithAuthority) |
private org.apache.xmlbeans.XmlObject |
createEnvelope(SosEnvelope sosEnvelope) |
private org.apache.xmlbeans.XmlObject |
createFeature(AbstractFeature feature,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
createFeatureCollection(FeatureCollection element,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
createFeaturePropertyType(AbstractFeature feature,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
createGeomteryPropertyType(AbstractGeometry element,
Map<SosConstants.HelperValues,String> additionalValues) |
private void |
createLineStringFromJtsGeometry(com.vividsolutions.jts.geom.LineString jtsLineString,
net.opengis.gml.x32.LineStringType xbLst)
Creates a XML LineString from a SOS LineString.
|
protected net.opengis.gml.x32.MeasureType |
createMeasureType(QuantityValue quantityValue) |
private void |
createPointFromJtsGeometry(com.vividsolutions.jts.geom.Point jtsPoint,
net.opengis.gml.x32.PointType xbPoint)
Creates a XML Point from a SOS Point.
|
private void |
createPolygonFromJtsGeometry(com.vividsolutions.jts.geom.Polygon jtsPolygon,
net.opengis.gml.x32.PolygonType xbPolType)
Creates a XML Polygon from a SOS Polygon.
|
private org.apache.xmlbeans.XmlObject |
createPosition(com.vividsolutions.jts.geom.Geometry geom,
Map<SosConstants.HelperValues,String> additionalValues) |
private org.apache.xmlbeans.XmlObject |
createReferenceTypeForCategroyValue(CategoryValue categoryValue) |
private net.opengis.gml.x32.ReferenceType |
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 org.apache.xmlbeans.XmlObject |
createTimeInstantPropertyType(TimeInstant time) |
private net.opengis.gml.x32.TimeInstantType |
createTimeInstantType(TimeInstant timeInstant,
net.opengis.gml.x32.TimeInstantType timeInstantType)
Creates a XML TimeInstant from the SOS time object.
|
private org.apache.xmlbeans.XmlObject |
createTimePeriodDocument(TimePeriod time) |
private org.apache.xmlbeans.XmlObject |
createTimePeriodPropertyType(TimePeriod time) |
private net.opengis.gml.x32.TimePeriodType |
createTimePeriodType(TimePeriod timePeriod,
net.opengis.gml.x32.TimePeriodType timePeriodType)
Creates a XML TimePeriod from the SOS time object.
|
private net.opengis.gml.x32.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) |
protected String |
getSrsName(int srid) |
private boolean |
isNotSamplingFeature(AbstractFeature feature) |
encode, getConformanceClasses, getContentType, getSupportedTypes
private static final org.slf4j.Logger LOGGER
private static final Set<EncoderKey> ENCODER_KEY_TYPES
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 createFeaturePropertyType(AbstractFeature feature, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createFeatureCollection(FeatureCollection element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private boolean checkAndPrepareHelperValues(Map<SosConstants.HelperValues,String> additionalValues)
private org.apache.xmlbeans.XmlObject createFeature(AbstractFeature feature, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private boolean isNotSamplingFeature(AbstractFeature feature)
private org.apache.xmlbeans.XmlObject createEnvelope(SosEnvelope sosEnvelope)
private 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 org.apache.xmlbeans.XmlObject createTimePeriodPropertyType(TimePeriod time) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.gml.x32.TimePeriodType createTimePeriodType(TimePeriod timePeriod, net.opengis.gml.x32.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 org.apache.xmlbeans.XmlObject createTimeInstantPropertyType(TimeInstant time) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.gml.x32.TimeInstantType createTimeInstantType(TimeInstant timeInstant, net.opengis.gml.x32.TimeInstantType timeInstantType) throws OwsExceptionReport
timeInstant
- SOS time objecttimeInstantType
- OwsExceptionReport
- * if an error occurs.private net.opengis.gml.x32.TimePositionType createTimePositionType(TimePosition timePosition) throws DateTimeFormatException
DateTimeFormatException
private org.apache.xmlbeans.XmlObject createGeomteryPropertyType(AbstractGeometry element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private net.opengis.gml.x32.AbstractGeometryType createAbstractGeometry(AbstractGeometry element, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private org.apache.xmlbeans.XmlObject createPosition(com.vividsolutions.jts.geom.Geometry geom, Map<SosConstants.HelperValues,String> additionalValues) throws OwsExceptionReport
OwsExceptionReport
private void createPointFromJtsGeometry(com.vividsolutions.jts.geom.Point jtsPoint, net.opengis.gml.x32.PointType xbPoint) throws OwsExceptionReport
jtsPoint
- SOS PointxbPoint
- XML PointOwsExceptionReport
private void createLineStringFromJtsGeometry(com.vividsolutions.jts.geom.LineString jtsLineString, net.opengis.gml.x32.LineStringType xbLst) throws OwsExceptionReport
jtsLineString
- SOS LineStringxbLst
- XML LinetSringOwsExceptionReport
private void createPolygonFromJtsGeometry(com.vividsolutions.jts.geom.Polygon jtsPolygon, net.opengis.gml.x32.PolygonType xbPolType) throws OwsExceptionReport
jtsPolygon
- SOS PolygonxbPolType
- XML PolygonOwsExceptionReport
private org.apache.xmlbeans.XmlObject createReferenceTypeForCategroyValue(CategoryValue categoryValue)
private net.opengis.gml.x32.ReferenceType createReferencType(ReferenceType sosReferenceType)
private net.opengis.gml.x32.CodeWithAuthorityType createCodeWithAuthorityType(CodeWithAuthority sosCodeWithAuthority)
private net.opengis.gml.x32.CodeType createCodeType(CodeType sosCodeType)
protected net.opengis.gml.x32.MeasureType createMeasureType(QuantityValue quantityValue) throws OwsExceptionReport
OwsExceptionReport
protected String getSrsName(com.vividsolutions.jts.geom.Geometry geom)
protected String getSrsName(int srid)
Copyright © 2012-2015 52north.org. All Rights Reserved.