com.supermap.services.rest.encoders
Class FeatureGeoRSSSimpleSerializer
- java.lang.Object
-
- com.supermap.services.rest.encoders.FeatureGeoRSSSimpleSerializer
-
public class FeatureGeoRSSSimpleSerializer extends java.lang.ObjectThe feature serializer serializes the elements into a GeoRSS Simple format.
- Since:
- 6.1.3
-
-
Constructor Summary
Constructors Constructor and Description FeatureGeoRSSSimpleSerializer()
-
Method Summary
Methods Modifier and Type Method and Description protected static java.lang.StringgetFeatureFieldsTable(java.lang.String featureTitle, java.lang.String[] fieldNames, java.lang.String[] fieldValues)protected static booleanisSupportedType(GeometryType type)voidserialize(GeoRSSObject object, java.io.Writer writer)The elements are serialized into the format of GeoRSS Simple.protected static voidwriteGeometry(XMLRecord record, Geometry geometry)protected static voidwriteItem(XMLRecord record, Feature feature, java.lang.String linkUrl)protected static voidwriteLine(XMLRecord record, Geometry geometry)protected static voidwritePoint(XMLRecord record, Geometry geometry)protected static voidwritePolygon(XMLRecord record, Geometry geometry)
-
-
-
Method Detail
-
serialize
public void serialize(GeoRSSObject object, java.io.Writer writer)The elements are serialized into the format of GeoRSS Simple.
- Parameters:
object- needs to serialize the object.writer- Writes a character stream after serialization.- Since:
- 6.1.3
-
isSupportedType
protected static boolean isSupportedType(GeometryType type)
-
writeItem
protected static void writeItem(XMLRecord record, Feature feature, java.lang.String linkUrl)
-
getFeatureFieldsTable
protected static java.lang.String getFeatureFieldsTable(java.lang.String featureTitle, java.lang.String[] fieldNames, java.lang.String[] fieldValues)
-
writeGeometry
protected static void writeGeometry(XMLRecord record, Geometry geometry)
-
writePoint
protected static void writePoint(XMLRecord record, Geometry geometry)
-
writeLine
protected static void writeLine(XMLRecord record, Geometry geometry)
-
writePolygon
protected static void writePolygon(XMLRecord record, Geometry geometry)
-
-