public class

GeoDataJSONSerializer

extends Object
implements GeoDataSerializer
java.lang.Object
   ↳ com.microstrategy.web.app.maps.GeoDataJSONSerializer

Class Overview

The GeoDataSerializer sub class that generates JSON data GeoData objects

Summary

Constants
int LAT_LNG_OUTPUT
int LNG_LAT_OUTPUT
Fields
protected int serializationSequence
Public Constructors
GeoDataJSONSerializer(int sequence)
Public Methods
GeoDataOutput serialize(MultiGeoPolyline polylines)
Serialize the MultiGeoPolyline object into a formatted string.
GeoDataOutput serialize(MultiGeoPolygon shape)
Serialize the MultiGeoPolygon object into a formatted string.
GeoDataOutput serialize(GeoPolygon polygon)
Serialize the GeoPolygon object into a formatted string.
GeoDataOutput serialize(ComboGeoData comboGeoData)
Serialize the ComboGeoData object into a formatted string.
GeoDataOutput serialize(GeoPoint point)
Serialize the object into a formated string
GeoDataOutput serialize(GeoPath path)
Serialize the the GeoPath object into formatted string.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.web.app.maps.GeoDataSerializer

Constants

public static final int LAT_LNG_OUTPUT

Constant Value: 1 (0x00000001)

public static final int LNG_LAT_OUTPUT

Constant Value: 2 (0x00000002)

Fields

protected int serializationSequence

Public Constructors

public GeoDataJSONSerializer (int sequence)

Public Methods

public GeoDataOutput serialize (MultiGeoPolyline polylines)

Serialize the MultiGeoPolyline object into a formatted string.

Parameters
polylines a MultiGeoPolyline object
Returns
  • a formatted string contains an array of polyline objects.

public GeoDataOutput serialize (MultiGeoPolygon shape)

Serialize the MultiGeoPolygon object into a formatted string.

Parameters
shape a MultiGeoPolygon object
Returns
  • a formatted string contains an array of polygon objects.

public GeoDataOutput serialize (GeoPolygon polygon)

Serialize the GeoPolygon object into a formatted string.

Parameters
polygon a GeoPolygon object
Returns
  • a formatted string contains an array of rings of points.

public GeoDataOutput serialize (ComboGeoData comboGeoData)

Serialize the ComboGeoData object into a formatted string.

Parameters
comboGeoData a ComboGeoData object
Returns
  • a formatted string contains a collection of sub types of GeoData object.

public GeoDataOutput serialize (GeoPoint point)

Serialize the object into a formated string

Parameters
point a object
Returns
  • a formatted string contains GeoPoint data, normally include just lng and lat values

public GeoDataOutput serialize (GeoPath path)

Serialize the the GeoPath object into formatted string.

Parameters
path a GeoPath object
Returns
  • a formatted string contains an array of GeoPoint data