Package com.microstrategy.web.app.maps
Class GeoPolygon
- java.lang.Object
-
- com.microstrategy.web.app.maps.MultiGeoData<GeoPath>
-
- com.microstrategy.web.app.maps.GeoPolygon
-
- All Implemented Interfaces:
GeoData
public class GeoPolygon extends MultiGeoData<GeoPath>
A GeoPolygon object represent a polygon object that can contains holes. A GeoPolygon object contains multiple rings (represented asGeoPath
objects). The first ring is always represent the outer ring. All the other rings followed represent the holes of the polygon.
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.maps.MultiGeoData
objectList
-
-
Constructor Summary
Constructors Constructor Description GeoPolygon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRing(GeoPath path)
void
addRing(java.util.List<GeoPoint> points)
int
getGeoType()
Returns the map object type.java.util.List<GeoPath>
getRings()
GeoDataOutput
serialize(GeoDataSerializer serializer)
UseGeoDataSerializer
visitor to parse and serialize the data content.-
Methods inherited from class com.microstrategy.web.app.maps.MultiGeoData
add, getGeoData, size
-
-
-
-
Method Detail
-
addRing
public void addRing(java.util.List<GeoPoint> points)
-
addRing
public void addRing(GeoPath path)
-
getRings
public java.util.List<GeoPath> getRings()
-
serialize
public GeoDataOutput serialize(GeoDataSerializer serializer)
Description copied from interface:GeoData
UseGeoDataSerializer
visitor to parse and serialize the data content.- Parameters:
serializer
- aGeoDataSerializer
object.- Returns:
- a formatted string represents the geo data content.
-
getGeoType
public int getGeoType()
Description copied from interface:GeoData
Returns the map object type. The value of the object type is fromEnumMapFeatures
map object types.- Returns:
- a
EnumMapFeatures
map object type.
-
-