public class

Topology

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.maps.topology.Topology

Class Overview

Topology class process the polygon and break a polygon into arc to build topology.

Summary

Fields
protected List<GeoPath> allPaths
protected List<LatLng> allPoints
protected ArcIndexer arcIndexer
protected Map<Integer, List<Integer>> pathArcMap
protected GeoPointFactory pointFactory
protected Map<Integer, List<Integer>> shapePathMap
Public Methods
void addPolygon(GeoPolygon polygon, int id)
void addShape(MultiGeoPolygon shape, int id)
void buildArcs()
Build the topology based on all the paths.
MultiGeoPolygon getShape(int id)
MultiGeoPolygon getShape(int id, LineSimplification simplification)
MultiGeoPolygon getShape(ArrayList<Integer> shapeIds, LineSimplification simplification)
Merge multiple shapes into one geoshape.
Protected Methods
int addEdge(int startId, int endId)
int addEdge(int startId, int endId, int start2, int end2)
List<GeoPoint> createGeoPoints(List<LatLng> latLngs)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected List<GeoPath> allPaths

protected List<LatLng> allPoints

protected ArcIndexer arcIndexer

protected Map<Integer, List<Integer>> pathArcMap

protected GeoPointFactory pointFactory

protected Map<Integer, List<Integer>> shapePathMap

Public Methods

public void addPolygon (GeoPolygon polygon, int id)

public void addShape (MultiGeoPolygon shape, int id)

public void buildArcs ()

Build the topology based on all the paths.

public MultiGeoPolygon getShape (int id)

public MultiGeoPolygon getShape (int id, LineSimplification simplification)

public MultiGeoPolygon getShape (ArrayList<Integer> shapeIds, LineSimplification simplification)

Merge multiple shapes into one geoshape.

Protected Methods

protected int addEdge (int startId, int endId)

protected int addEdge (int startId, int endId, int start2, int end2)

protected List<GeoPoint> createGeoPoints (List<LatLng> latLngs)