com.supermap.services.rest.encoders
Class FeatureSerializer
- java.lang.Object
-
- com.supermap.services.rest.encoders.FeatureSerializer
-
public class FeatureSerializer extends java.lang.ObjectThe feature serializer serializes the feature content into KML.
-
-
Constructor Summary
Constructors Constructor and Description FeatureSerializer()
-
Method Summary
Methods Modifier and Type Method and Description protected java.lang.StringgetFieldValue(java.lang.String name, Feature content)voidserialize(KMLObject object, java.io.Writer writer)Serializes the feature content into KML.protected voidwriteGeometry(XMLRecord record, Geometry geometry)protected voidwritePoint(XMLRecord record, Geometry geometry)
-
-
-
Method Detail
-
serialize
public void serialize(KMLObject object, java.io.Writer writer)Serializes the feature content into KML.
- Parameters:
object- needs to serialize the object.writer- Writes a character stream after serialization.- Since:
- 6.1.3
-
getFieldValue
protected java.lang.String getFieldValue(java.lang.String name, Feature content)
-
writeGeometry
protected void writeGeometry(XMLRecord record, Geometry geometry)
-
writePoint
protected void writePoint(XMLRecord record, Geometry geometry)
-
-