com.supermap.services.rest.encoders
类 FeatureSerializer
- java.lang.Object
-
- com.supermap.services.rest.encoders.FeatureSerializer
-
public class FeatureSerializer extends java.lang.Object
要素序列化器,将要素内容序列化为 KML。
-
-
构造器概要
构造器 构造器和说明 FeatureSerializer()
-
方法概要
方法 限定符和类型 方法和说明 protected java.lang.String
getFieldValue(java.lang.String name, Feature content)
void
serialize(KMLObject object, java.io.Writer writer)
将要素内容序列化为 KML。protected void
writeGeometry(XMLRecord record, Geometry geometry)
protected void
writePoint(XMLRecord record, Geometry geometry)
-
-
-
方法详细资料
-
serialize
public void serialize(KMLObject object, java.io.Writer writer)
将要素内容序列化为 KML。
- 参数:
object
- 需要序列化的对象。writer
- 序列化后的写入字符流。- 从以下版本开始:
- 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)
-
-