Package com.microstrategy.web.app.maps
Class GeoDataJSONSerializer
- java.lang.Object
-
- com.microstrategy.web.app.maps.GeoDataJSONSerializer
-
- All Implemented Interfaces:
GeoDataSerializer
public class GeoDataJSONSerializer extends java.lang.Object implements GeoDataSerializer
The GeoDataSerializer sub class that generates JSON data GeoData objects
-
-
Field Summary
Fields Modifier and Type Field Description static int
LAT_LNG_OUTPUT
static int
LNG_LAT_OUTPUT
protected int
serializationSequence
-
Constructor Summary
Constructors Constructor Description GeoDataJSONSerializer(int sequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoDataOutput
serialize(ComboGeoData comboGeoData)
Serialize theComboGeoData
object into a formatted string.GeoDataOutput
serialize(GeoPath path)
Serialize the theGeoPath
object into formatted string.GeoDataOutput
serialize(GeoPoint point)
Serialize the {@see GeoPoint} object into a formated stringGeoDataOutput
serialize(GeoPolygon polygon)
Serialize theGeoPolygon
object into a formatted string.GeoDataOutput
serialize(MultiGeoPolygon shape)
Serialize theMultiGeoPolygon
object into a formatted string.GeoDataOutput
serialize(MultiGeoPolyline polylines)
Serialize theMultiGeoPolyline
object into a formatted string.
-
-
-
Field Detail
-
LAT_LNG_OUTPUT
public static final int LAT_LNG_OUTPUT
- See Also:
- Constant Field Values
-
LNG_LAT_OUTPUT
public static final int LNG_LAT_OUTPUT
- See Also:
- Constant Field Values
-
serializationSequence
protected int serializationSequence
-
-
Method Detail
-
serialize
public GeoDataOutput serialize(GeoPoint point)
Description copied from interface:GeoDataSerializer
Serialize the {@see GeoPoint} object into a formated string- Specified by:
serialize
in interfaceGeoDataSerializer
- Parameters:
point
- a {@see GeoPoint} object- Returns:
- a formatted string contains GeoPoint data, normally include just lng and lat values
-
serialize
public GeoDataOutput serialize(GeoPath path)
Description copied from interface:GeoDataSerializer
Serialize the theGeoPath
object into formatted string.- Specified by:
serialize
in interfaceGeoDataSerializer
- Parameters:
path
- aGeoPath
object- Returns:
- a formatted string contains an array of GeoPoint data
-
serialize
public GeoDataOutput serialize(GeoPolygon polygon)
Description copied from interface:GeoDataSerializer
Serialize theGeoPolygon
object into a formatted string.- Specified by:
serialize
in interfaceGeoDataSerializer
- Parameters:
polygon
- aGeoPolygon
object- Returns:
- a formatted string contains an array of rings of points.
-
serialize
public GeoDataOutput serialize(MultiGeoPolyline polylines)
Description copied from interface:GeoDataSerializer
Serialize theMultiGeoPolyline
object into a formatted string.- Specified by:
serialize
in interfaceGeoDataSerializer
- Parameters:
polylines
- aMultiGeoPolyline
object- Returns:
- a formatted string contains an array of polyline objects.
-
serialize
public GeoDataOutput serialize(MultiGeoPolygon shape)
Description copied from interface:GeoDataSerializer
Serialize theMultiGeoPolygon
object into a formatted string.- Specified by:
serialize
in interfaceGeoDataSerializer
- Parameters:
shape
- aMultiGeoPolygon
object- Returns:
- a formatted string contains an array of polygon objects.
-
serialize
public GeoDataOutput serialize(ComboGeoData comboGeoData)
Description copied from interface:GeoDataSerializer
Serialize theComboGeoData
object into a formatted string.- Specified by:
serialize
in interfaceGeoDataSerializer
- Parameters:
comboGeoData
- aComboGeoData
object- Returns:
- a formatted string contains a collection of sub types of
GeoData
object.
-
-